From 0a974a4f1bea4b1b9536caa2c54b93502f07e406 Mon Sep 17 00:00:00 2001 From: Giovanni Meo Date: Fri, 15 Nov 2013 15:53:38 +0100 Subject: [PATCH] Modify the java-client to use the build-helper-maven-plugin - Current northbound.java-client uses custom install-file and deploy-file to actually deploy multiple artifacts. Now that has the issue of telling to which repo the artifact should go, while it's way simpler to let maven figure out via the distributionManagement. To rescue in this situation the build-helper-maven-plugin can attach additional files to an artifact distinguing them via the classifier selector. This change is to use this feature Change-Id: Id425ca2d9e744de7cceb0028afd84dfb48ba93a7 Signed-off-by: Giovanni Meo --- opendaylight/northbound/java-client/pom.xml | 156 ++++++-------------- 1 file changed, 46 insertions(+), 110 deletions(-) diff --git a/opendaylight/northbound/java-client/pom.xml b/opendaylight/northbound/java-client/pom.xml index b6fd29696f..78da7bdcc0 100644 --- a/opendaylight/northbound/java-client/pom.xml +++ b/opendaylight/northbound/java-client/pom.xml @@ -40,9 +40,9 @@ 1.5 - install + package - run + run @@ -72,16 +72,16 @@ -<![CDATA[ -<html> - <head> - <title> OpenDaylight REST API Documentation </title> - </head> - <body> - <h2>OpenDaylight REST API Documentation</h2> - <p> OpenDaylight supports the following <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer">Representational State Transfer (REST)</a> APIs: </p> - <h4> -]]> + <![CDATA[ + <html> + <head> + <title> OpenDaylight REST API Documentation </title> + </head> + <body> + <h2>OpenDaylight REST API Documentation</h2> + <p> OpenDaylight supports the following <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer">Representational State Transfer (REST)</a> APIs: </p> + <h4> + ]]> @@ -99,12 +99,12 @@ -<![CDATA[ - </h4> - <i>---</i> - </body> -</html> -]]> + <![CDATA[ + </h4> + <i>---</i> + </body> + </html> + ]]> @@ -126,107 +126,43 @@ - org.apache.maven.plugins - maven-install-plugin - 2.5 - - jar - ${project.groupId} - ${project.version} - + org.codehaus.mojo + build-helper-maven-plugin + 1.8 - - default-install - install - - install - - - true - - - - - install-full-client - install - - install-file - - - ${project.artifactId}.full-client - ${java-client} - ${java-client-sources} - - - - - install-full-json-client - install + attach-artifacts + package - install-file + attach-artifact - ${project.artifactId}.full-json-client - ${json-client} - ${json-client-sources} + + + ${java-client} + jar + full-java-client + + + ${java-client-sources} + jar + full-java-client-sources + + + ${json-client} + jar + full-json-client + + + ${json-client-sources} + jar + full-json-client-sources + + - - - org.apache.maven.plugins - maven-deploy-plugin - 2.5 - - jar - true - ${project.groupId} - ${project.version} - ${project.distributionManagement.repository.url} - - - - - default-deploy - deploy - - deploy - - - true - - - - - deploy-full-client - deploy - - deploy-file - - - ${project.artifactId}.full-client - ${java-client} - ${java-client-sources} - - - - - deploy-full-json-client - deploy - - deploy-file - - - ${project.artifactId}.full-json-client - ${json-client} - ${json-client-sources} - - - - - -- 2.36.6