The feature is distributed via a P2 composite repository hosted at JFrog (https://mybatis.jfrog.io/artifactory/generator-eclipse-release/). The build includes scripts that automate much of the work involved with publishing a new version to JFrog. The generated JFrog upload script is a bash script - so the first thing to know is that you must do this on a machine that supports bash.
The publishing build communicates with JFrog during the build - so you must have Internet access when running this build.
Here's how to do it:
./mvnw -Prelease-composite clean integration-test
"
on the pom.xml
in the parent directory of all eclipse projects ("../eclipse"). This turns on
the "release-composite"
profile which adds build steps to retrieve the current P2 metadata from JFrog and prepare
the release artifacts for uploading.
target/p2-composite-repo
" in the
org.mybatis.generator.eclipse.site
project. That directory will contain all
the updated artifacts for uploading to JFrog, and there will also be a script file
jfrogUpload.sh
that you can use to upload the new version to JFrog.
jfrogUpload.sh
and set the proper values for your JFrog user and
API key. There are Bash variables defined at the top of the script that you should update
for that purpose.org.mybatis.generator/feature.xml
org.mybatis.generator/pom.xml
org.mybatis.generator.core/META-INF/MANIFEST.MF
org.mybatis.generator.core/pom.xml
org.mybatis.generator.eclipse.core/META-INF/MANIFEST.MF
org.mybatis.generator.eclipse.core/pom.xml
org.mybatis.generator.eclipse.core.tests/META-INF/MANIFEST.MF
org.mybatis.generator.eclipse.core.tests/pom.xml
org.mybatis.generator.eclipse.doc/META-INF/MANIFEST.MF
org.mybatis.generator.eclipse.doc/pom.xml
org.mybatis.generator.eclipse.parent/pom.xml
org.mybatis.generator.eclipse.site/pom.xml
org.mybatis.generator.eclipse.tests.harness/META-INF/MANIFEST.MF
org.mybatis.generator.eclipse.tests.harness/pom.xml
org.mybatis.generator.eclipse.ui/META-INF/MANIFEST.MF
org.mybatis.generator.eclipse.ui/pom.xml
org.mybatis.generator.eclipse.ui.tests/META-INF/MANIFEST.MF
org.mybatis.generator.eclipse.ui.tests/pom.xml
This can be easily accomplished with the Tycho versions plugin:
./mvnw tycho-versions:set-version -DnewVersion=1.4.1-SNAPSHOT