Hi,
I'm using different JDK's in my eclipse and I want to tell the the
eclipse:eclipse goal the JDK of the current project.
So I added:
<plugin>
<groupId>org.apache.maven.plugins</groupId
>
<artifactId>maven-eclipse-plugin</
artifactId>
<configuration>
<classpathContainers>
<classpathContainer>
org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0
</classpathContainer>
</classpathContainers>
</configuration>
</plugin>
But the affect was that the .classpath got:
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/main/resources"
excluding="**/*.java"/>
<classpathentry kind="src" path="src/test/java"
output="target/test-classes"/>
<classpathentry kind="src" path="src/test/resources"
output="target/test-classes" excluding="**/*.java"/>
<classpathentry kind="output" path="target/classes"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0"/>
<classpathentry kind="var" path="M2_REPO/junit/junit/4.4/junit-4.4.jar"
sourcepath="M2_REPO/junit/junit/4.4/junit-4.4-sources.jar"/>
<classpathentry kind="var"
path="M2_REPO/log4j/log4j/1.2.11/log4j-1.2.11.jar"/>
</classpath>
Which is not the result I expected. I expect somthing like this:
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/main/resources"
excluding="**/*.java"/>
<classpathentry kind="src" path="src/test/java"
output="target/test-classes"/>
<classpathentry kind="src" path="src/test/resources"
output="target/test-classes" excluding="**/*.java"/>
<classpathentry kind="output" path="target/classes"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0"/>
<classpathentry kind="var" path="M2_REPO/junit/junit/4.4/junit-4.4.jar"
sourcepath="M2_REPO/junit/junit/4.4/junit-4.4-sources.jar"/>
<classpathentry kind="var"
path="M2_REPO/log4j/log4j/1.2.11/log4j-1.2.11.jar"/>
</classpath>
Am I wrong?
Johannes Höhne
P Please consider the environmental impact of needlessly printing this
e-mail.
--
RSC Commercial Services OHG
Wanheimer Strasse 70, D-40468 Duesseldorf
Registergericht: Duesseldorf, HRA 12655