I am working on automating release process in my project from tagging to deployment. I am have created a java project for this, this will be a single place to integrate all stages from tagging, building jars to deployment.
Now for tagging and versioning purpose i want to use maven release plugin, but i can see that all maven commands have to be executed through command line which makes it difficult to check the result and output.
One option which i feel can resolve this issue is if i can execute maven commands using some api [just like we have svnkit
for subversion
]. Although i can execute maven commands via commandline through java [Runtime.exec
] but then again issue will be to check result and output.
Any suggestions on java library for maven? or any other way of doing the same thing? My basic aim is to control version of my project and tag the build.
EDIT:
Maven embedder is not supported any more : http://maven.40175.n5.nabble.com/Maven-Embedder-td4708683.html
EDIT:
I found a way out, hudson provides a maven release plugin and then i have developed a hudson java client. So i will be able to control maven release via parameters.