aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Lund <lund@research.att.com>2017-02-26 12:19:14 +0000
committerCarsten Lund <lund@research.att.com>2017-02-26 12:19:14 +0000
commit7203b0d42a26942e2df12e5d9c5083bd0dc05db9 (patch)
treec42568179905e48209ad7a2bb106fc863c6fa750
parent74131df9ba16e63e894c1d64796c8d2b2dc420a1 (diff)
Fixes POMs for release job
Change-Id: Id3ea02e47147973153c1e024341fb1f29351089a Signed-off-by: Carsten Lund <lund@research.att.com>
-rw-r--r--ncomp-core-model/pom.xml34
-rw-r--r--ncomp-core-tools/pom.xml48
-rw-r--r--ncomp-core-types/pom.xml48
-rw-r--r--pom.xml34
-rw-r--r--version.properties11
5 files changed, 39 insertions, 136 deletions
diff --git a/ncomp-core-model/pom.xml b/ncomp-core-model/pom.xml
index fe50f1e..0319c78 100644
--- a/ncomp-core-model/pom.xml
+++ b/ncomp-core-model/pom.xml
@@ -15,43 +15,9 @@
</properties>
- <pluginRepositories>
- <!-- Black Duck plugin dependencies -->
- <pluginRepository>
- <id>JCenter</id>
- <name>JCenter Repository</name>
- <url>http://jcenter.bintray.com</url>
- </pluginRepository>
-
- <pluginRepository>
- <id>Restlet</id>
- <name>Restlet Repository</name>
- <url>http://maven.restlet.com</url>
- </pluginRepository>
- </pluginRepositories>
<build>
<sourceDirectory>src/main/xcore-gen</sourceDirectory>
<plugins>
- <!-- blackduck maven plugin -->
- <plugin>
- <groupId>com.blackducksoftware.integration</groupId>
- <artifactId>hub-maven-plugin</artifactId>
- <version>1.4.0</version>
- <inherited>false</inherited>
- <configuration>
- <hubProjectName>${project.name}</hubProjectName>
- <outputDirectory>${project.basedir}</outputDirectory>
- </configuration>
- <executions>
- <execution>
- <id>create-bdio-file</id>
- <phase>package</phase>
- <goals>
- <goal>createHubOutput</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
<!-- site maven plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
diff --git a/ncomp-core-tools/pom.xml b/ncomp-core-tools/pom.xml
index 2cb84db..0e8c662 100644
--- a/ncomp-core-tools/pom.xml
+++ b/ncomp-core-tools/pom.xml
@@ -12,45 +12,25 @@
<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>ecomp-staging</openecomp.nexus.staging.serverId>
+ <openecomp.nexus.staging.profileId>176c31dfe190a</openecomp.nexus.staging.profileId>
</properties>
- <pluginRepositories>
- <!-- Black Duck plugin dependencies -->
- <pluginRepository>
- <id>JCenter</id>
- <name>JCenter Repository</name>
- <url>http://jcenter.bintray.com</url>
- </pluginRepository>
-
- <pluginRepository>
- <id>Restlet</id>
- <name>Restlet Repository</name>
- <url>http://maven.restlet.com</url>
- </pluginRepository>
- </pluginRepositories>
<build>
<plugins>
- <!-- blackduck maven plugin -->
- <plugin>
- <groupId>com.blackducksoftware.integration</groupId>
- <artifactId>hub-maven-plugin</artifactId>
- <version>1.4.0</version>
- <inherited>false</inherited>
- <configuration>
- <hubProjectName>${project.name}</hubProjectName>
- <outputDirectory>${project.basedir}</outputDirectory>
- </configuration>
- <executions>
- <execution>
- <id>create-bdio-file</id>
- <phase>package</phase>
- <goals>
- <goal>createHubOutput</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
+ <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.serverId}</serverId>
+ <nexusUrl>${openecomp.nexus.proxy}</nexusUrl>
+ <stagingProfileId>${openecomp.nexus.staging.profileId}</stagingProfileId>
+ </configuration>
+ </plugin>
<!-- site maven plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
diff --git a/ncomp-core-types/pom.xml b/ncomp-core-types/pom.xml
index 1f508a5..d06db14 100644
--- a/ncomp-core-types/pom.xml
+++ b/ncomp-core-types/pom.xml
@@ -10,45 +10,25 @@
<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>ecomp-staging</openecomp.nexus.staging.serverId>
+ <openecomp.nexus.staging.profileId>176c31dfe190a</openecomp.nexus.staging.profileId>
</properties>
- <pluginRepositories>
- <!-- Black Duck plugin dependencies -->
- <pluginRepository>
- <id>JCenter</id>
- <name>JCenter Repository</name>
- <url>http://jcenter.bintray.com</url>
- </pluginRepository>
-
- <pluginRepository>
- <id>Restlet</id>
- <name>Restlet Repository</name>
- <url>http://maven.restlet.com</url>
- </pluginRepository>
- </pluginRepositories>
<build>
<plugins>
- <!-- blackduck maven plugin -->
- <plugin>
- <groupId>com.blackducksoftware.integration</groupId>
- <artifactId>hub-maven-plugin</artifactId>
- <version>1.4.0</version>
- <inherited>false</inherited>
- <configuration>
- <hubProjectName>${project.name}</hubProjectName>
- <outputDirectory>${project.basedir}</outputDirectory>
- </configuration>
- <executions>
- <execution>
- <id>create-bdio-file</id>
- <phase>package</phase>
- <goals>
- <goal>createHubOutput</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
+ <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.serverId}</serverId>
+ <nexusUrl>${openecomp.nexus.proxy}</nexusUrl>
+ <stagingProfileId>${openecomp.nexus.staging.profileId}</stagingProfileId>
+ </configuration>
+ </plugin>
<!-- site maven plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
diff --git a/pom.xml b/pom.xml
index e4acd45..1aa9109 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,43 +13,9 @@
- <pluginRepositories>
- <!-- Black Duck plugin dependencies -->
- <pluginRepository>
- <id>JCenter</id>
- <name>JCenter Repository</name>
- <url>http://jcenter.bintray.com</url>
- </pluginRepository>
-
- <pluginRepository>
- <id>Restlet</id>
- <name>Restlet Repository</name>
- <url>http://maven.restlet.com</url>
- </pluginRepository>
- </pluginRepositories>
<build>
<plugins>
- <!-- blackduck maven plugin -->
- <plugin>
- <groupId>com.blackducksoftware.integration</groupId>
- <artifactId>hub-maven-plugin</artifactId>
- <version>1.4.0</version>
- <inherited>false</inherited>
- <configuration>
- <hubProjectName>${project.name}</hubProjectName>
- <outputDirectory>${project.basedir}</outputDirectory>
- </configuration>
- <executions>
- <execution>
- <id>create-bdio-file</id>
- <phase>package</phase>
- <goals>
- <goal>createHubOutput</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
<!-- site maven plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
diff --git a/version.properties b/version.properties
new file mode 100644
index 0000000..c0f2742
--- /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