I am trying to build a project to checkout code from SCM and build it using maven. Is there a way we can achieve running maven goals from java without a maven home being provided(no maven installation). For SVN, I am using svnkit to achieve the same. For maven, I tried using the below 2 options.
http://maven.apache.org/ref/3.0-beta-3/maven-embedder/ Can anyone give a good example of using org.apache.maven.cli.MavenCli programattically?
For both the above options, I need to have a maven installation. Any suggestions?
No, just include the jar in your project and the following, to compile code:
Per a comment, here's how you add the dependency to your project. This does not install maven on your system, merely includes the JARs in your project build: