OneBusAway / onebusaway-siri

A collection of libraries and tools for working with SIRI real-time transit data.
https://github.com/OneBusAway/onebusaway-siri/wiki
Other
9 stars 8 forks source link

mvn package on root pom.xml failed #8

Closed dancesWithCycles closed 2 years ago

dancesWithCycles commented 2 years ago

Hi folks, Thank you so much for providing this repository. This is the first time I came across and spend some time on it. I would appreciate any hints on the following questions.

  1. I am working on a service that converts GTFS-RT into SIRI-CEN. Can any of the past and present activities of OneBusAway help me to develop such a service so that I do not have to reinvent the wheel?
  2. The root folder in this repo provides a pom.xml file. Am I supposed to call mvn package in the root folder? I am not sure, as I found no documentation an this and the instruction ended up in this build error.
    [ERROR] COMPILATION ERROR : 
    [INFO] -------------------------------------------------------------
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[42,23] error: package javax.annotation does not exist
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[43,23] error: package javax.annotation does not exist
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[45,21] error: package javax.xml.bind does not exist
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[46,21] error: package javax.xml.bind does not exist
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[47,21] error: package javax.xml.bind does not exist
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[48,21] error: package javax.xml.bind does not exist
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[114,10] error: cannot find symbol
    [ERROR]  class SiriCommon
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[163,29] error: cannot find symbol
    [ERROR]  class SiriCommon
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/subscriptions/server/SiriServerSubscriptionManager.java:[31,23] error: package javax.annotation does not exist
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriServer.java:[27,23] error: package javax.annotation does not exist
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/services/SchedulingServiceImpl.java:[25,23] error: package javax.annotation does not exist
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/services/SchedulingServiceImpl.java:[26,23] error: package javax.annotation does not exist
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/services/SiriServicesModule.java:[19,21] error: package javax.xml.bind does not exist
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/services/JAXBContextProvider.java:[19,21] error: package javax.xml.bind does not exist
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/services/JAXBContextProvider.java:[20,21] error: package javax.xml.bind does not exist
    [ERROR] /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/services/JAXBContextProvider.java:[26,53] error: cannot find symbol
    [ERROR]  class JAXBContext
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/services/JAXBContextProvider.java:[30,10] error: cannot find symbol
    [ERROR]  class JAXBContextProvider
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/services/JAXBContextProvider.java:[33,22] error: cannot find symbol
    [ERROR]  class JAXBContextProvider
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[333,3] error: cannot find symbol
    [ERROR]  class SiriCommon
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[376,3] error: cannot find symbol
    [ERROR]  class SiriCommon
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/subscriptions/server/SiriServerSubscriptionManager.java:[185,3] error: cannot find symbol
    [ERROR]  class SiriServerSubscriptionManager
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriServer.java:[175,3] error: cannot find symbol
    [ERROR]  class SiriServer
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/services/SchedulingServiceImpl.java:[49,3] error: cannot find symbol
    [ERROR]  class SchedulingServiceImpl
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/services/SchedulingServiceImpl.java:[55,3] error: cannot find symbol
    [ERROR]  class SchedulingServiceImpl
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[829,6] error: cannot find symbol
    [ERROR]  class SiriCommon
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[847,6] error: cannot find symbol
    [ERROR]  class SiriCommon
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[873,6] error: cannot find symbol
    [ERROR]  class SiriCommon
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[875,22] error: cannot find symbol
    [ERROR]  class SiriCommon
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/SiriCommon.java:[878,13] error: cannot find symbol
    [ERROR]  class SiriCommon
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/services/SiriServicesModule.java:[37,9] error: cannot find symbol
    [ERROR]  class SiriServicesModule
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/services/JAXBContextProvider.java:[37,23] error: cannot find symbol
    [ERROR]  class JAXBContextProvider
    /home/begerad/git/github/onebusaway-siri/onebusaway-siri-core/src/main/java/org/onebusaway/siri/core/services/JAXBContextProvider.java:[39,15] error: cannot find symbol
    [INFO] 32 errors 
    [INFO] -------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary for onebusaway-siri 1.0.7-SNAPSHOT:
    [INFO] 
    [INFO] onebusaway-siri .................................... SUCCESS [  0.324 s]
    [INFO] onebusaway-siri-core ............................... FAILURE [ 12.246 s]
    [INFO] onebusaway-siri-jetty .............................. SKIPPED
    [INFO] onebusaway-siri-client-cli ......................... SKIPPED
    [INFO] onebusaway-siri-repeater ........................... SKIPPED
    [INFO] onebusaway-siri-repeater-cli ....................... SKIPPED
    [INFO] onebusaway-siri-repeater-webapp .................... SKIPPED
    [INFO] onebusaway-siri-integration-tests .................. SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  14.028 s
    [INFO] Finished at: 2022-04-01T13:47:51+02:00
    [INFO] ------------------------------------------------------------------------

    Cheers!

