> Build successful in both the ways. However, my requirement want to build the
> project through Java API.
>
> Process pb = new ProcessBuilder("cmd.exe", "/C", getMavenHome() +
> "\\bin\\mvn.bat -f " + getProjectPath() + " -DskipTests=true clean
> install");You realize this is not really "building the project through Java API" but rather "calling the Maven executable on Windows from Java", right? > [WARNING] Attempting to build MavenProject instance for Artifact > (org.codehaus.mojo:xdoclet-maven-plugin:1.0-beta-1-internal-FDS) of type: ... > Generating Local Home interface for 'com.XXXXXXXX'. > > The build is stopped or paused at this point. It never finishe its exection. Download the Java code for the xdoclet plugin (it is open source) and poke around. See what it does immediately after the System.out for "Generating Local Home interface" line. Perhaps you will notice something in the code which helps explains the results you are seeing. Wayne --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
