Maven build failed:

1,123 views
Skip to first unread message

Валерий Хвалев

unread,
Sep 20, 2014, 8:51:39 AM9/20/14
to opentrippl...@googlegroups.com
Hi, 
just truing to install sandbox based on OTP for playing with GTFS files. Everything was done according instruction from https://github.com/opentripplanner/OpenTripPlanner/wiki/Minimal-Introduction 

The error occured on mvn buid stage

------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.595s
[INFO] Finished at: Sat Sep 20 15:49:02 FET 2014
[INFO] Final Memory: 8M/22M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project otp: Could not resolve dependencies for project org.opentripplanner:otp:jar:1.0.0-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.


If someone can advice how to solve problem ? 

P.s. Trying on Ubuntu 12.04 

Marko Burjek

unread,
Sep 20, 2014, 10:16:03 AM9/20/14
to opentripplanner-users
I would still suggests to use latest stable version (0.11). Master is development branch which changes daily.
Do mvn clean and git checkout 0.11.x to get latest stable branch
then mvn package to build it.

--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Валерий Хвалев

unread,
Sep 20, 2014, 11:43:21 AM9/20/14
to opentrippl...@googlegroups.com
Marko, thanks a lot for information. 

Really I switch to 0.11.x branch and situation looks better. 

But it's seems some jar moved to another site: 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project otp-core: Compilation failure: Compilation failure:
[ERROR] error: error reading /home/user/.m2/repository/org/processing/core/1.0.7/core-1.0.7.jar; error in opening zip file
[ERROR] error: error reading /home/user/.m2/repository/crosby/binary/osmpbf/1.2.1/osmpbf-1.2.1.jar; error in opening zip file
[ERROR] -> [Help 1]

user@ubuntu:~/.m2/repository/org/processing/core/1.0.7$ cat /home/user/.m2/repository/org/processing/core/1.0.7/core-1.0.7.jar
<HTML>
<BODY>
This repo has moved to repo.boundlessgeo.com. Please update your settings.
</BODY>
</HTML>

user@ubuntu:~/.m2/repository/org/processing/core/1.0.7$ cat /home/user/.m2/repository/crosby/binary/osmpbf/1.2.1/osmpbf-1.2.1.jar
<HTML>
<BODY>
This repo has moved to repo.boundlessgeo.com. Please update your settings.
</BODY>
</HTML>





To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-users+unsub...@googlegroups.com.

Marko Burjek

unread,
Sep 20, 2014, 12:54:10 PM9/20/14
to Валерий Хвалев, opentripplanner-users
It seems you need to change the repository URL. Same as it was in master. But here it wasn't updated yet

Download attachment in the same folder  you have OpenTripPlanner (pom.xml has to be in the same folder) and do:
git apply
It will apply this patch. So that new repository URL is used.
After that you need to remove Maven cache. (I don't know why but without that you get the same error)
Remove .m2/repository folder in your home folder.

After that it should work normally.

To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-...@googlegroups.com.
fix.patch

Валерий Хвалев

unread,
Sep 20, 2014, 2:44:49 PM9/20/14
to opentrippl...@googlegroups.com, khvalov...@gmail.com
Hi, Marko!

Thanks a lot. Now it's work perfectly! I just import Estonia OSM and TGFS and it's start to work! 

Btw, can you suggest workflow how to import large data sets, for example OSM data >2 Gb and severtal TGFSs related to this area? I assume realy big dataset require big amount of memory ? 

To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-users+unsubscri...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Marko Burjek

unread,
Sep 20, 2014, 3:08:58 PM9/20/14
to Валерий Хвалев, opentripplanner-users
Great.

Big datasets needs a lot of memory. Work is currently in progress to reduce memory consumption.
It is better to use PBF instead of OSM XML, because file size is smaller and graph building is faster.

For example here are sizes of Netherlands, Paris and New York state in bytes:
Graph size       1233299705    378736886    670479076
OSM.pbf size      978920185    120574684    132945693

So that you can see how big is the graph from OSM data size.
Here are some info about NYC but information is quite old: https://github.com/opentripplanner/OpenTripPlanner/wiki/NYCPerformance

The largest install is probably http://opentripplanner.nl/ with transit data for whole Netherlands.

I sadly cannot tell you more because my country is quite small (less then 2 GB OSM))

There is some long distance mode which precomputes some things and is better for large graphs but you have to search this mailing list or opentripplanner-dev for more about it.

To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-...@googlegroups.com.

Rhys Gareth

unread,
Sep 24, 2014, 11:03:37 AM9/24/14
to opentrippl...@googlegroups.com, khvalov...@gmail.com
I seem to have the exact same problem and attempted the same fix/patch, but unfortunately still get an error:

Downloading: http://maven.conveyal.com/org/processing/core/1.0.7/core-1.0.7.jar
Downloading: http://maven.conveyal.com/crosby/binary/osmpbf/1.2.1/osmpbf-1.2.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] OpenTripPlanner ................................... SUCCESS [4.800s]
[INFO] OpenTripPlanner Leaflet Client .................... SUCCESS [33.771s]
[INFO] OpenTripPlanner Core .............................. FAILURE [1:16.869s]
[INFO] OpenTripPlanner REST API Servlet .................. SKIPPED
[INFO] OpenTripPlanner OpenLayers Client ................. SKIPPED
[INFO] OpenTripPlanner Analyst Client .................... SKIPPED
[INFO] OpenTripPlanner Administration Client ............. SKIPPED
[INFO] OpenTripPlanner Municipal Boundary Reverse Geocoder  SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:58.483s
[INFO] Finished at: Wed Sep 24 14:58:39 UTC 2014
[INFO] Final Memory: 11M/28M
[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: Could not find artifact org.processing:core:jar:1.0.7 in central2 (http://repo1.maven.org/maven2) -> [Help 1]
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-users+unsubscri...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Rhys Gareth

unread,
Sep 24, 2014, 11:53:02 AM9/24/14
to opentrippl...@googlegroups.com, khvalov...@gmail.com
I found this earlier in the log:

[WARNING] The POM for org.processing:core:jar:1.0.7 is missing, no dependency information available


Yet:

Similarly:

andrew byrd

unread,
Sep 24, 2014, 3:03:53 PM9/24/14
to opentrippl...@googlegroups.com
I believe I've seen Maven get out of sync with partially downloaded or
missing dependencies even when the repo in question comes back on line.
This is just a guess, but I would try wiping out my local Maven
repository, or at least the org/processing branch of the directory tree
to force a re-download.

-Andrew
> >>>>> an email to opentripplanner-...@googlegroups.com.
> >>>>> For more options, visit https://groups.google.com/d/optout.
> >>>>>
> >>>>
> >>>> --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "OpenTripPlanner Users" group.
> >>> To unsubscribe from this group and stop receiving emails from it, send
> >>> an email to opentripplanner-...@googlegroups.com.
> >>> For more options, visit https://groups.google.com/d/optout.
> >>>
> >>
> >>
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenTripPlanner Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to opentripplanner-...@googlegroups.com.

Rhys Gareth

unread,
Sep 25, 2014, 6:37:41 AM9/25/14
to andrew byrd, opentrippl...@googlegroups.com
Hi Andrew,

I deleted ~/.m2 every time I tried something new - is that enough? It didn’t help.

FYI I’ve added this to my install script to fix it for now:


Rhys

You received this message because you are subscribed to a topic in the Google Groups "OpenTripPlanner Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/opentripplanner-users/bTfEk6KKZ_4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to opentripplanner-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages