diff options
author | Jimmy Forsyth <jf2512@att.com> | 2017-03-01 16:35:00 -0500 |
---|---|---|
committer | Jimmy Forsyth <jf2512@att.com> | 2017-03-01 16:35:00 -0500 |
commit | 9ef101218c9e9ce382fd2f17c226df7c4ae1a721 (patch) | |
tree | 9c7968cf13de306d38ed234b1b76b799bcbe7b2c | |
parent | eba42e1c1e2d8e237d9af03374136511de5fd280 (diff) |
[OS-144] Setting up staging repo
Change-Id: I351504f2aed77831542c479e09dfa03a91743eb2
Signed-off-by: Jimmy Forsyth <jf2512@att.com>
-rw-r--r-- | pom.xml | 40 | ||||
-rw-r--r-- | version.properties | 13 |
2 files changed, 41 insertions, 12 deletions
@@ -11,8 +11,7 @@ <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <nexus.host>nexus.openecomp.org</nexus.host> - <nexus.proto>https</nexus.proto> + <nexusproxy>https://nexus.openecomp.org</nexusproxy> <build.version>1.0.2-SNAPSHOT</build.version> </properties> <repositories> @@ -20,13 +19,13 @@ <!-- Snapshots repository has ECOMP snapshot artifacts --> <id>nexus-snapshots</id> <name>Nexus Maven Central - Snapshots</name> - <url>${nexus.proto}://${nexus.host}/content/repositories/snapshots/</url> + <url>${nexusproxy}/content/repositories/snapshots/</url> </repository> <repository> <!-- Releases repository has ECOMP release artifacts --> <id>nexus</id> <name>Nexus Maven Central - Releases</name> - <url>${nexus.proto}://${nexus.host}/content/repositories/releases/</url> + <url>${nexusproxy}/content/repositories/releases/</url> </repository> <repository> <!-- Snapshots repository has ECOMP snapshot artifacts --> @@ -72,25 +71,42 @@ <distributionManagement> <repository> - <id>ecomp-releases</id> + <id>releases</id> <name>VID Release Repository</name> - <url>${nexus.proto}://${nexus.host}/content/repositories/releases/</url> + <url>${nexusproxy}/content/repositories/releases/</url> </repository> <snapshotRepository> - <id>ecomp-snapshots</id> + <id>snapshots</id> <name>VID Snapshot Repository</name> - <url>${nexus.proto}://${nexus.host}/content/repositories/snapshots/</url> + <url>${nexusproxy}/content/repositories/snapshots/</url> </snapshotRepository> <!-- added for javadoc --> <site> - <id>ecomp-javadoc</id> - <url>dav:${nexus.proto}://${nexus.host}/content/repositories/vid-javadoc/${project.version}</url> + <id>javadoc</id> + <url>dav:${nexusproxy}/content/repositories/vid-javadoc/${project.version}</url> </site> </distributionManagement> <build> - <plugins> - <plugin> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>versions-maven-plugin</artifactId> + <version>1.3.1</version> + </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.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.7</version> diff --git a/version.properties b/version.properties new file mode 100644 index 0000000..2391453 --- /dev/null +++ b/version.properties @@ -0,0 +1,13 @@ +# Versioning variables
+# Note that these variables cannot be structured (e.g. : version.release or version.snapshot etc... )
+# because they are used in Jenkins, whose plug-in doesn't support
+
+major=1
+minor=0
+patch=2
+
+base_version=${major}.${minor}.${patch}
+
+# Release must be completed with git revision # in Jenkins
+release_version=${base_version}
+snapshot_version=${base_version}-SNAPSHOT
|