org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT ignores maven-compiler-plugin

2009-04-23 Thread Davis Ford
Hi, I just enabled all snapshots for plugins, and a side effect of
this was to pull down
org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT version of
eclipse plugin.

Now, my project breaks in eclipse b/c it sets the JDK to be (I think)
the system default (which is JDK 1.5), but my maven-compiler-plugin
settings in the pom specify 1.6.  So maven compiles the sources, and
when I launch the project in eclipse, it throws an error saying the
class version is wrong.

Nothing very interesting in the config below.  This problem did not
exist for me until I just opened up plugin snapshots -- which I think
I'll turn off.  This is on:
$ mvn -version
Maven version: 2.0.9
Java version: 1.6.0_07
OS name: mac os x version: 10.5.6 arch: x86_64 Family: mac



plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
configuration
downloadSourcestrue/downloadSources

downloadJavadocstrue/downloadJavadocs
/configuration
/plugin

plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.6/source
target1.6/target
/configuration
/plugin

-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT ignores maven-compiler-plugin

2009-04-23 Thread Brian Fox
That's why we suggest locking down your plugin versions in your poms. 
Then you'll have controll over which ones you get as snapshots.

See here for more info:
http://www.sonatype.com/people/2008/04/maven-209-released/

The eclipse plugin does not seem to be one that has a default in the 
super pom.


On 4/23/2009 10:11 PM, Davis Ford wrote:

Hi, I just enabled all snapshots for plugins, and a side effect of
this was to pull down
org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT version of
eclipse plugin.

Now, my project breaks in eclipse b/c it sets the JDK to be (I think)
the system default (which is JDK 1.5), but my maven-compiler-plugin
settings in the pom specify 1.6.  So maven compiles the sources, and
when I launch the project in eclipse, it throws an error saying the
class version is wrong.

Nothing very interesting in the config below.  This problem did not
exist for me until I just opened up plugin snapshots -- which I think
I'll turn off.  This is on:
$ mvn -version
Maven version: 2.0.9
Java version: 1.6.0_07
OS name: mac os x version: 10.5.6 arch: x86_64 Family: mac



plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
configuration
downloadSourcestrue/downloadSources

downloadJavadocstrue/downloadJavadocs
/configuration
/plugin

plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.6/source
target1.6/target
/configuration
/plugin

   


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT ignores maven-compiler-plugin

2009-04-23 Thread Barrie Treloar
On Fri, Apr 24, 2009 at 11:41 AM, Davis Ford
davisf...@zenoconsulting.biz wrote:
 Hi, I just enabled all snapshots for plugins, and a side effect of
 this was to pull down
 org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT version of
 eclipse plugin.

 Now, my project breaks in eclipse b/c it sets the JDK to be (I think)
 the system default (which is JDK 1.5), but my maven-compiler-plugin
 settings in the pom specify 1.6.  So maven compiles the sources, and
 when I launch the project in eclipse, it throws an error saying the
 class version is wrong.

 Nothing very interesting in the config below.  This problem did not
 exist for me until I just opened up plugin snapshots -- which I think
 I'll turn off.  This is on:
 $ mvn -version
 Maven version: 2.0.9
 Java version: 1.6.0_07

It should be setting it to 1.6.

Can you check the .classpath file that gets created and look at what
kind=con is defined? (It should be the last entry)

It should either be
  classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/
which takes the default JRE defined in eclipse.
Check what version that is in the eclipse preferences Java  Installed JREs.

or
classpathentry kind=con
path=org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/

Which will use the Execution Environment bound to JavaSE-1.6 in your
eclipse preferences Java  Installed JREs  Execution Environment.

I can't find any integration tests for 1.6 specifically but we have
ones for J2SE-1.4.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT ignores maven-compiler-plugin

2009-04-23 Thread Davis Ford
My apologies Barrie...this is the con entry:

classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/

User error.  Somehow my eclipse default JDK/JRE setting got switched
back to JDK 5.  When I refreshed using mvn eclipse:eclipse it resets
the JDK back to default JRE_CONTAINER -- whereas only the project was
set previously on 6.  Its the IDE setting that changed for me, and
this was the root of my problem.  I reset this globally in Eclipse and
all is well.

--davis

On Thu, Apr 23, 2009 at 10:56 PM, Barrie Treloar baerr...@gmail.com wrote:
 On Fri, Apr 24, 2009 at 11:41 AM, Davis Ford
 davisf...@zenoconsulting.biz wrote:
 Hi, I just enabled all snapshots for plugins, and a side effect of
 this was to pull down
 org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT version of
 eclipse plugin.

 Now, my project breaks in eclipse b/c it sets the JDK to be (I think)
 the system default (which is JDK 1.5), but my maven-compiler-plugin
 settings in the pom specify 1.6.  So maven compiles the sources, and
 when I launch the project in eclipse, it throws an error saying the
 class version is wrong.

 Nothing very interesting in the config below.  This problem did not
 exist for me until I just opened up plugin snapshots -- which I think
 I'll turn off.  This is on:
 $ mvn -version
 Maven version: 2.0.9
 Java version: 1.6.0_07

 It should be setting it to 1.6.

 Can you check the .classpath file that gets created and look at what
 kind=con is defined? (It should be the last entry)

 It should either be
  classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/
 which takes the default JRE defined in eclipse.
 Check what version that is in the eclipse preferences Java  Installed JREs.

 or
 classpathentry kind=con
 path=org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/

 Which will use the Execution Environment bound to JavaSE-1.6 in your
 eclipse preferences Java  Installed JREs  Execution Environment.

 I can't find any integration tests for 1.6 specifically but we have
 ones for J2SE-1.4.

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org





-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT ignores maven-compiler-plugin

2009-04-23 Thread Barrie Treloar
On Fri, Apr 24, 2009 at 12:37 PM, Davis Ford
davisf...@zenoconsulting.biz wrote:
 My apologies Barrie...this is the con entry:

 classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/

 User error.  Somehow my eclipse default JDK/JRE setting got switched
 back to JDK 5.  When I refreshed using mvn eclipse:eclipse it resets
 the JDK back to default JRE_CONTAINER -- whereas only the project was
 set previously on 6.  Its the IDE setting that changed for me, and
 this was the root of my problem.  I reset this globally in Eclipse and
 all is well.

No worries.
I'm glad all is well.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org