07.09.2008, 04:39
bodum Wrote:Das geht so :
[..]
Ich bekomme trotzdem folgendes:
Code:
c:\p4\RouteConverter>c:\Tools\apache-maven-2.0.9\bin\mvn compile
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Code shared by all modules
[INFO] REST webservice client
[INFO] Access to the RouteCatalog service
[INFO] RouteConverter
[INFO] ------------------------------------------------------------------------
[INFO] Building Code shared by all modules
[INFO] task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 13 source files to C:\p4\RouteConverter\common\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
C:\p4\RouteConverter\common\src\main\java\slash\navigation\util\Version.java:[61
,21] generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)
public static Map<String, String> parseParameters(String parameters) {
C:\p4\RouteConverter\common\src\main\java\slash\navigation\hex\HexEncoder.java:[
124,24] for-each loops are not supported in -source 1.3
(use -source 5 or higher to enable for-each loops)
for (String arg : args) {
C:\p4\RouteConverter\common\src\main\java\slash\navigation\util\Files.java:[160,
51] generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)
final List<File> list) {
Probiert habe ich es mit Deiner Variante und der aus der Maven FAQ.
--
Christian
Christian