Brian O'Connor

adding maven-plugin to onos-change-version

Change-Id: I0e568213f5752174df0610426c38aa88e0d6bbd3
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
39 <description>Open Network Operating System root project</description> 39 <description>Open Network Operating System root project</description>
40 40
41 <modules> 41 <modules>
42 - <module>tools/package/maven-plugin</module>
43 <module>utils</module> 42 <module>utils</module>
44 <module>core</module> 43 <module>core</module>
45 <module>web</module> 44 <module>web</module>
......
...@@ -34,3 +34,6 @@ for atype in api bundle cli; do ...@@ -34,3 +34,6 @@ for atype in api bundle cli; do
34 sed -i "" -E "1,/<onos.version>/s/<onos.version>[^<]*</<onos.version>$NEW_VERSION</g" $pom 34 sed -i "" -E "1,/<onos.version>/s/<onos.version>[^<]*</<onos.version>$NEW_VERSION</g" $pom
35 done 35 done
36 36
37 +pushd tools/package/maven-plugin
38 +mvn versions:set -DnewVersion=$NEW_VERSION versions:commit
39 +popd
......
...@@ -20,6 +20,11 @@ cd $ONOS_ROOT ...@@ -20,6 +20,11 @@ cd $ONOS_ROOT
20 onos-change-version $NEW_VERSION 20 onos-change-version $NEW_VERSION
21 export ONOS_VERSION=$NEW_VERSION 21 export ONOS_VERSION=$NEW_VERSION
22 22
23 +# Build the maven-plugin
24 +pushd tools/package/maven-plugin
25 +mvn clean install && mvn -Prelease clean deploy
26 +popd
27 +
23 # Build ONOS & deploy to staging repo using the release profile. 28 # Build ONOS & deploy to staging repo using the release profile.
24 onos-build && onos-package && mvn -Prelease clean deploy -DskipTests 29 onos-build && onos-package && mvn -Prelease clean deploy -DskipTests
25 30
...@@ -28,8 +33,9 @@ onos-build-docs ...@@ -28,8 +33,9 @@ onos-build-docs
28 33
29 # Build ONOS archetypes & deploy to staging repo using the release profile. 34 # Build ONOS archetypes & deploy to staging repo using the release profile.
30 # Note that release of the staging repository is a separate manual step. 35 # Note that release of the staging repository is a separate manual step.
31 -cd tools/package/archetypes/ 36 +pushd tools/package/archetypes/
32 mvn clean install && onos-archetypes-test && mvn -Prelease clean deploy 37 mvn clean install && onos-archetypes-test && mvn -Prelease clean deploy
38 +popd
33 39
34 # Commit newly versioned artifacts and issue a tag. 40 # Commit newly versioned artifacts and issue a tag.
35 git commit -a -m"Tagging $NEW_VERSION" 41 git commit -a -m"Tagging $NEW_VERSION"
......