diff --git a/disconf-client/README.md b/disconf-client/README.md index edc3ffed2..a61cd693a 100644 --- a/disconf-client/README.md +++ b/disconf-client/README.md @@ -3,4 +3,9 @@ disconf-client 分布式配置管理客户端模块 +springboot项目集成: +com.paypal.springboot.resteasy-spring-boot-starter的时候, +与disconf发生包冲突,因此将包 +org.reflections.reflections的版本从0.9.9-RC1升级到0.9.10 + diff --git a/disconf-client/pom.xml b/disconf-client/pom.xml index 524931042..cc41810b3 100644 --- a/disconf-client/pom.xml +++ b/disconf-client/pom.xml @@ -1,337 +1,337 @@ - - - - 4.0.0 - disconf-client - jar - ${disconf-client.version} - - - com.baidu.disconf - disconf-base - 2.6.36 - - - - - Apache 2 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - A business-friendly OSS license - - - - - - - com.baidu.disconf - disconf-core - ${disconf-core.version} - - - - com.baidu.disconf - disconf-core - ${disconf-core.version} - test-jar - test - - - - - - org.apache.zookeeper - zookeeper - - - com.sun.jmx - jmxri - - - com.sun.jdmk - jmxtools - - - javax.jms - jms - - - - - - commons-io - commons-io - - - - com.google.code.gson - gson - - - - org.apache.commons - commons-lang3 - - - - org.reflections - reflections - 0.9.9-RC1 - - - - com.google.guava - guava - - - - org.aspectj - aspectjtools - - - - - - ch.qos.logback - logback-core - provided - - - - ch.qos.logback - logback-classic - provided - - - - org.slf4j - slf4j-api - provided - - - - - - com.googlecode.jmockit - jmockit - test - - - - com.googlecode.jmockit - jmockit-coverage - test - - - - com.github.tomakehurst - wiremock - test - - standalone - - - - junit - junit - test - - - - org.springframework - spring-test - test - - - - - - org.springframework - spring-context - provided - - - - org.springframework - spring-beans - provided - - - - org.springframework - spring-core - provided - - - - org.springframework - spring-aop - provided - - - - - - - package - ${project.artifactId} - target/classes - - - - ${project.basedir}/src/main/java - - **/*.java - - - - ${project.basedir}/src/main/resources - - *.* - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - ${source.version} - ${target.version} - ${encoding} - true - true - true - - - ${java.home}/lib/rt.jar - - - - - - org.codehaus.plexus - plexus-compiler-javac - 1.8.1 - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - *.properties - **/*.properties - conf/** - - - - - - org.apache.maven.plugins - maven-assembly-plugin - 2.3 - - - - make-jar - package - - single - - - false - - deploy/package-jar.xml - - - - - - - - - disconf-client - https://github.com/knightliao/disconf/tree/master/disconf-client - https://github.com/knightliao/disconf/tree/master/disconf-client - - - Baidu - http://www.example.com - - - - scm:git:git@github.com:knightliao/disconf - scm:git:git@github.com:knightliao/disconf - disconf-client - - - - - release - - - nexus-release - https://oss.sonatype.org/content/repositories/snapshots/ - - - nexus-release - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - - - - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - package - - jar-no-fork - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.9.1 - - - package - - jar - - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.5 - - - sign-artifacts - verify - - sign - - - - - - - - - + + + + 4.0.0 + disconf-client + jar + ${disconf-client.version} + + + com.baidu.disconf + disconf-base + 2.6.36 + + + + + Apache 2 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + A business-friendly OSS license + + + + + + + com.baidu.disconf + disconf-core + ${disconf-core.version} + + + + com.baidu.disconf + disconf-core + ${disconf-core.version} + test-jar + test + + + + + + org.apache.zookeeper + zookeeper + + + com.sun.jmx + jmxri + + + com.sun.jdmk + jmxtools + + + javax.jms + jms + + + + + + commons-io + commons-io + + + + com.google.code.gson + gson + + + + org.apache.commons + commons-lang3 + + + + org.reflections + reflections + 0.9.10 + + + + com.google.guava + guava + + + + org.aspectj + aspectjtools + + + + + + ch.qos.logback + logback-core + provided + + + + ch.qos.logback + logback-classic + provided + + + + org.slf4j + slf4j-api + provided + + + + + + com.googlecode.jmockit + jmockit + test + + + + com.googlecode.jmockit + jmockit-coverage + test + + + + com.github.tomakehurst + wiremock + test + + standalone + + + + junit + junit + test + + + + org.springframework + spring-test + test + + + + + + org.springframework + spring-context + provided + + + + org.springframework + spring-beans + provided + + + + org.springframework + spring-core + provided + + + + org.springframework + spring-aop + provided + + + + + + + package + ${project.artifactId} + target/classes + + + + ${project.basedir}/src/main/java + + **/*.java + + + + ${project.basedir}/src/main/resources + + *.* + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + ${source.version} + ${target.version} + ${encoding} + true + true + true + + + ${java.home}/lib/rt.jar + + + + + + org.codehaus.plexus + plexus-compiler-javac + 1.8.1 + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + *.properties + **/*.properties + conf/** + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 2.3 + + + + make-jar + package + + single + + + false + + deploy/package-jar.xml + + + + + + + + + disconf-client + https://github.com/knightliao/disconf/tree/master/disconf-client + https://github.com/knightliao/disconf/tree/master/disconf-client + + + Baidu + http://www.example.com + + + + scm:git:git@github.com:knightliao/disconf + scm:git:git@github.com:knightliao/disconf + disconf-client + + + + + release + + + nexus-release + https://oss.sonatype.org/content/repositories/snapshots/ + + + nexus-release + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + package + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + package + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + + + + \ No newline at end of file diff --git a/disconf-client/src/main/java/com/baidu/disconf/client/scan/inner/statically/strategy/impl/ReflectionScanStatic.java b/disconf-client/src/main/java/com/baidu/disconf/client/scan/inner/statically/strategy/impl/ReflectionScanStatic.java index 8e0b124f4..584883847 100644 --- a/disconf-client/src/main/java/com/baidu/disconf/client/scan/inner/statically/strategy/impl/ReflectionScanStatic.java +++ b/disconf-client/src/main/java/com/baidu/disconf/client/scan/inner/statically/strategy/impl/ReflectionScanStatic.java @@ -81,7 +81,7 @@ private Reflections getReflection(List packNameList) { // Collection urlTotals = new ArrayList(); for (String packName : packNameList) { - Set urls = ClasspathHelper.forPackage(packName); + Collection urls = ClasspathHelper.forPackage(packName); urlTotals.addAll(urls); } diff --git a/disconf-client/src/main/java/com/baidu/disconf/client/support/utils/ScanPrinterUtils.java b/disconf-client/src/main/java/com/baidu/disconf/client/support/utils/ScanPrinterUtils.java index 051e60b2f..59e359950 100644 --- a/disconf-client/src/main/java/com/baidu/disconf/client/support/utils/ScanPrinterUtils.java +++ b/disconf-client/src/main/java/com/baidu/disconf/client/support/utils/ScanPrinterUtils.java @@ -33,13 +33,12 @@ public static void printStoreMap(Reflections reflections) { LOGGER.info("Now we will print store map......"); Store store = reflections.getStore(); - Map> storeMap = store.getStoreMap(); - for (String indexName : storeMap.keySet()) { + for (String indexName : store.keySet()) { LOGGER.info("===================================="); LOGGER.info("indexName:" + indexName); - Multimap multimap = storeMap.get(indexName); + Multimap multimap = store.get(indexName); for (String firstName : multimap.keySet()) { Collection lastNames = multimap.get(firstName); diff --git a/disconf-core/pom.xml b/disconf-core/pom.xml index 39145c935..155222a6e 100644 --- a/disconf-core/pom.xml +++ b/disconf-core/pom.xml @@ -124,7 +124,7 @@ com.github.tomakehurst wiremock test - standalone