Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven build failure #5

Open
ivanhjc opened this issue Jun 21, 2017 · 1 comment
Open

Maven build failure #5

ivanhjc opened this issue Jun 21, 2017 · 1 comment

Comments

@ivanhjc
Copy link

ivanhjc commented Jun 21, 2017

While building on Windows it gives the error message:

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for mapr.com:kafka-examples:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 36, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building kafka-examples 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ kafka-examples ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ kafka-examples ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ kafka-examples ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\Workspace\Intellij\kafka-sample-programs\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ kafka-examples ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ kafka-examples ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kafka-examples ---
[INFO] Building jar: E:\Workspace\Intellij\kafka-sample-programs\target\kafka-examples-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-assembly-plugin:2.4:single (make-assembly) @ kafka-examples ---
[INFO] Building jar: E:\Workspace\Intellij\kafka-sample-programs\target\kafka-examples-1.0-SNAPSHOT-jar-with-dependencies.jar
[INFO] 
[INFO] --- really-executable-jar-maven-plugin:1.1.0:really-executable-jar (default) @ kafka-examples ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.638 s
[INFO] Finished at: 2017-06-21T11:24:28+08:00
[INFO] Final Memory: 14M/338M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.skife.maven:really-executable-jar-maven-plugin:1.1.0:really-executable-jar (default) on project kafka-examples: FAILURE! FAILURE!
[ERROR] Cannot run program "chmod": CreateProcess error=2, the system cannot find the file specified.
[ERROR] -> [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
@SondrePadoy
Copy link

Issue is solved by installing cygwin64 and adding the path to chmod in the system variable. Default location for chmod in cygwin64 is C:\cygwin64\bin. See http://javaprotlib.sourceforge.net/packages/io/howtofixhadoop.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants