Hi,
I'm currently releasing a new version of Flexmojos. While I sort of found a procedure for releasing that maven plugin, it's still sort of a PITA.
The main problem is that the project contains the plugin as well as some modules that use the plugin. Now in order to build, I have a "minimal" profile which builds only the plugin and after that I'm good to go with normal building. Now when doing a release, I usually do this:
- mvn release:prepare (will fail as the plugin doesn't exist in the release version)
- mvn -Pminimal install (Which installs the release version)
- mvn release:rollback
- mvn release:prepare
- mvn release:perform (will fail as the new SNAPSHOT version of the plugin doesn't exist yet)
- mvn -Pminimal install (Which installs the SNAPSHOT version)
- mvn release:perform
But to say that's ideal would be a lie ;-)
Using version:set to update to the release version and the new SNAPSHOT version and doing a minimal build of each prior to the actual release, sort of doesn't sound ideal either :-(
How do you guys do this when releasing maven plugins?
Chris
I'm currently releasing a new version of Flexmojos. While I sort of found a procedure for releasing that maven plugin, it's still sort of a PITA.
The main problem is that the project contains the plugin as well as some modules that use the plugin. Now in order to build, I have a "minimal" profile which builds only the plugin and after that I'm good to go with normal building. Now when doing a release, I usually do this:
- mvn release:prepare (will fail as the plugin doesn't exist in the release version)
- mvn -Pminimal install (Which installs the release version)
- mvn release:rollback
- mvn release:prepare
- mvn release:perform (will fail as the new SNAPSHOT version of the plugin doesn't exist yet)
- mvn -Pminimal install (Which installs the SNAPSHOT version)
- mvn release:perform
But to say that's ideal would be a lie ;-)
Using version:set to update to the release version and the new SNAPSHOT version and doing a minimal build of each prior to the actual release, sort of doesn't sound ideal either :-(
How do you guys do this when releasing maven plugins?
Chris