summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-02-19 19:27:26 -0500
committerPamela Dragosh <pdragosh@research.att.com>2017-02-19 19:27:34 -0500
commit8696f9f3a397261aa75c8ac96034b7e419551b77 (patch)
treeea527e98aee32a9e159278e32c3d3ed10d9515fc
parent655099257247228da802e828fa64338a60ac13e9 (diff)
adding sonatype and deploy plugins
Change-Id: Idd658056dd8c019427a4689b9b40d9fc94208593 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
-rw-r--r--.gitignore1
-rw-r--r--pom.xml19
-rw-r--r--version.properties13
3 files changed, 33 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index a7f6406cf..c672b9df0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ target
.settings
.classpath
.metadata/
+/bin/
diff --git a/pom.xml b/pom.xml
index 8444d9371..b838eecc4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,6 +55,25 @@
<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>
<configuration>
diff --git a/version.properties b/version.properties
new file mode 100644
index 000000000..cdcd1e9ec
--- /dev/null
+++ b/version.properties
@@ -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 must be completed with git revision # in Jenkins
+release_version=${base_version}
+snapshot_version=${base_version}-SNAPSHOT