mvn clean package -> BUILD FAILURE

1,175 views
Skip to first unread message

Betekhtina Elena

unread,
Feb 9, 2015, 6:12:01 AM2/9/15
to opentrippl...@googlegroups.com
Hi, I try to install OpenTripPlanner. I executed commands:
git clone
$ cd /var/www/planner
$ git clone git://github.com/opentripplanner/OpenTripPlanner.git
$ cd OpenTripPlanner $ git checkout 0.11.x

when I issued
$ mvn clean package

I received error messages, including:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.105s
[INFO] Finished at: Mon Feb 09 13:09:18 EET 2015
[INFO] Final Memory: 11M/27M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project otp-core: Could not resolve dependencies for project
org.opentripplanner:otp-core:jar:0.11.1-SNAPSHOT: The following artifacts could not be resolved:
org.processing:core:jar:1.0.7, crosby.binary:osmpbf:jar:1.2.1: Failure to find
org.processing:core:jar:1.0.7 in http://repo1.maven.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central2 has elapsed or updates are
forced -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :otp-core

I suspect it's related to mismatches in software versions

Betekhtina Elena

unread,
Feb 10, 2015, 4:12:04 AM2/10/15
to opentrippl...@googlegroups.com
Solved: https://groups.google.com/forum/#!topic/opentripplanner-users/bTfEk6KKZ_4

понедельник, 9 февраля 2015 г., 13:12:01 UTC+2 пользователь Betekhtina Elena написал:

Steve King

unread,
Feb 13, 2015, 6:54:49 AM2/13/15
to opentrippl...@googlegroups.com
You should also find great success in using JDK 7 instead.

Full fix looks like this (after downloading JDK 7)

rm -rf ~/.m2/
mvn install:install-file -Dfile=core-1.0.7.jar -DpomFile=core-1.0.7.pom
mvn install:install-file -Dfile=osmpbf-1.2.1.jar -DpomFile=osmpbf-1.2.1.pom

export JAVA_HOME=/path/to/jdk1.7.0_75
mvn clean package

Many errors prior to the above, great afterwards.

Reply all
Reply to author
Forward
0 new messages