Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] m2e insists on using JRE 1.5 once I add JUnit to dependencies

Am 23.01.2013 18:07, schrieb Manfred Moser:
Here is how to configure it for 1.6

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
   <source>1.6</source>
   <target>1.6</target>
  </configuration>
</plugin>

Is there any reasons to prefer that over
  <properties>
    <maven.compiler.source>1.6</maven.compiler.source>
    <maven.compiler.target>1.6</maven.compiler.target>
  </properties>
?

The advantages I see are:
- far more compact
- can be overridden from the command line (i.e. useful for more use cases).

The pertinent FAQ gives your approach, but doesn't say anything how it's different from the properties approach.

Regards,
Jo


Back to the top