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