Hello there:

I am currently trying to make an existing maven project workable with the 
m2_eclipse plugin.  My configuration is as follows:

java version: 1.6.0_07
OS: Windows XP
maven version: 2.0.9
eclipse version: 3.3.2, Build id: M20080221-1800

Maven 2.0 integration

Feature Name                    Version                  Feature Id
---------------------------------------------------------------------------------------------
Maven Integration For Eclipse    0.9.7.200811301806      
org.maven.ide.eclipse.ajdt.feature
Maven Integration For Eclipse    0.9.7.200811301806      
org.maven.ide.eclipse.feature
Maven Integration For Eclipse    0.9.7.200811301806      
org.maven.ide.eclipse.scm.feature
Maven Integration For Eclipse    0.9.7.200811301806      
org.maven.ide.eclipse.book.feature
Maven Integration For Eclipse    0.9.7.200811301806      
org.maven.ide.eclipse.editor.xml.feature
Maven Integration For Eclipse    0.9.7.200811301806      
org.maven.ide.eclipse.editor.feature
Maven Integration For Eclipse    0.9.7.200811301806      
org.maven.ide.eclipse.wtp.feature
Maven Integration For Eclipse    0.9.4.20080603-0114     
org.maven.ide.eclipse.mylyn.feature
Maven Integration For Eclipse    0.9.7.200811301806      
org.maven.ide.eclipse.cvs.feature

In Eclipse, under Window --> Preferences --> Maven --> Installations I have 
defined my external maven installation as the default.

When I build from the command line (ie mvn clean install) everything works.  
Also, if I right-click on the parent project, and select:
"Run as --> Maven test" everything works.

My problems arise when I attempt to right-click on the parent project and run 
"Maven --> Update Project Configuration", I get the error:

2/3/09 7:19:14 PM EST: [INFO] [enunciate:assemble]
2/3/09 7:19:14 PM EST: [FATAL ERROR] 
org.codehaus.enunciate.AssembleMojo#execute() caused a linkage error 
(java.lang.NoClassDefFoundError). Check the realms:

NOTE:
Plugin realm is: 
/plugins/org.codehaus.enunciate:maven-enunciate-plugin:1...@-491297773/thread:Worker-19
Container realm is: plexus.core

{ whole bunch of urls to jars here... }

Realm ID: plexus.core

 com/sun/mirror/apt/AnnotationProcessorFactory


The artifact I depend on, has a dependency on the tools.jar, and includes the 
following profile in its pom.xml:

<profiles>
  <profile>
    <id>default-tools.jar</id>
    <activation>
      <property>
        <name>java.vendor</name>
        <value>Sun Microsystems Inc.</value>
      </property>
    </activation>
    <dependencies>
      <dependency>
        <groupId>com.sun</groupId>
        <artifactId>tools</artifactId>
        <version>1.5.0</version>
        <scope>system</scope>
        <systemPath>${java.home}/../lib/tools.jar</systemPath>
      </dependency>
    </dependencies>
  </profile>
</profiles>

As I mentioned before, this is not a problem from the command line (nor when 
running the goal from within Eclipse), so I'm not sure if the failure is caused 
by:
1) m2_eclipse not properly substituting the placeholder "${java.home}" with the 
path to my local JRE, or
2) m2_eclipse not including the "default-tools.jar" profile

Any help or ideas would be greatly appreciated.

Thanks in advance...


      __________________________________________________________________
Connect with friends from any web browser - no download required. Try the new 
Yahoo! Canada Messenger for the Web BETA at 
http://ca.messenger.yahoo.com/webmessengerpromo.php

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to