error while mvn install (Gerrit Code Review - WAR ..... FAILURE)

74 views
Skip to first unread message

mani chandel

unread,
Aug 28, 2013, 2:50:29 AM8/28/13
to repo-d...@googlegroups.com
Hi All,
 
I am getting the following error when running mvn install (skip test) from eclipse.
Am I missing something here?
 
I have tried executing it from command line when skipping tests + documentation then it works fine.
 
Regards,
Mani
 
 
 

main:

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO]

[INFO] Gerrit Code Review - Parent ....................... SUCCESS [4.390s]

[INFO] Gerrit Code Review - Utility - SSL ................ SUCCESS [10.623s]

[INFO] Gerrit Code Review - Patch commons-net ............ SUCCESS [0.620s]

[INFO] Gerrit Code Review - Patch JGit ................... SUCCESS [2.762s]

[INFO] Gerrit Code Review - Utility - CLI ................ SUCCESS [0.793s]

[INFO] Gerrit Code Review - ANTLR ........................ SUCCESS [4.564s]

[INFO] Gerrit Code Review - ReviewDB ..................... SUCCESS [0.804s]

[INFO] Gerrit Code Review - Prettify ..................... SUCCESS [0.949s]

[INFO] Gerrit Code Review - Common ....................... SUCCESS [7.895s]

[INFO] Gerrit Code Review - Extension API ................ SUCCESS [7.106s]

[INFO] Gerrit Code Review - Server ....................... SUCCESS [1:14.250s]

[INFO] Gerrit Code Review - Guava + H2 caching ........... SUCCESS [1.649s]

[INFO] Gerrit Code Review - Launcher ..................... SUCCESS [0.790s]

[INFO] Gerrit Code Review - HTTPd ........................ SUCCESS [10.040s]

[INFO] Gerrit Code Review - GWT UI ....................... SUCCESS [2:50.795s]

[INFO] Gerrit Code Review - Main ......................... SUCCESS [1.276s]

[INFO] Gerrit Code Review - OpenID servlet and RPC ....... SUCCESS [2.625s]

[INFO] Gerrit Code Review - SSHd ......................... SUCCESS [7.690s]

[INFO] Gerrit Code Review - Pgm .......................... SUCCESS [7.589s]

[INFO] Gerrit Code Review - Plugin API ................... SUCCESS [1:32.263s]

[INFO] replication ....................................... SUCCESS [5.466s]

[INFO] reviewnotes ....................................... SUCCESS [0.931s]

[INFO] commit-message-length-validator ................... SUCCESS [0.547s]

[INFO] Gerrit Code Review - WAR .......................... FAILURE [6.886s]

[INFO] Gerrit Code Review - GWT UI Debugging Support ..... SKIPPED

[INFO] Gerrit Code Review - Acceptance Tests ............. SKIPPED

[INFO] Gerrit Code Review - Plugin Archetype ............. SKIPPED

[INFO] Gerrit Code Review - Plugin GWT UI ................ SKIPPED

[INFO] Gerrit Code Review - Web UI JavaScript Plugin Archetype SKIPPED

[INFO] Gerrit Code Review - Web Ui GWT Plugin Archetype .. SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 7:10.926s

[INFO] Finished at: Wed Aug 28 11:34:52 IST 2013

[INFO] Final Memory: 29M/58M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (include-documentation) on project gerrit-war: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "make" (in directory "C:\Users\253673\gerrit_source\gerrit\Documentation"): CreateProcess error=2, The system cannot find the file specified -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn <goals> -rf :gerrit-war

David Pursehouse

unread,
Aug 28, 2013, 3:34:19 AM8/28/13
to mani chandel, repo-d...@googlegroups.com
On 08/28/2013 03:50 PM, mani chandel wrote:
> Hi All,
> I am getting the following error when running mvn install (skip test)
> from eclipse.
> Am I missing something here?
> I have tried executing it from command line when skipping tests +
> documentation then it works fine.
> Regards,
> Mani
>

[snip]

> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-antrun-plugin:1.6:run
> (include-documentation) on project gerrit-war: An Ant
> _BuildException_has occured: Execute failed: _java.io.IOException_:
> Cannot run program "make" (in directory
> "C:\Users\253673\gerrit_source\gerrit\Documentation"): CreateProcess
> error=2, The system cannot find the file specified -> [Help 1]
>

The build is failing because 'make' is not found. This is used when
building the documentation, so that's why it's successful when you skip
the documentation build.

You can fix this by installing 'make'. Or if it's already installed,
check that it's in in a location that's included in the system path.

Note that for the documentation build you also need asciidoc version
8.6.3 or higher.

Reply all
Reply to author
Forward
0 new messages