adding sonatype and deploy plugins 67/867/1
authorPamela Dragosh <pdragosh@research.att.com>
Mon, 20 Feb 2017 00:27:26 +0000 (19:27 -0500)
committerPamela Dragosh <pdragosh@research.att.com>
Mon, 20 Feb 2017 00:27:34 +0000 (19:27 -0500)
Change-Id: Idd658056dd8c019427a4689b9b40d9fc94208593
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
.gitignore
pom.xml
version.properties [new file with mode: 0644]

index a7f6406..c672b9d 100644 (file)
@@ -3,3 +3,4 @@ target
 .settings
 .classpath
 .metadata/
+/bin/
diff --git a/pom.xml b/pom.xml
index 8444d93..b838eec 100644 (file)
--- a/pom.xml
+++ b/pom.xml
 
        <build>
                <plugins>
+                       <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.apache.maven.plugins</groupId>
+                               <artifactId>maven-deploy-plugin</artifactId>
+                               <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter -->
+                               <configuration>
+                                       <skip />
+                               </configuration>
+                       </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
diff --git a/version.properties b/version.properties
new file mode 100644 (file)
index 0000000..cdcd1e9
--- /dev/null
@@ -0,0 +1,13 @@
+# Versioning variables\r
+# Note that these variables cannot be structured (e.g. : version.release or version.snapshot etc... )\r
+# because they are used in Jenkins, whose plug-in doesn't support\r
+\r
+major=1\r
+minor=0\r
+patch=0\r
+\r
+base_version=${major}.${minor}.${patch}\r
+\r
+# Release must be completed with git revision # in Jenkins\r
+release_version=${base_version}\r
+snapshot_version=${base_version}-SNAPSHOT\r