This is Confluence Plugin that List Maven Artifact(s) information in Confluence page via Macro. There also have a configuration page used to configure Nexus credential, Nexus URL and default Group ID used to search Maven Artifact(s).
Tested on Confluence 4.0 and 3.4.3
- Tested on Nexus 1.9.2.2
- Tested on Nexus 2.x
- Tested on Nexus 3.x
To compile you need apache maven 2 (tested with 2.2.1) using the following switches:
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
since the atlassian repository is not well configured (as of 20210324).
- view commit Added ignore unit test
- view commit Use java.util.logging so we can see when the plugin is used in tomcat logs.
- view commit Added missing scripts
- view commit [maven-release-plugin] prepare for next development iteration
- view commit gson should be embedded in the bundle.
- view commit [maven-release-plugin] prepare for next development iteration
- view commit Settings are still not saved.
- view commit [maven-release-plugin] prepare for next development iteration
- view commit The plugin was not saving correctly the new nexus3 property.
- view commit Updated deploy instructions
- view commit Updated deploy instructions
- view commit [maven-release-plugin] prepare for next development iteration
- view commit Fixed https://github.com/advisories/GHSA-269g-pwp5-87pp
- view commit Added releases notes and deploy procedure.
- view commit Fixed pom for releasing the plugin
- view commit Now work across nexus 1.x, nexus 2.x and nexus 3.x
- view commit Made plugin search more specificly for the artifacts, removed unused code, added some more info to the most common error message, added ignore of DS_Store and made the plugin ignore inherited polopoly.version property when printing supported version.
- view commit MDCPD-188 Add validation and tune unit test case
- view commit MDCPD-188 Make the maven repo link customizable from configuration page
- view commit Merge branch 'master' of github.com:polopoly/confluence-nexus-plugin
- view commit MDCPD-168 MDCPD-170 Change text label
You need to use java 1.8
mvn clean install deploy -Pdeploy
First you need to generate the release notes, use the last tag generated:
./getReleaseNotes.sh confluence-nexus-plugin-xxxx | pbcopy
Edit the file README.md
by adding the new release on top and pasting the output of the script above and then push to git.
git commit -a -m "update release notes"
git push
mvn clean install deploy release:prepare -Pdeploy -DautoVersionSubmodules=true
mvn clean install deploy release:perform -Pdeploy
For these two tasks you can use the scripts:
./releasePrepare.sh <maven settings.xml>
./releasePerform.sh <maven settings.xml>
Sometimes when you perform a release it may fail with an error Unable to tag SCM
.
You need to clean the release
mvn release:clean
and remove the tag from the local and remote git:
git tag -d confluence-nexus-plugin-xxxx
git push --delete origin confluence-nexus-plugin-xxxx
finally you can cleanup the checked out files (this will revert all the modified files!!!):
git reset HEAD --hard
Then you can try to release it again.