diff --git a/lattice-model/pom.xml b/lattice-model/pom.xml
index b3333ac8..e79d9df4 100644
--- a/lattice-model/pom.xml
+++ b/lattice-model/pom.xml
@@ -5,7 +5,7 @@
lattice
org.hiforce.lattice
- 1.0.10.1
+ 1.0.10.2
4.0.0
lattice-model
diff --git a/lattice-remote/lattice-remote-client/pom.xml b/lattice-remote/lattice-remote-client/pom.xml
index 5fe44b12..c7ee866c 100644
--- a/lattice-remote/lattice-remote-client/pom.xml
+++ b/lattice-remote/lattice-remote-client/pom.xml
@@ -5,7 +5,7 @@
lattice-remote
org.hiforce.lattice
- 1.0.10.1
+ 1.0.10.2
4.0.0
diff --git a/lattice-remote/lattice-remote-container/pom.xml b/lattice-remote/lattice-remote-container/pom.xml
index 2abdfaa1..322ae80d 100644
--- a/lattice-remote/lattice-remote-container/pom.xml
+++ b/lattice-remote/lattice-remote-container/pom.xml
@@ -5,7 +5,7 @@
lattice-remote
org.hiforce.lattice
- 1.0.10.1
+ 1.0.10.2
4.0.0
diff --git a/lattice-remote/lattice-remote-runner/lattice-remote-runner-dubbo/pom.xml b/lattice-remote/lattice-remote-runner/lattice-remote-runner-dubbo/pom.xml
index a0334894..a15a6c3f 100644
--- a/lattice-remote/lattice-remote-runner/lattice-remote-runner-dubbo/pom.xml
+++ b/lattice-remote/lattice-remote-runner/lattice-remote-runner-dubbo/pom.xml
@@ -5,7 +5,7 @@
lattice-remote-runner
org.hiforce.lattice
- 1.0.10.1
+ 1.0.10.2
4.0.0
diff --git a/lattice-remote/lattice-remote-runner/pom.xml b/lattice-remote/lattice-remote-runner/pom.xml
index bbc020dd..62aab94f 100644
--- a/lattice-remote/lattice-remote-runner/pom.xml
+++ b/lattice-remote/lattice-remote-runner/pom.xml
@@ -5,7 +5,7 @@
lattice-remote
org.hiforce.lattice
- 1.0.10.1
+ 1.0.10.2
4.0.0
diff --git a/lattice-remote/pom.xml b/lattice-remote/pom.xml
index 4cc6032a..4e33a4c3 100644
--- a/lattice-remote/pom.xml
+++ b/lattice-remote/pom.xml
@@ -5,7 +5,7 @@
lattice
org.hiforce.lattice
- 1.0.10.1
+ 1.0.10.2
4.0.0
diff --git a/lattice-runtime/pom.xml b/lattice-runtime/pom.xml
index ad1ee4fe..28fa4269 100644
--- a/lattice-runtime/pom.xml
+++ b/lattice-runtime/pom.xml
@@ -5,7 +5,7 @@
lattice
org.hiforce.lattice
- 1.0.10.1
+ 1.0.10.2
4.0.0
diff --git a/lattice-runtime/src/main/java/org/hiforce/lattice/runtime/Lattice.java b/lattice-runtime/src/main/java/org/hiforce/lattice/runtime/Lattice.java
index 5e459abd..6b9dbc64 100644
--- a/lattice-runtime/src/main/java/org/hiforce/lattice/runtime/Lattice.java
+++ b/lattice-runtime/src/main/java/org/hiforce/lattice/runtime/Lattice.java
@@ -117,12 +117,16 @@ private void initLatticeClassLoader() {
Thread.currentThread().setContextClassLoader(latticeClassLoader);
}
- public void reload() {
+ public final void clear(){
latticeRuntimeCache.clear();
registeredAbilities.clear();
TemplateRegister.getInstance().clear();
businessConfigs.clear();
initialized = false;
+ }
+
+ public void reload() {
+ clear();
start();
}
diff --git a/lattice-tools/lattice-dynamic-loading/pom.xml b/lattice-tools/lattice-dynamic-loading/pom.xml
index ddf1d073..0a781c56 100644
--- a/lattice-tools/lattice-dynamic-loading/pom.xml
+++ b/lattice-tools/lattice-dynamic-loading/pom.xml
@@ -5,7 +5,7 @@
lattice-tools
org.hiforce.lattice
- 1.0.10.1
+ 1.0.10.2
4.0.0
diff --git a/lattice-tools/lattice-load-config-res/pom.xml b/lattice-tools/lattice-load-config-res/pom.xml
index 9334d409..5f57cf38 100644
--- a/lattice-tools/lattice-load-config-res/pom.xml
+++ b/lattice-tools/lattice-load-config-res/pom.xml
@@ -5,7 +5,7 @@
lattice-tools
org.hiforce.lattice
- 1.0.10.1
+ 1.0.10.2
4.0.0
diff --git a/lattice-tools/lattice-maven-build/lattice-maven-build-model/pom.xml b/lattice-tools/lattice-maven-build/lattice-maven-build-model/pom.xml
index a73112e5..56e10abd 100644
--- a/lattice-tools/lattice-maven-build/lattice-maven-build-model/pom.xml
+++ b/lattice-tools/lattice-maven-build/lattice-maven-build-model/pom.xml
@@ -5,7 +5,7 @@
lattice-maven-build
org.hiforce.lattice
- 1.0.10.1
+ 1.0.10.2
4.0.0
diff --git a/lattice-tools/lattice-maven-build/lattice-maven-build-plugin/pom.xml b/lattice-tools/lattice-maven-build/lattice-maven-build-plugin/pom.xml
index 0830960a..168342fa 100644
--- a/lattice-tools/lattice-maven-build/lattice-maven-build-plugin/pom.xml
+++ b/lattice-tools/lattice-maven-build/lattice-maven-build-plugin/pom.xml
@@ -5,7 +5,7 @@
lattice-maven-build
org.hiforce.lattice
- 1.0.10.1
+ 1.0.10.2
4.0.0
maven-plugin
diff --git a/lattice-tools/lattice-maven-build/lattice-maven-build-plugin/src/main/java/org/hiforce/lattice/maven/LatticeBuildPlugin.java b/lattice-tools/lattice-maven-build/lattice-maven-build-plugin/src/main/java/org/hiforce/lattice/maven/LatticeBuildPlugin.java
index cd7c4669..fbb127e2 100644
--- a/lattice-tools/lattice-maven-build/lattice-maven-build-plugin/src/main/java/org/hiforce/lattice/maven/LatticeBuildPlugin.java
+++ b/lattice-tools/lattice-maven-build/lattice-maven-build-plugin/src/main/java/org/hiforce/lattice/maven/LatticeBuildPlugin.java
@@ -9,6 +9,7 @@
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.project.MavenProject;
+import org.hiforce.lattice.runtime.Lattice;
import org.hiforce.lattice.utils.JacksonUtils;
import org.hiforce.lattice.maven.builder.*;
import org.hiforce.lattice.maven.model.LatticeInfo;
@@ -56,7 +57,8 @@ public class LatticeBuildPlugin extends AbstractMojo {
@Override
- public void execute() throws MojoExecutionException, MojoFailureException {
+ public synchronized void execute() throws MojoExecutionException, MojoFailureException {
+ Lattice.getInstance().clear();
getLog().info(">> LatticeBuildPlugin start....");
getLog().info(">> Project: " + mavenProject.getName());
diff --git a/lattice-tools/lattice-maven-build/pom.xml b/lattice-tools/lattice-maven-build/pom.xml
index 3eca16b6..f058cd71 100644
--- a/lattice-tools/lattice-maven-build/pom.xml
+++ b/lattice-tools/lattice-maven-build/pom.xml
@@ -5,7 +5,7 @@
lattice-tools
org.hiforce.lattice
- 1.0.10.1
+ 1.0.10.2
4.0.0
pom
diff --git a/lattice-tools/pom.xml b/lattice-tools/pom.xml
index 8826c212..b238f6e1 100644
--- a/lattice-tools/pom.xml
+++ b/lattice-tools/pom.xml
@@ -5,7 +5,7 @@
lattice
org.hiforce.lattice
- 1.0.10.1
+ 1.0.10.2
4.0.0
pom
diff --git a/pom.xml b/pom.xml
index 41be3972..f3a480b8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,9 +16,9 @@
https://github.com/hiforce/lattice
2022
- 1.0.10.1
+ 1.0.10.2
- 1.0.10.1
+ 1.0.10.2
5.3.23
2.7.4
1.2