diff options
Diffstat (limited to 'vid-app-common/pom.xml')
-rwxr-xr-x | vid-app-common/pom.xml | 67 |
1 files changed, 46 insertions, 21 deletions
diff --git a/vid-app-common/pom.xml b/vid-app-common/pom.xml index aefd58dc4..6a48190bd 100755 --- a/vid-app-common/pom.xml +++ b/vid-app-common/pom.xml @@ -17,7 +17,7 @@ <parent> <groupId>org.onap.oparent</groupId> <artifactId>oparent</artifactId> - <version>1.2.3</version> + <version>2.0.0</version> <relativePath/> </parent> @@ -36,10 +36,10 @@ <!-- Skip assembling the zip by default --> <skipassembly>true</skipassembly> <nexusproxy>https://nexus.onap.org</nexusproxy> - <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath> - <releaseNexusPath>/content/repositories/releases/</releaseNexusPath> - <stagingNexusPath>/content/repositories/staging/</stagingNexusPath> - <sitePath>/content/sites/site/org/onap/vid/${project.version}</sitePath> + <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath> + <releaseNexusPath>content/repositories/releases/</releaseNexusPath> + <stagingNexusPath>content/repositories/staging/</stagingNexusPath> + <sitePath>content/sites/site/org/onap/vid/${project.version}</sitePath> <aspectj.version>1.8.9</aspectj.version> <kotlin.version>1.3.11</kotlin.version> @@ -48,6 +48,9 @@ <eirslett.version>1.6</eirslett.version> <node.version>v6.16.0</node.version> + <!-- override using -Drelease_version=foo -Dpatch_version=bar --> + <release_version>${env.RELEASE_VERSION}</release_version> + <patch_version/> </properties> @@ -58,17 +61,17 @@ <repository> <id>ecomp-releases</id> <name>VID Release Repository</name> - <url>${nexusproxy}${releaseNexusPath}</url> + <url>${nexusproxy}/${releaseNexusPath}</url> </repository> <repository> <id>ecomp-snapshots</id> <name>VID Snapshot Repository</name> - <url>${nexusproxy}${snapshotNexusPath}</url> + <url>${nexusproxy}/${snapshotNexusPath}</url> </repository> <repository> <id>ecomp-staging</id> <name>VID Staging Repository</name> - <url>${nexusproxy}${stagingNexusPath}</url> + <url>${nexusproxy}/${stagingNexusPath}</url> </repository> <repository> <!-- Snapshots repository has ECOMP snapshot artifacts --> @@ -92,7 +95,7 @@ <!-- added for javadoc --> <site> <id>ecomp-site</id> - <url>dav:${nexusproxy}${sitePath}</url> + <url>dav:${nexusproxy}/${sitePath}</url> </site> </distributionManagement> @@ -126,18 +129,6 @@ </execution> </executions> </plugin> - - <plugin> - <groupId>org.sonatype.plugins</groupId> - <artifactId>nexus-staging-maven-plugin</artifactId> - <version>1.6.7</version> - <extensions>true</extensions> - <configuration> - <nexusUrl>${nexusproxy}</nexusUrl> - <stagingProfileId>176c31dfe190a</stagingProfileId> - <serverId>ecomp-staging</serverId> - </configuration> - </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> @@ -184,6 +175,16 @@ </configuration> </execution> <execution> + <id>npm config list</id> + <configuration> + <arguments>config ls -l</arguments> + </configuration> + <goals> + <goal>npm</goal> + </goals> + <phase>generate-resources</phase> + </execution> + <execution> <id>npm install</id> <configuration> <arguments>install</arguments> @@ -241,6 +242,30 @@ </plugin> <plugin> + <groupId>com.google.code.maven-replacer-plugin</groupId> + <artifactId>replacer</artifactId> + <version>1.5.3</version> + <executions> + <execution> + <phase>prepare-package</phase> + <goals> + <goal>replace</goal> + </goals> + </execution> + </executions> + <configuration> + <regex>false</regex> + <file>${project.basedir}/src/main/webapp/app/vid/scripts/constants/version.json</file> + <replacements> + <replacement> + <token>BUILD_NUMBER</token> + <value>${release_version}.${patch_version}.${env.BUILD_NUMBER}</value> + </replacement> + </replacements> + </configuration> + </plugin> + + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${surefire.version}</version> |