> Hi list,
>
> when I try to compile using the following settings
>
> <plugin>
>    <groupId>org.apache.maven.plugins</groupId>
>    <artifactId>maven-compiler-plugin</artifactId>
>    <configuration>
>      <source>1.4.2</source>
>      <target>1.4.2</target>
>    </configuration>
> </plugin>
>
> I get this error message:
>
> Failure executing javac, but could not parse the error:
> javac: invalid source release: 1.4.2
>
> When I replace "1.4.2" with "1.4" it compiles. Isn't it possible to
> specifiy the minor version of the JVM to compile for?

Simple answer: no. The JDK compiler allows only setting the major version.

If you want to enforce a certain JDK version, check out the enforcer
plugin which allows you a more fine-grained control over the environment.

-dirk


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

Reply via email to