Maybe the default setting for maven shoudl be moved from 1.3 (I think?) to 1.5 after all it is a development tool and I think at this stage most development is done under 1.5. It would just make it an easier experience for new users of maven and preclude them having to ask this question on the forum. Also surely when you specify your JAVA_HOME it could infer the version and make it the default for you installation.

Just a thought
BD



ben short wrote:
Add this to the bottom of your pom.

<build>
       <plugins>
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-compiler-plugin</artifactId>
               <configuration>
                   <source>1.5</source>
                   <target>1.5</target>
               </configuration>
           </plugin>
        </plugins>
</build>

On 5/2/07, lightbulb432 <[EMAIL PROTECTED]> wrote:

I'm using JDK 1.5 but for some reason Maven gives a compiler error saying "use -source 5 or higher to enable annotations". How can I tell Maven which
compiler to use?

I don't know much about Maven so I don't know where to change the setting - would it be a project-level setting, would it be a custom property, would it
be a plugin option?

Thanks.
--
View this message in context: http://www.nabble.com/Compiler-settings-in-Maven-tf3680951s177.html#a10287101
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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]


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

Reply via email to