diff options
author | Timoney, Dan (dt5972) <dt5972@att.com> | 2018-08-17 14:38:54 -0400 |
---|---|---|
committer | Timoney, Dan (dt5972) <dt5972@att.com> | 2018-08-17 14:38:54 -0400 |
commit | 0b24f8ecf7a6238017b6735b194da5c81fc758da (patch) | |
tree | 271fb30cfa0dbf223fc44208a5053d296c1e08d8 /odlparent/client-parent/pom.xml | |
parent | cc9e0d88856c2ccca21889f3ad0d66384c1fc598 (diff) |
Add staging plugin config to client pom
Parent pom used to generate client code was missing configuration of
Sonatype staging plugin, which is needed for daily release builds to work.
Change-Id: I072ab5b902761bf56160e140608bbd691d786e68
Issue-ID: CCSDK-472
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Diffstat (limited to 'odlparent/client-parent/pom.xml')
-rw-r--r-- | odlparent/client-parent/pom.xml | 116 |
1 files changed, 80 insertions, 36 deletions
diff --git a/odlparent/client-parent/pom.xml b/odlparent/client-parent/pom.xml index c55b8e6b..51ba5074 100644 --- a/odlparent/client-parent/pom.xml +++ b/odlparent/client-parent/pom.xml @@ -67,6 +67,17 @@ <javax.validation.version>2.0.0.Final</javax.validation.version> <swagger.version>1.5.16</swagger.version> + <!-- ONAP repositories --> + <onap.nexus.host>nexus.onap.org</onap.nexus.host> + <onap.nexus.port>443</onap.nexus.port> + <onap.nexus.protocol>https</onap.nexus.protocol> + <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url> + <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url> + <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url> + <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url> + <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id> + <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id> + </properties> <dependencies> @@ -83,10 +94,10 @@ <scope>provided</scope> </dependency> <dependency> - <groupId>com.openpojo</groupId> - <artifactId>openpojo</artifactId> - <version>${openpojo.version}</version> - <scope>test</scope> + <groupId>com.openpojo</groupId> + <artifactId>openpojo</artifactId> + <version>${openpojo.version}</version> + <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> @@ -233,7 +244,7 @@ <url>http://maven.restlet.com</url> </pluginRepository> - <pluginRepository> + <pluginRepository> <id>onap-bintray</id> <name>onap-bintray</name> <url>https://nexus.onap.org/content/repositories/bintray/</url> @@ -383,37 +394,42 @@ </execution> </executions> </plugin> - <plugin> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.8</version> - <executions> - <execution> - <phase>initialize</phase> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - <configuration> - <tasks> - <!-- flatten out structure --> - <move todir="${project.build.directory}/dependency" failonerror="false"> - <fileset dir="${project.build.directory}/dependency" /> - <mapper type="flatten"/> - </move> - <!-- move to yang folder --> - <copy todir="${project.build.directory}/yang" failonerror="false"> - <fileset dir="${project.build.directory}/dependency" includes="**/*.yang"/> - <mapper type="flatten"/> - </copy> - <!-- add in hard coded items from src/main/yang --> - <copy todir="${project.build.directory}/yang" failonerror="false"> - <fileset dir="${project.basedir}/src/main/yang" includes="**/*.yang"/> - <mapper type="flatten"/> - </copy> - </tasks> - </configuration> - </plugin> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.8</version> + <executions> + <execution> + <phase>initialize</phase> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + <configuration> + <tasks> + <!-- flatten out structure --> + <move todir="${project.build.directory}/dependency" + failonerror="false"> + <fileset dir="${project.build.directory}/dependency" /> + <mapper type="flatten" /> + </move> + <!-- move to yang folder --> + <copy todir="${project.build.directory}/yang" + failonerror="false"> + <fileset dir="${project.build.directory}/dependency" + includes="**/*.yang" /> + <mapper type="flatten" /> + </copy> + <!-- add in hard coded items from src/main/yang --> + <copy todir="${project.build.directory}/yang" + failonerror="false"> + <fileset dir="${project.basedir}/src/main/yang" + includes="**/*.yang" /> + <mapper type="flatten" /> + </copy> + </tasks> + </configuration> + </plugin> <plugin> <groupId>org.opendaylight.yangtools</groupId> <artifactId>yang-maven-plugin</artifactId> @@ -507,6 +523,34 @@ </plugins> </pluginManagement> + <plugins> + <plugin> + <groupId>org.sonatype.plugins</groupId> + <artifactId>nexus-staging-maven-plugin</artifactId> + <version>1.6.7</version> + <extensions>true</extensions> + <configuration> + <nexusUrl>${onap.nexus.url}</nexusUrl> + <stagingProfileId>176c31dfe190a</stagingProfileId> + <serverId>ecomp-staging</serverId> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>versions-maven-plugin</artifactId> + <version>2.5</version> + <configuration> + <processAllModules>true</processAllModules> + </configuration> + </plugin> + <plugin> + <artifactId>maven-scm-plugin</artifactId> + <version>1.8.1</version> + <configuration> + <tag>${project.artifactId}-${project.version}</tag> + </configuration> + </plugin> + </plugins> </build> <organization> <name>ONAP</name> |