On Fri, 06 Jan 2012 03:45:19 +0100, Johannes.Lichtenberger wrote:

> On 01/06/2012 02:54 AM, Dave Wolf wrote:
>> Instead of "1.7" try simply "7".
> 
> Seems it doesn't have any impact. In Eclipse itself it doesn't seem to
> change anything, too, but in Eclipse the build path is correct for all
> projects. I just want to get `mvn` in the shell running after I've updated
> the projects to Java 7 some time ago to double check if the unit tests are
> working before commiting to the CI-Server (and to produce JARs).

I can compile JDK7 source just fine (using new 7-only classes etc., with
"1.7" as source/target:

..
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>${compiler.plugin.version}</version>
    <configuration>
        <source>1.7</source>
        <target>1.7</target>
    </configuration>
</plugin>
..

maven-compiler-plugin is 2.3.2.

Try mvn --version to verify that you are really using the correct JDK.

-h



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to