Let me add onto the second part of this message...
I need to compile using WebSphere 3.5.7's sdk which is a variant of sdk 1.2 (I
know the response - "WHY?").
I set JAVA_HOME to point to directory containing bin/javac, but I'm getting this
output:

$ maven
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

java.lang.NoSuchMethodError: java.util.Collections: method
singletonList(Ljava/lang/Object;)Ljava/util/List; not found
        at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:607)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
        at org.apache.maven.cli.App.doMain(App.java:486)
        at org.apache.maven.cli.App.main(App.java:1215)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.werken.forehead.Forehead.run(Forehead.java:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)

Am I out of luck?  Does Maven not run under sdk 1.2?  I checked the apis' and
sure enough there is no such method in java.util.List.

I tried setting these properties (I found that you could do this to support 1.5,
so I'm not sure if this actually does anything):
maven.compile.source=1.2
maven.compile.target=1.2


Thanks,
Ben

Quoting Ben Anderson <[EMAIL PROTECTED]>:

> Hi,
> Is there a way to suppress warning messages when compiling?  I don't see any
> options listed in the properties.  While I'm asking questions again - does
> maven use the javac that my $PATH is pointing to, or some other one?
> Thanks,
> Ben
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to