Skip to content

Instantly share code, notes, and snippets.

Created July 1, 2017 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c4a6377d3559551084315518092a9aee to your computer and use it in GitHub Desktop.
Save anonymous/c4a6377d3559551084315518092a9aee to your computer and use it in GitHub Desktop.
stdin
[INFO] --- protobuf-maven-plugin:0.5.0:compile (default) @ common ---
[INFO] Compiling 1 proto file(s) to /home/dmp1ce/Projects/aur/bitsquare/src/bitsquare/common/target/generated-sources/protobuf/java
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] parent ............................................. SUCCESS [ 0.078 s]
[INFO] common ............................................. FAILURE [ 0.332 s]
[INFO] jsocks ............................................. SKIPPED
[INFO] jtorctl ............................................ SKIPPED
[INFO] jtorproxy .......................................... SKIPPED
[INFO] network ............................................ SKIPPED
[INFO] core ............................................... SKIPPED
[INFO] gui ................................................ SKIPPED
[INFO] seednode ........................................... SKIPPED
[INFO] statistics ......................................... SKIPPED
[INFO] provider ........................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.500 s
[INFO] Finished at: 2017-07-01T08:36:29-04:00
[INFO] Final Memory: 11M/485M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile (default) on project common: An error occurred while invoking protoc.: Error while executing process. Cannot run program "/usr/local/bin/protoc": error=2, No such file or directory -> [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 :common
==> ERROR: A failure occurred in build().
Aborting...
@sum01
Copy link

sum01 commented Jul 2, 2017

googleapis/google-api-java-client#954
TL;DR: Add protobuf to PKGBUILD depends, and...

the protoc version has to match the version of the protobuf-java runtime

@dmp1ce
Copy link

dmp1ce commented Jul 5, 2017

The path in pom.xml had to be changed. I added this line to the PKGBUILD. sed -i 's#/usr/local/bin/protoc#/usr/bin/protoc#g' bitsquare/common/pom.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment