According to the issue tracking, it's been fixed to support J2SE 5 (1.5):

http://issues.apache.org/jira/browse/PLUTO-118?page=all

I guess you could pull the latest version of the source or wait for the next release.

Cheers!
-David

Larry Suto wrote:

Thanks for info. I will try that. Is there anyway to get it running
under jdk1.5.

Regards, larry

On 4/24/05, David Botterill <[EMAIL PROTECTED]> wrote:


Yes, using 1.4 will solve this.  The "enum" keyword is the hint.

Set JAVA_HOME to point to JDK 1.4 before running "maven fullDeployment".

Cheers!
-David

Larry Suto wrote:



I am trying to compile pluto, but I am getting the following build errors.
Will using -source 1.4 solve this problem. And if so where do I need to add it?

thanks

[javac] Compiling 145 source files to /usr/pluto/container/target/classes
/usr/pluto/container/src/java/org/apache/pluto/core/impl/PortletPreferencesImpl.
java:259: as of release 1.5, 'enum' is a keyword, and may not be used as an iden
tifier
(try -source 1.4 or lower to use 'enum' as an identifier)
      Enumeration enum = this.getNames();
                  ^
/usr/pluto/container/src/java/org/apache/pluto/core/impl/PortletPreferencesImpl.
java:260: as of release 1.5, 'enum' is a keyword, and may not be used as an iden
tifier
(try -source 1.4 or lower to use 'enum' as an identifier)
      while (enum.hasMoreElements())
             ^
/usr/pluto/container/src/java/org/apache/pluto/core/impl/PortletPreferencesImpl.java:262:
as of release 1.5, 'enum' is a keyword, and may not be used as an
identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
          String name = (String)enum.nextElement();
                                ^
3 errors

BUILD FAILED
File...... /root/.maven/cache/maven-multiproject-plugin-1.3.1/plugin.jelly
Element... maven:reactor
Line...... 217
Column.... 9
Unable to obtain goal [multiproject:install-callback] --
/root/.maven/cache/maven-java-plugin-1.5/plugin.jelly:63:48:
<ant:javac> Compile failed; see the compiler error output for details.




Reply via email to