Issue 453 in onebusaway: onebusaway-gtfs-module fails to compile

10 views
Skip to first unread message

onebu...@googlecode.com

unread,
Mar 29, 2011, 7:06:11 AM3/29/11
to onebusaw...@googlegroups.com
Status: New
Owner: ----

New issue 453 by zwel...@gmail.com: onebusaway-gtfs-module fails to compile
http://code.google.com/p/onebusaway/issues/detail?id=453

I tried to compile a copy of onebusaway-gtfs-modules, but failed.

I used:
svn co http://onebusaway.googlecode.com/svn/onebusaway-gtfs-modules/trunk
onebusaway-gtfs-modules
mvn package

Which caused errors because of a maven 3 dependency:

[INFO]
------------------------------------------------------------------------
[INFO] Building onebusaway-gtfs-modules
[INFO] task-segment: [package]
[INFO]
------------------------------------------------------------------------
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.0-beta-3/maven-site-plugin-3.0-beta-3.pom

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error resolving version
for 'org.apache.maven.plugins:maven-site-plugin': Plugin requires Maven
version 3.0
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Mar 29 12:55:13 CEST 2011
[INFO] Final Memory: 9M/104M
[INFO]
------------------------------------------------------------------------

The following simple patch allowed me to continue:

Index: pom.xml
===================================================================
--- pom.xml (revision 4346)
+++ pom.xml (working copy)
@@ -98,6 +98,11 @@
<artifactId>maven-deploy-plugin</artifactId>
<version>2.5</version>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
</plugins>
</pluginManagement>
</build>

After which I was greeted by yet another friendly error:

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/home/flaktack/devel/onebusaway-gtfs-modules/onebusaway-gtfs-modules/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/impl/GtfsRelationalDaoImpl.java:[218,31]
incompatible types; no instance(s) of type variable(s) C exist so that
java.util.Map<K,C> conforms to java.util.Map<K,java.util.List<V>>
found : <C>java.util.Map<K,C>
required: java.util.Map<K,java.util.List<V>>
[INFO] 1 error

Which I'm hoping that you will be able to fix...

I'm using:
Apache Maven 2.2.1 (rdebian-4)
Java version: 1.6.0_18
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.37-2-amd64" arch: "amd64" Family: "unix"

onebu...@googlecode.com

unread,
Apr 15, 2011, 4:12:49 PM4/15/11
to onebusaw...@googlegroups.com
Updates:
Status: Accepted

Comment #1 on issue 453 by bdfer...@onebusaway.org: onebusaway-gtfs-module

Sorry for not responding to this sooner. I've upgraded to requiring Maven
3 to build OneBusAway. I will take a look about specifying the site module
version to see about Maven 2 backwards compatibility. Any chance you could
use Maven 3?

onebu...@googlecode.com

unread,
Apr 18, 2011, 10:07:05 AM4/18/11
to onebusaw...@googlegroups.com

Comment #2 on issue 453 by zwel...@gmail.com: onebusaway-gtfs-module fails
to compile
http://code.google.com/p/onebusaway/issues/detail?id=453

I had feeling maven 3 was being used...

Debian doesn't have packages for maven 3 (yet). But, maven.apache.org has
executables for download, so there isn't anything blocking me from using
maven 3.

After downloading the executable, things seems to run fine. But I still get
the errors mentioned previously compiling the source. It's probably another
OpenJDK generics "problem" like #254.

onebu...@googlecode.com

unread,
Oct 14, 2011, 12:00:35 PM10/14/11
to onebusaw...@googlegroups.com
Updates:
Status: WontFix

Comment #3 on issue 453 by bdfer...@onebusaway.org: onebusaway-gtfs-module

I think it's easier to keep this compatible with Maven 3. I'm going to
close this bug for now.

Reply all
Reply to author
Forward
0 new messages