Build V0.6RC1 with Maven fails

Hi

i have build the releases 0.5x “graphhopper-tools-0.5-SNAPSHOT-jar-with-dependencies.jar” until now in the tool subdirectory with success

call mvn install -DskipTests=true assembly:single

with the new Snapshot from graphhopper-0.6 the build fails.

[INFO]
[INFO] — maven-jar-plugin:2.6:jar (default-jar) @ graphhopper-tools —
[INFO] ----------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ----------------------------------------------------------------------
[INFO] Total time: 2.500 s
[INFO] Finished at: 2016-01-27T19:35:03+01:00
[INFO] Final Memory: 11M/27M
[INFO] ----------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.6:
(default-jar) on project graphhopper-tools: Error assembling JAR: Failed to
ermine inclusion status for: S:_BuildProject_graphhopper\Snapshot\graphhopp
0.6\tools\pom.xml: S:_BuildProject_graphhopper\Snapshot\graphhopper-0.6\too
pom.xml: Unzulõssige Funktion. → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e s
ch.
[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
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecuti
xception

What i’m doing wrong?

Thanks
Achim

Can you go to the root directory and call?

./graphhopper.sh clean
./graphhopper.sh build

See this issue for background infos https://github.com/graphhopper/graphhopper/issues/568

Excuse: I have Windows and not Linux …

in the root

call mvn clean
call mvn build
has the following Error no jars…

[INFO] Building GraphHopper Parent Project 0.6.0-RC1
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GraphHopper Parent Project … FAILURE [ 0.016 s]
[INFO] GraphHopper Tools LGPL licensed … SKIPPED
[INFO] GraphHopper … SKIPPED
[INFO] GraphHopper Tools … SKIPPED
[INFO] GraphHopper Web … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.359 s
[INFO] Finished at: 2016-01-27T20:39:30+01:00
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase “build”. You must specify a valid lifecycle phas
e or a goal in the format : or :[:]:. Available lifecycle phases are: validate,
initialize, generate-sources, process-sources, generate-resources, process-resou
rces, compile, process-classes, generate-test-sources, process-test-sources, gen
erate-test-resources, process-test-resources, test-compile, process-test-classes
, test, prepare-package, package, pre-integration-test, integration-test, post-i
ntegration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site
, site, post-site, site-deploy. → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase
NotFoundException

Still you can execute the script (e.g. via cygwin) or try:

mvn -DskipTests clean install
cd tools
mvn -DskipTests install assembly:single

For faster build time you can use the -am trick like we do in the script: maven force rebuild of dependent projects (build dependencies first) - Stack Overflow

(On top to what Peter mentions)

If you work inside an IDE, you can use probably more easily its UI for performing the above Maven processes.

Emux

this works not for me… see se first post

I hav the same errors but can not post “Sorry you cannot post a link to that host.” …i hve no link in the post

Can i download “jar-with-dependencies.jar” for Routing with Graphhopper with java

There were too many links where the spam detector hide you post :slight_smile:

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

But no need to post the error again … does it fail at the first or 3rd command?

You could use this here

Thanks for the link!

root

mvn -DskipTests clean install

[INFO] — maven-jar-plugin:2.6:jar (default-jar) @ graphhopper-tools-lgpl —
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GraphHopper Parent Project … SUCCESS [ 0.968 s]
[INFO] GraphHopper Tools LGPL licensed … FAILURE [ 2.000 s]
[INFO] GraphHopper … SKIPPED
[INFO] GraphHopper Tools … SKIPPED
[INFO] GraphHopper Web … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.281 s
[INFO] Finished at: 2016-01-27T22:34:16+01:00
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.6:jar

tools

mvn -DskipTests install assembly:single

S:_BuildProject_graphhopper\Snapshot\graphhopper-0.6\tools>mvn -DskipTests ins
tall assembly:single
[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GraphHopper Tools 0.6.0-RC1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-enforcer-plugin:1.2:enforce (enforce-maven) @ graphhopper-tools

[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ graphhoppe
r-tools —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] — maven-compiler-plugin:3.3:compile (default-compile) @ graphhopper-too
ls —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ gr
aphhopper-tools —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory S:_BuildProject_graphhopper\Snapsho
t\graphhopper-0.6\tools\src\test\resources
[INFO]
[INFO] — maven-compiler-plugin:3.3:testCompile (default-testCompile) @ graphho
pper-tools —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-surefire-plugin:2.18.1:test (default-test) @ graphhopper-tools

[INFO] Tests are skipped.
[INFO]
[INFO] — maven-jar-plugin:2.6:jar (default-jar) @ graphhopper-tools —
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.218 s
[INFO] Finished at: 2016-01-27T22:39:20+01:00
[INFO] Final Memory: 11M/27M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.6:jar

That is strange does it say more than?

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.6:jar

…see the third post for the full message…

Hmmh, but it can’t say the same as there are two different commands (mvn build vs mvn … install) and the 3rd post says something due to the ‘build’ command not known

Hi

i have tried this in IntelliJ execute install in the Graphhopper section

Tests run: 1269, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] — maven-jar-plugin:2.6:jar (default-jar) @ graphhopper —
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:04 min
[INFO] Finished at: 2016-01-29T11:33:01+01:00
[INFO] Final Memory: 8M/27M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.6:jar (default-jar) on project graphhopper: Error assembling JAR: Failed to determine inclusion status for: S:_BuildProject_graphhopper\Snapshot\graphhopper-0.6\core\pom.xml: S:_BuildProject_graphhopper\Snapshot\graphhopper-0.6\core\pom.xml: Unzulässige Funktion. -> [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:

In the IDE has the pom.xml shows an error "Plugin org.apache.maven.plugins:maven-gpg-plugin:1.6 not found"
I have MAVEN 3.2.5

maven-gpg-plugin
1.6

Thanks
Achim

I just tried Maven install on IntelliJ UI (without tests for speed), and it completed successfully.

Emux

Same successful result with tests on.

Emux

It looks like it does not find the gpg plugin … that should not be necessary for just installing the jars. Strange. Did you follow the intelliJ instructions?

Hi

thanks for all answers. Now i can build the JARS. The errors occur only when I want to make that in the Virtual Box with Shared Drives (comandline and Intellij). Why??
I have now made this in my origin system (No Internet connection, but i have copied the .m2 Dir). This works very well.
Thanks
Achim

Hi
How u achieved.Am facing similar kind of problem, could you please explain