Looking for gtfs-lib-0.1-SNAPSHOT.jar

60 views
Skip to first unread message

wzimmer

unread,
Jul 2, 2015, 9:13:52 AM7/2/15
to opentripp...@googlegroups.com
I recently installed the Eclipse Mars release, cloned the OTP Git repository, and attempted to build the project.

However, Maven is complaining that it cannot find gtfs-lib-0.1-SNAPSHOT.jar.  Where can I obtain this JAR file.  (I used Google to find it to no avail.)

Thanks!

Marko Burjek

unread,
Jul 2, 2015, 9:16:08 AM7/2/15
to wzimmer, OpenTripPlanner Developers
It seems that JAR wasn't uploaded to the maven repository. But it should work now. Try to clean maven cache.

There is an issue about it: https://github.com/opentripplanner/OpenTripPlanner/issues/2023

--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Developers" 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.

Marko Burjek

unread,
Jul 2, 2015, 1:25:26 PM7/2/15
to OpenTripPlanner Developers


2015-07-02 19:24 GMT+02:00 Marko Burjek <email...@gmail.com>:
I did this to clean maven cache:
mvn clean install -U

Removing OTP won't help since cache is outside OTP folder in Linux is in $HOME/.m2 I don't know where it is in other OSes.

But it seems that gtfs-lib stil isn't updated at least I still get an error.

So if you want to compile yourself (This is not needed since builded JAR are available http://dev.opentripplanner.org/jars/ ) You need to remove gtfs-lib from dependencies and skip tests. Which I described here: https://github.com/opentripplanner/OpenTripPlanner/issues/2023 .

2015-07-02 19:17 GMT+02:00 Zimmer, William F <WZi...@septa.org>:

I assume that clearing the Maven cache means to execute “mvn eclipse:remove-cache”.  Correct.  (That command succeeded.)

 

I tried right-click on the project -> Maven -> Update Project and the same missing JAR message was returned.

 

(Google isn’t too much help when searching how to rebuild a Maven project.)

 

Thanks for your help so far.  Should I delete OTP and start over?

wzimmer

unread,
Jul 2, 2015, 1:43:47 PM7/2/15
to opentripp...@googlegroups.com
Thanks for you assistance.

I also deleted the .m2 directory prior to right-click on the project -> Maven -> Update Project .


I checked the bundled JRSs for OTP but I didn't see the JAR file.

Marko Burjek

unread,
Jul 2, 2015, 1:46:09 PM7/2/15
to wzimmer, OpenTripPlanner Developers
There is no JAR for gtfs-lib there. It should be on maven.conveyal repository but it seems that it is missing. You can make it yourself if you want from code: https://github.com/conveyal/gtfs-lib. After you build it it should be saved in local maven cache and OTP should be able to be build. But there is JAR of whole OTP project. And if you only want to use it you don't need to build it. If you want to improve it or change it that's another story.

wzimmer

unread,
Jul 6, 2015, 9:36:45 AM7/6/15
to opentripp...@googlegroups.com, wzi...@septa.org
I cleaned the cache as you suggested and the JAR file is still missing.

I'll work on other projects for a month or so and hope that the JAR will be uploaded by then.

Thanks for your help!
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-dev+unsub...@googlegroups.com.

Andrew Byrd

unread,
Jul 6, 2015, 1:59:48 PM7/6/15
to wzimmer, opentripp...@googlegroups.com
Hello,

The OTP build was not configured to seek SNAPSHOT artifacts in the Conveyal repository. I have just changed this, which should resolve the problem. Please try with the latest commit on the master branch and let us know if there is still a problem.

-Andrew

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

wzimmer

unread,
Jul 7, 2015, 11:02:30 AM7/7/15
to opentripp...@googlegroups.com
Thanks!!  That seems to have worked!!

Compiling with 'mvn clean package -DskipTests -e' gives the following error:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.960s
[INFO] Finished at: Tue Jul 07 10:55:15 EDT 2015
[INFO] Final Memory: 23M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project otp: Fatal error compiling: invalid target release: 1.8 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project otp: Fatal error compiling
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
[...]


On Thursday, July 2, 2015 at 9:13:52 AM UTC-4, wzimmer wrote:

Andrew Byrd

unread,
Jul 9, 2015, 1:58:11 PM7/9/15
to wzimmer, opentripp...@googlegroups.com
Hello,

OpenTripPlanner must be compiled with Java 8. Even if you have Java 8 installed, it’s possible that Maven is using an older version and you will need to configure it to use JDK 8. 

-Andrew

wzimmer

unread,
Jul 10, 2015, 8:34:40 AM7/10/15
to opentripp...@googlegroups.com
From what I can tell both Eclipse and Maven are using Java 1.8:

Cut and paste from Maven's pom.xml in OTP cloned GitHub directory:
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <!-- Target Java versions -->
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>

Eclipse -> right-click project -> Properties -> 'Java Compiler' tab lists Java version 1.8


On Thursday, July 2, 2015 at 9:13:52 AM UTC-4, wzimmer wrote:

Johan Nilsson

unread,
Jul 10, 2015, 12:48:32 PM7/10/15
to opentripp...@googlegroups.com
You might have your JAVA_HOME configured for another jdk, or not set at all. Make sure it's set to the correct jdk as well.

Cheers!
Johan
Reply all
Reply to author
Forward
0 new messages