dancesWithCycles commented 2 years ago

BTW, This is my environment.

mvn -version
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 11.0.14.1, vendor: Eclipse Adoptium, runtime: /usr/lib/jvm/open-jdk-11
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "5.10.0-12-amd64", arch: "amd64", family: "unix"
java -version
openjdk version "11.0.14.1" 2022-02-08
OpenJDK Runtime Environment Temurin-11.0.14.1+1 (build 11.0.14.1+1)
OpenJDK 64-Bit Server VM Temurin-11.0.14.1+1 (build 11.0.14.1+1, mixed mode)
barbeau commented 2 years ago

@dancesWithCycles Thanks for reporting! This is due to some of the issues I mention here: https://github.com/OneBusAway/onebusaway-gtfs-realtime-from-siri-cli/issues/6#issuecomment-1086055417

I've been working on trying to fix some of the dependency issues. @sheldonabrown has been helping by publishing some of the missing artifacts he was able to dig up.

dancesWithCycles commented 2 years ago

Kudos Sean @barbeau !

Firing mvn clean package now results in a happy end.

[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 42.189 s - in org.onebusaway.siri.SiriClientAndServerIntegrationTest
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ onebusaway-siri-integration-tests ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /home/begerad/git/github/onebusaway-siri/onebusaway-siri-integration-tests/target/onebusaway-siri-integration-tests-1.0.7-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for onebusaway-siri 1.0.7-SNAPSHOT:
[INFO] 
[INFO] onebusaway-siri .................................... SUCCESS [  9.312 s]
[INFO] onebusaway-siri-core ............................... SUCCESS [01:02 min]
[INFO] onebusaway-siri-jetty .............................. SUCCESS [  9.099 s]
[INFO] onebusaway-siri-client-cli ......................... SUCCESS [  4.516 s]
[INFO] onebusaway-siri-repeater ........................... SUCCESS [  0.063 s]
[INFO] onebusaway-siri-repeater-cli ....................... SUCCESS [  4.770 s]
[INFO] onebusaway-siri-repeater-webapp .................... SUCCESS [ 30.611 s]
[INFO] onebusaway-siri-integration-tests .................. SUCCESS [ 42.960 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  08:48 min
[INFO] Finished at: 2022-04-17T13:50:58+02:00
[INFO] ------------------------------------------------------------------------

I love communities with cooperation!

Sean @barbeau , Do you know, by any chance, if I have to install all those Maven modules locally or if the respective continuos integration processes result in the availability of these modules on a particular public Maven repository?

Cheers!

barbeau commented 2 years ago

Thanks @dancesWithCycles, the CI is passing now too: https://github.com/OneBusAway/onebusaway-siri/runs/5975169362?check_suite_focus=true

Do you know, by any chance, if I have to install all those Maven modules locally or if the respective continuos integration processes result in the availability of these modules on a particular public Maven repository?

@sheldonabrown has been working on making some of these artifacts available via the Cambridge Systematics Maven repository that OneBusAway uses.

I think some of the artifacts from this project still aren't uploaded, so you might need to run mvn install on this project to install them locally to be able to compile https://github.com/OneBusAway/onebusaway-gtfs-realtime-from-siri-cli, for example.

I'm going to close this issue now, though, because the main build has been fixed.