I want to execute Maven command from Java for development of a plugin. I tried maven-embedder but looks like it is now not supported. Is someone aware of some other tool which can be used?
maven-embedder
A simple invocation API : maven-invoker.
Project documentation : http://maven.apache.org/shared/maven-invoker/
Usage : http://maven.apache.org/shared/maven-invoker/usage.html
InvocationRequest request = new DefaultInvocationRequest(); request.setPomFile( new File( "/path/to/pom.xml" ) ); request.setGoals( Arrays.asList( "clean", "install" ) ); Invoker invoker = new DefaultInvoker(); invoker.execute( request );
1.4m articles
1.4m replys
5 comments
57.0k users