Added staging and version.properties 83/1283/1
authorml636r <ml636r@att.com>
Thu, 23 Feb 2017 12:46:45 +0000 (14:46 +0200)
committerml636r <ml636r@att.com>
Thu, 23 Feb 2017 12:46:45 +0000 (14:46 +0200)
Change-Id: I31c4c750715f9b9e50d3587416e2d8e78d4e6738
Signed-off-by: ml636r <ml636r@att.com>
pom.xml
version.properties [new file with mode: 0644]

diff --git a/pom.xml b/pom.xml
index 622b310..be86365 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                <httpclient.version>4.5</httpclient.version>
                <httpcore.version>4.4.1</httpcore.version>
                <snakeyaml.version>1.14</snakeyaml.version>
-<!--           <sonar.login>sonaruser</sonar.login>
-               <sonar.password>us7USi0Htu93nFY91DPuQLFo6ebKcKXv</sonar.password>
-               <sonar.host.url>http://104.239.145.8:9000</sonar.host.url>
                <sonar.skipDesign>true</sonar.skipDesign>
                <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
-               <sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath> -->
+               <sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath>
                <nexus.proxy>https://nexus.openecomp.org</nexus.proxy>
+               <staging.profile.id>176c31dfe190a</staging.profile.id>
        </properties>
 
        <reporting>
                                </executions>
                        </plugin>
 
+                       <!-- Staging Plugin -->
+                       <plugin>
+                               <groupId>org.sonatype.plugins</groupId>
+                               <artifactId>nexus-staging-maven-plugin</artifactId>
+                               <version>1.6.7</version>
+                               <extensions>true</extensions>
+                               <configuration>
+                                       <nexusUrl>${nexus.proxy}</nexusUrl>
+                                       <stagingProfileId>${staging.profile.id}</stagingProfileId>
+                                       <serverId>ecomp-staging</serverId>
+                               </configuration>
+                       </plugin>
+
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
 
                        </distributionManagement>
 </project>
+
diff --git a/version.properties b/version.properties
new file mode 100644 (file)
index 0000000..bf3f0bf
--- /dev/null
@@ -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=0
+
+base_version=${major}.${minor}.${patch}
+
+release_version=${base_version}
+snapshot_version=${base_version}-SNAPSHOT