diff --git a/pom.xml b/pom.xml index 84829b28f4365b4db20324abef15b0591b89e72d..1ff258837bdd7e9bad840ff85a160a41838f9fa6 100644 --- a/pom.xml +++ b/pom.xml @@ -1,179 +1,195 @@ - - - - 4.0.0 - - com.xxx.rpc - rpc - 1.3.0 - pom - - - UTF-8 - 1.7.10 - 4.1.5.RELEASE - 4.0.26.Final - 1.0.9 - 2.1 - 3.1 - 3.4.6 - 0.4 - 3.3.2 - 4.0 - 3.2 - 2.18.1 - 2.4 - 2.10.3 - - - - - - - org.slf4j - slf4j-log4j12 - ${version.slf4j} - - - - org.springframework - spring-context - ${version.spring} - - - org.springframework - spring-test - ${version.spring} - test - - - - io.netty - netty-all - ${version.netty} - - - - com.dyuproject.protostuff - protostuff-core - ${version.protostuff} - - - com.dyuproject.protostuff - protostuff-runtime - ${version.protostuff} - - - - org.objenesis - objenesis - ${version.objenesis} - - - - cglib - cglib - ${version.cglib} - - - - org.apache.zookeeper - zookeeper - ${version.zookeeper} - - - - com.101tec - zkclient - ${version.zkclient} - - - - org.apache.commons - commons-lang3 - ${version.commons-lang} - - - - org.apache.commons - commons-collections4 - ${version.commons-collections} - - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - ${version.maven-compiler-plugin} - - 1.7 - 1.7 - UTF-8 - - - - - org.apache.maven.plugins - maven-surefire-plugin - ${version.maven-surefire-plugin} - - true - - - - - - - - release - - - - - org.apache.maven.plugins - maven-source-plugin - ${version.maven-source-plugin} - - - package - - jar-no-fork - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${version.maven-javadoc-plugin} - - - package - - jar - - - - - - - - - - - rpc-common - rpc-server - rpc-client - rpc-registry - rpc-registry-zookeeper - - + + + + 4.0.0 + + com.xxx.rpc + rpc + 1.3.0 + pom + + + UTF-8 + 1.7.10 + 4.1.5.RELEASE + 4.0.26.Final + 1.0.9 + 2.1 + 3.1 + 3.4.6 + 0.4 + 3.3.2 + 4.0 + 3.2 + 2.18.1 + 2.4 + 2.10.3 + + + + + + + org.slf4j + slf4j-log4j12 + ${version.slf4j} + + + + org.springframework + spring-context + ${version.spring} + + + org.springframework + spring-test + ${version.spring} + test + + + + io.netty + netty-all + ${version.netty} + + + + com.dyuproject.protostuff + protostuff-core + ${version.protostuff} + + + com.dyuproject.protostuff + protostuff-runtime + ${version.protostuff} + + + + org.objenesis + objenesis + ${version.objenesis} + + + + cglib + cglib + ${version.cglib} + + + + org.apache.zookeeper + zookeeper + ${version.zookeeper} + + + + com.101tec + zkclient + ${version.zkclient} + + + + org.apache.commons + commons-lang3 + ${version.commons-lang} + + + + org.apache.commons + commons-collections4 + ${version.commons-collections} + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.maven-compiler-plugin} + + 1.7 + 1.7 + UTF-8 + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.maven-surefire-plugin} + + true + + + + + + + + release + + + + + org.apache.maven.plugins + maven-source-plugin + ${version.maven-source-plugin} + + + package + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${version.maven-javadoc-plugin} + + + package + + jar + + + + + + + + + nexus-releases + http://nexus.ycmsh.com/content/repositories/releases/ + + + nexus-snapshots + http://nexus.ycmsh.com/content/repositories/snapshots/ + + + + + + + rpc-common + rpc-server + rpc-client + rpc-registry + rpc-registry-zookeeper + rpc-sample-client + rpc-sample-server + rpc-sample-api + + + + + \ No newline at end of file diff --git a/rpc-sample-client/src/main/java/com/xxx/rpc/sample/client/HelloClient.java b/rpc-sample-client/src/main/java/com/xxx/rpc/sample/client/HelloClient.java index 4a32a45fc43b6809b0c12e9fa0f9a68f1bdcf87d..6f673a37da8043384e1f9a14a06d5e7fd5fb4097 100644 --- a/rpc-sample-client/src/main/java/com/xxx/rpc/sample/client/HelloClient.java +++ b/rpc-sample-client/src/main/java/com/xxx/rpc/sample/client/HelloClient.java @@ -11,10 +11,6 @@ public class HelloClient { ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml"); RpcProxy rpcProxy = context.getBean(RpcProxy.class); - HelloService helloService = rpcProxy.create(HelloService.class); - String result = helloService.hello("World"); - System.out.println(result); - HelloService helloService2 = rpcProxy.create(HelloService.class, "sample.hello2"); String result2 = helloService2.hello("世界"); System.out.println(result2);