diff --git a/pom.xml b/pom.xml
index d991ecb..05a09df 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.reficio
p2-maven-plugin
maven-plugin
- 2.0.0-SNAPSHOT
+ 1.7.0
p2-maven-plugin
https://github.com/reficio/p2-maven-plugin
Maven plugin for the automation of jars wrapping and p2 site generation
diff --git a/release.sh b/release.sh
index a466d00..624b3d3 100755
--- a/release.sh
+++ b/release.sh
@@ -48,24 +48,22 @@ function catch_sig() {
clean_exit $exit_status
}
-if [ $# -ne 3 ]; then
- echo "Usage: release.sh "
+if [ $# -ne 2 ]; then
+ echo "Usage: release.sh "
exit 1
fi
-current_version=$1
-release_version=$2
-new_version=$3
+release_version=$1
+new_version=$2
+
+mvn versions:set -DnewVersion=$release_version -DgenerateBackupPoms=false
-find . \( -name "pom.xml" -or -name "README.md" \) -not -path "*/src/it/*" -not -path "*/target/*" -not -path "*svn*" -not -path "*git*" -exec sed -i "" "s#$current_version#$release_version#g" {} \;
-find . \( -name "pom.xml" -or -name "README.md" \) -not -path "*/src/it/*" -not -path "*/target/*" -not -path "*svn*" -not -path "*git*" -exec sed -i "" "s#projects.reficio.org/p2-maven-plugin/$current_version#projects.reficio.org/p2-maven-plugin/$release_version#g" {} \;
git commit -a -m "$release_version release"
git tag -a v$release_version -a -m "$release_version release"
mvn clean deploy -Prelease
-find . \( -name "pom.xml" -or -name "README.md" \) -not -path "*/src/it/*" -not -path "*/target/*" -not -path "*svn*" -not -path "*git*" -exec sed -i "" "s#$release_version#$new_version#g" {} \;
-find . \( -name "pom.xml" -or -name "README.md" \) -not -path "*/src/it/*" -not -path "*/target/*" -not -path "*svn*" -not -path "*git*" -exec sed -i "" "s#projects.reficio.org/p2-maven-plugin/$release_version#projects.reficio.org/p2-maven-plugin/$new_version#g" {} \;
+mvn versions:set -DnewVersion=$new_version -DgenerateBackupPoms=false
git commit -a -m "Preparing $new_version iteration"
git push