diff options
author | Carsten Lund <lund@research.att.com> | 2017-02-23 16:21:45 +0000 |
---|---|---|
committer | Carsten Lund <lund@research.att.com> | 2017-02-23 16:27:34 +0000 |
commit | a177df29f93e6bbda7f0b1a53cc6028dedfc629a (patch) | |
tree | 73f079b8da1e81867149435783a108cd0aa275a9 | |
parent | bcabeb2a7090ccb3fa5209fdbd40e4f1ba7ccd46 (diff) |
Initial POM to handle staging
Change-Id: I73065168ff3853fa1ffe168fdf9494b4c67f2c3d
Signed-off-by: Carsten Lund <lund@research.att.com>
-rw-r--r-- | ncomp-maven-base/pom.xml | 14 | ||||
-rw-r--r-- | ncomp-maven-xcore/pom.xml | 14 | ||||
-rw-r--r-- | pom.xml | 14 | ||||
-rw-r--r-- | version.properties | 11 |
4 files changed, 53 insertions, 0 deletions
diff --git a/ncomp-maven-base/pom.xml b/ncomp-maven-base/pom.xml index 725eb6a..2924faa 100644 --- a/ncomp-maven-base/pom.xml +++ b/ncomp-maven-base/pom.xml @@ -12,6 +12,9 @@ <maven.compiler.source>1.7</maven.compiler.source> <openecomp.nexus.releases>https://nexus.openecomp.org/content/repositories/releases/</openecomp.nexus.releases> <openecomp.nexus.snapshots>https://nexus.openecomp.org/content/repositories/snapshots/</openecomp.nexus.snapshots> + <openecomp.nexus.proxy>https://nexus.openecomp.org</openecomp.nexus.proxy> + <openecomp.nexus.staging.serverId>https://nexus.openecomp.org/content/repositories/snapshots/</openecomp.nexus.staging.serverId> + <openecomp.nexus.staging.profileId>https://nexus.openecomp.org/content/repositories/snapshots/</openecomp.nexus.staging.profileId> </properties> @@ -31,6 +34,17 @@ </pluginRepositories> <build> <plugins> + <plugin> + <groupId>org.sonatype.plugins</groupId> + <artifactId>nexus-staging-maven-plugin</artifactId> + <version>1.6.7</version> + <extensions>true</extensions> + <configuration> + <serverId>${openecomp.nexus.staging.profileId}</serverId> + <nexusUrl>${openecomp.nexus.proxy}</nexusUrl> + <stagingProfileId>${openecomp.nexus.staging.profileId}</stagingProfileId> + </configuration> + </plugin> <!-- blackduck maven plugin --> <plugin> <groupId>com.blackducksoftware.integration</groupId> diff --git a/ncomp-maven-xcore/pom.xml b/ncomp-maven-xcore/pom.xml index 5a2efd5..4835045 100644 --- a/ncomp-maven-xcore/pom.xml +++ b/ncomp-maven-xcore/pom.xml @@ -12,6 +12,9 @@ <maven.compiler.source>1.7</maven.compiler.source> <openecomp.nexus.releases>https://nexus.openecomp.org/content/repositories/releases/</openecomp.nexus.releases> <openecomp.nexus.snapshots>https://nexus.openecomp.org/content/repositories/snapshots/</openecomp.nexus.snapshots> + <openecomp.nexus.proxy>https://nexus.openecomp.org</openecomp.nexus.proxy> + <openecomp.nexus.staging.serverId>https://nexus.openecomp.org/content/repositories/snapshots/</openecomp.nexus.staging.serverId> + <openecomp.nexus.staging.profileId>https://nexus.openecomp.org/content/repositories/snapshots/</openecomp.nexus.staging.profileId> </properties> @@ -37,6 +40,17 @@ </resource> </resources> <plugins> + <plugin> + <groupId>org.sonatype.plugins</groupId> + <artifactId>nexus-staging-maven-plugin</artifactId> + <version>1.6.7</version> + <extensions>true</extensions> + <configuration> + <serverId>${openecomp.nexus.staging.profileId}</serverId> + <nexusUrl>${openecomp.nexus.proxy}</nexusUrl> + <stagingProfileId>${openecomp.nexus.staging.profileId}</stagingProfileId> + </configuration> + </plugin> <!-- blackduck maven plugin --> <plugin> <groupId>com.blackducksoftware.integration</groupId> @@ -12,6 +12,9 @@ <maven.compiler.source>1.7</maven.compiler.source> <openecomp.nexus.releases>https://nexus.openecomp.org/content/repositories/releases/</openecomp.nexus.releases> <openecomp.nexus.snapshots>https://nexus.openecomp.org/content/repositories/snapshots/</openecomp.nexus.snapshots> + <openecomp.nexus.proxy>https://nexus.openecomp.org</openecomp.nexus.proxy> + <openecomp.nexus.staging.serverId>https://nexus.openecomp.org/content/repositories/snapshots/</openecomp.nexus.staging.serverId> + <openecomp.nexus.staging.profileId>https://nexus.openecomp.org/content/repositories/snapshots/</openecomp.nexus.staging.profileId> </properties> @@ -32,6 +35,17 @@ </pluginRepositories> <build> <plugins> + <plugin> + <groupId>org.sonatype.plugins</groupId> + <artifactId>nexus-staging-maven-plugin</artifactId> + <version>1.6.7</version> + <extensions>true</extensions> + <configuration> + <serverId>${openecomp.nexus.staging.profileId}</serverId> + <nexusUrl>${openecomp.nexus.proxy}</nexusUrl> + <stagingProfileId>${openecomp.nexus.staging.profileId}</stagingProfileId> + </configuration> + </plugin> <!-- blackduck maven plugin --> <plugin> diff --git a/version.properties b/version.properties new file mode 100644 index 0000000..35d03a3 --- /dev/null +++ b/version.properties @@ -0,0 +1,11 @@ +# 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=0
+base_version=${major}.${minor}.${patch}
+# Release must be completed with git revision # in Jenkins
+
+release_version=${base_version}
+snapshot_version=${base_version}-SNAPSHOT
|