diff --git a/pom.xml b/pom.xml
index 19d558bc81..bc7fb82b9a 100755
--- a/pom.xml
+++ b/pom.xml
@@ -58,6 +58,7 @@
2.8.2
1.6
0.8.1
+ 3.1.0
@@ -182,6 +183,15 @@
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.version}
+
+
+
diff --git a/sentinel-core/pom.xml b/sentinel-core/pom.xml
index 1bdea1c1c6..eba0078231 100755
--- a/sentinel-core/pom.xml
+++ b/sentinel-core/pom.xml
@@ -24,5 +24,19 @@
test
-
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ ${project.version}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/Constants.java b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/Constants.java
index 8e727dba7c..1a1d5e9a78 100755
--- a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/Constants.java
+++ b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/Constants.java
@@ -20,6 +20,7 @@
import com.alibaba.csp.sentinel.node.EntranceNode;
import com.alibaba.csp.sentinel.slotchain.StringResourceWrapper;
import com.alibaba.csp.sentinel.slots.system.SystemRule;
+import com.alibaba.csp.sentinel.util.VersionUtil;
/**
* @author qinan.qn
@@ -28,7 +29,7 @@
*/
public final class Constants {
- public static final String SENTINEL_VERSION = "0.2.1";
+ public static final String SENTINEL_VERSION = VersionUtil.getVersion("0.2.1");
public final static int MAX_CONTEXT_NAME_SIZE = 2000;
public final static int MAX_SLOT_CHAIN_SIZE = 6000;
diff --git a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/config/SentinelConfig.java b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/config/SentinelConfig.java
index d5017f13df..c3f8a27239 100755
--- a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/config/SentinelConfig.java
+++ b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/config/SentinelConfig.java
@@ -77,15 +77,6 @@ private static void loadProps() {
for (Object key : fileProps.keySet()) {
SentinelConfig.setConfig((String)key, (String)fileProps.get(key));
- try {
- String systemValue = System.getProperty((String)key);
- if (!StringUtil.isEmpty(systemValue)) {
- SentinelConfig.setConfig((String)key, systemValue);
- }
- } catch (Exception e) {
- RecordLog.info(e.getMessage(), e);
- }
- RecordLog.info(key + " value: " + SentinelConfig.getConfig((String)key));
}
}
} catch (Throwable ioe) {
@@ -94,7 +85,13 @@ private static void loadProps() {
// JVM parameter override file config.
for (Map.Entry