Service Alerts Webapp: Missing Maven Dependency

32 views
Skip to first unread message

Landon Reed

unread,
Mar 13, 2013, 4:31:01 PM3/13/13
to onebusaway...@googlegroups.com
Hi,

I'm trying to build the Maven package for the OBA Service Alerts modules (both core and webapp).  When I run the mvn command I get an error, which appears to be traceable to: 

Could not find artifact org.geotools:gt-shapefile:jar:2.6.4 in releases.developer.onebusaway.org (http://developer.onebusaway.org/maven/repository/)

Upon checking http://developer.onebusaway.org/maven/repository/ there does not appear to be any org.geotools jar listed.  Is this missing from the OBA repository and, if so, is somebody able to add it in?

Thanks,
Landon

Landon Reed

unread,
Mar 13, 2013, 5:23:26 PM3/13/13
to onebusaway...@googlegroups.com
Brief Update:

I believe I solved this issue by adding the following repository to the pom.xml located at /onebusaway-service-alerts/pom.xml:

    <repository>
        <id>osgeo</id>
        <name>Open Source Geospatial Foundation Repository</name>
    </repository>
    <repository>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
        <id>opengeo</id>
        <name>OpenGeo Maven Repository</name>
        <url>http://repo.opengeo.org</url>
    </repository>
    <repository>
        <id>cutr-releases</id>
    </repository>  

I am now running into a number of issues coming from class org.onebusaway.service_alerts.impl.SituationServiceImpl.  I believe these might be related to SIRI dependencies failing to load.  A common error generated in the stacktrace:

[ERROR] /Users/lreed3/onebusaway-service-alerts/onebusaway-service-alerts-core/src/main/java/org/onebusaway/service_alerts/impl/SituationServiceImpl.java:[761,9] cannot find symbol
[ERROR] symbol  : class SituationAffectedVehicleJourneyBean

There are hundreds of these starting at (line, column) [36,55]:

import org.onebusaway.transit_data.model.service_alerts.SituationAffectedAgencyBean;

and ending with [985,59]:

SituationConditionDetailsBean details = consequence.getConditionDetails();

They all appear to be related to the Situation classes located at org.onebusaway.transit_data.model.service_alerts.  Maybe this package is missing? 
Reply all
Reply to author
Forward
0 new messages