aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Lund <lund@research.att.com>2017-02-23 16:21:45 +0000
committerCarsten Lund <lund@research.att.com>2017-02-23 16:27:34 +0000
commita177df29f93e6bbda7f0b1a53cc6028dedfc629a (patch)
tree73f079b8da1e81867149435783a108cd0aa275a9
parentbcabeb2a7090ccb3fa5209fdbd40e4f1ba7ccd46 (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.xml14
-rw-r--r--ncomp-maven-xcore/pom.xml14
-rw-r--r--pom.xml14
-rw-r--r--version.properties11
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>
diff --git a/pom.xml b/pom.xml
index 1be7884..a34141a 100644
--- a/pom.xml
+++ b/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>
@@ -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