diff --git a/examples/java-server/build.sh b/examples/java-server/build.sh old mode 100644 new mode 100755 diff --git a/examples/java-server/pom.xml b/examples/java-server/pom.xml index 546d79303c178f0a3b464c60f7e31c3ea59c69e3..686c9c1fe61394890be79cfae6af47fe71901cac 100644 --- a/examples/java-server/pom.xml +++ b/examples/java-server/pom.xml @@ -4,13 +4,16 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> - <groupId>com.test.x</groupId> - <artifactId>user-info-server</artifactId> + <groupId>com.ikurento</groupId> + <artifactId>jsonrpc-java-server</artifactId> <packaging>jar</packaging> <version>0.2.0</version> <description>The demo provider module of dubbo project</description> <properties> <skip_maven_deploy>false</skip_maven_deploy> + + <dubbo-version>2.5.4</dubbo-version> + <dubbo-jsonrpc-version>1.0.1</dubbo-jsonrpc-version> </properties> <dependencies> @@ -23,7 +26,7 @@ <dependency> <groupId>com.alibaba</groupId> <artifactId>dubbo</artifactId> - <version>2.5.4</version> + <version>${dubbo-version}</version> <exclusions> </exclusions> </dependency> @@ -31,7 +34,7 @@ <dependency> <groupId>com.ofpay</groupId> <artifactId>dubbo-rpc-jsonrpc</artifactId> - <version>1.0.1</version> + <version>${dubbo-jsonrpc-version}</version> <exclusions> <exclusion> <groupId>org.springframework</groupId> @@ -102,4 +105,55 @@ </pluginRepository> </pluginRepositories> + + <build> + + <plugins> + <plugin> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>unpack</id> + <phase>package</phase> + <goals> + <goal>unpack</goal> + </goals> + <configuration> + <artifactItems> + <artifactItem> + <groupId>com.alibaba</groupId> + <artifactId>dubbo</artifactId> + <version>${dubbo-version}</version> + <outputDirectory>${project.build.directory}/dubbo</outputDirectory> + <includes>META-INF/assembly/**</includes> + </artifactItem> + </artifactItems> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <id>make-assembly</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + <configuration> + <descriptors> + <descriptor>src/main/assembly/assembly.xml</descriptor> + </descriptors> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + + </project> + +