Hi,

I tried to enable the eclipse compiler plugin as described here:
http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.html

I've got the problem that it won't compile my Java 6 sources. It says:

[INFO] [compiler:compile {execution: default-compile}]
[WARNING] Unknown version '1.6', no version setting will be given to the 
compiler.
[WARNING] Unknown version '1.6', no version setting will be given to the 
compiler.

I had seen that the dependent version of org.eclipse.jdt:core was pretty old, 
so I added a dependency to a newer one, but still no success.

This is my compiler configuration:
<plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.1</version>
                <inherited>true</inherited>
                <configuration>
                    <compilerId>eclipse</compilerId>
                    <encoding>${project.build.sourceEncoding}</encoding>
                    <source>1.6</source>
                    <target>1.6</target>
                    <showDeprecation>false</showDeprecation>
                    <showWarnings>true</showWarnings>
                </configuration>
                <dependencies>
                  <dependency>
                    <groupId>org.codehaus.plexus</groupId>
                    <artifactId>plexus-compiler-eclipse</artifactId>
                    <version>1.6</version>
                  </dependency>
                  <dependency>
                      <groupId>org.eclipse.jdt</groupId>
                      <artifactId>core</artifactId>
                      <version>3.4.2.v_883_R34x</version>
                      <exclusions>
                    <exclusion>
                    <groupId>org.eclipse.core</groupId>
                    <artifactId>resources</artifactId>
                    </exclusion>
                    <exclusion>
                    <groupId>org.eclipse.core</groupId>
                    <artifactId>runtime</artifactId>
                    </exclusion>
                    <exclusion>
                    <groupId>org.eclipse.core</groupId>
                    <artifactId>filesystem</artifactId>
                    </exclusion>
                    <exclusion>
                    <groupId>org.eclipse</groupId>
                    <artifactId>text</artifactId>
                    </exclusion>
                    </exclusions>
                    </dependency>
                </dependencies>
            </plugin>

I also tried it with source/target '6' or '6.0' but still the same error.

Can anyone help?

thanks
Christoph

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

Reply via email to