directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Swanson <m...@ScheduleWorld.com>
Subject How do I compile for Java 1.5?
Date Mon, 07 Apr 2008 06:25:49 GMT
Hello,

I'm using the latest stable version of ADS: 1.0 :-)
and for some reason I can't compile my custom schema because the 
compiler is strangely defaulting to Java 1.3:
Does anyone know how I would change the pom.xml for a better <source> 
and <target> ?
I tried a few things but they all failed. Any help would be appreciated.

Thanks.


[INFO] Compilation failure

/a/mswanson/src/calendar/apacheds/scheduleworld-schema/target/generated-sources/com/wss/SwAttributeTypeProducer.java:[60,17]

generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)
        ArrayList<String> names = new ArrayList<String>();

/a/mswanson/src/calendar/apacheds/scheduleworld-schema/target/generated-sources/com/wss/SwSchema.java:[41,17]

generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)
        ArrayList<String> list = new ArrayList<String>();

/a/mswanson/src/calendar/apacheds/scheduleworld-schema/target/generated-sources/com/wss/SwObjectClassProducer.java:[59,17]

generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)
        ArrayList<String> array = new ArrayList<String>();


[INFO] 
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: 
Compilation failure
        at 
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
        at 
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more


Mime
View raw message