| 1 |
mvn clean install |
| 2 |
|
| 3 |
# Check integration tests (with jmx4perl/it/it.pl) |
| 4 |
# Check Javascript tests |
| 5 |
cd client/javascript/test-app |
| 6 |
# Fix version number, test-app is not increased with the release plugin |
| 7 |
mvn clean install jetty:run-exploded |
| 8 |
firefox http://localhost:8080/ |
| 9 |
|
| 10 |
# ======================================================================= |
| 11 |
# Increase Version Numbers: |
| 12 |
|
| 13 |
vi src/docbkx/index.xml |
| 14 |
vi client/javascript/src/main/javascript/jolokia.js |
| 15 |
vi client/javascript/src/main/javascript/jolokia-cubism.js |
| 16 |
vi agent/core/src/main/java/org/jolokia/Version.java |
| 17 |
vi pom.xml |
| 18 |
--> <currentStableVersion>1.0.0</currentStableVersion> |
| 19 |
<currentSnapshotVersion>1.0.1-SNAPSHOT</currentSnapshotVersion> |
| 20 |
vi src/changes/changes.xml and update date |
| 21 |
|
| 22 |
Check in and push |
| 23 |
|
| 24 |
# ======================================================================== |
| 25 |
# Build release and deploy it on labs |
| 26 |
git clone [email protected]:rhuss/jolokia.git |
| 27 |
cd jolokia |
| 28 |
mvn -Dmaven.repo.local=/tmp/repo -DdevelopmentVersion=1.0.1-SNAPSHOT -DreleaseVersion=1.0.0 -Dtag=v1.0.0 -Pdist,roo release:prepare |
| 29 |
mvn -Dmaven.repo.local=/tmp/repo -DdevelopmentVersion=1.0.1-SNAPSHOT -DreleaseVersion=1.0.0 -Dtag=v1.0.0 -Pdist,roo release:perform |
| 30 |
|
| 31 |
# Copy assembly to Github |
| 32 |
|
| 33 |
* Create a new release ("Draft a release" - Button) |
| 34 |
* Upload tar.gz and zip files from target/checkout/src/assembly/target |
| 35 |
* Upload all JavaScript files in target/checkout/client/javascript/target: |
| 36 |
- compressed/jolokia-*.js |
| 37 |
- scripts/jolokia*.js |
| 38 |
* Upload JVM debian package from |
| 39 |
- agent/jvm/target/*.deb |
| 40 |
|
| 41 |
# Deploy to Sonatype staging |
| 42 |
cd target/checkout |
| 43 |
mvn -Dmaven.repo.local=/tmp/repo -Pdist,roo deploy |
| 44 |
cd ../.. |
| 45 |
|
| 46 |
# Release on central maven repo |
| 47 |
# See: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide |
| 48 |
# Staging Nexus: https://oss.sonatype.org/ |
| 49 |
# Steps todo: |
| 50 |
# 1. Login into https://oss.sonatype.org/ |
| 51 |
# 2. "Staging Repositories" |
| 52 |
# 3. Select staging repository |
| 53 |
# 4. Click "Close" in menu |
| 54 |
# 5. Check the artifacts in the "closed" repository |
| 55 |
# 6. If ok --> click "Release" in menu |
| 56 |
|
| 57 |
# ======================================================================== |
| 58 |
# Adapt meta data |
| 59 |
|
| 60 |
# Add new release to jolokia.meta |
| 61 |
vi src/site/resources/jolokia.meta |
| 62 |
# Sign and create checksums |
| 63 |
gpg --allow-weak-digest-algos --digest-algo=SHA1 --local-user [email protected] -a -b src/site/resources/jolokia.meta |
| 64 |
shasum src/site/resources/jolokia.meta > src/site/resources/jolokia.meta.sha1 |
| 65 |
md5 -q src/site/resources/jolokia.meta > src/site/resources/jolokia.meta.md5 |
| 66 |
|
| 67 |
|
| 68 |
# ======================================================================== |
| 69 |
# Recreate Website (~/jolokia) |
| 70 |
|
| 71 |
# Update version number in site.xml to next dev version |
| 72 |
vi ./src/site/site.xml |
| 73 |
# Update Skin version to next snapshot |
| 74 |
vi tools/site-skin/pom.xml |
| 75 |
git commit -a |
| 76 |
|
| 77 |
# Adapted tracking code |
| 78 |
git co analytics |
| 79 |
git rebase master |
| 80 |
cd tools/site-skin; mvn clean install; |
| 81 |
cd ../.. |
| 82 |
mvn clean install |
| 83 |
mvn -N -Pdist site |
| 84 |
|
| 85 |
# Roo-Plugin: |
| 86 |
# Adapt uri and version number in root-repository.xml to use a httpgpg URL instead of a relative http |
| 87 |
# /home/maven-repository/www/htdocs/repository/roo-repository.xml |
| 88 |
# URL |
| 89 |
|
| 90 |
# ============================================================================= |
| 91 |
# Snapshot release |
| 92 |
|
| 93 |
# Set version number in Version.java, jolokia.js, jolokia-cubism.js, test-app/pom.xml, docbkx/index.xml |
| 94 |
mvn -Pdist deploy |
| 95 |
# Adapt URI and version number in root-repository.xml on labs.consol.de to us a httppgp URL |
| 96 |
|
| 97 |
|