In this case, it is not the JDK configured within Eclipse itself (this configures the JDK's available to compile with), but the JDK that Eclipse is run with externally. Check your environment variables for JAVA_HOME and your path for the version of Java that you use. In my case I have (for Windows) :
MAVEN_HOME = c:\dev\tools\maven-2.0.5 JAVA_HOME = c:\Program Files\Java\jdk1.5.0_10 PATH = %MAVEN_HOME%\bin;%JAVA_HOME%\bin This means that when eclipse is invoked (or Maven) it uses the JDK1.5.0_10 to run. HTH, Pete -----Original Message----- From: Marouane Amraoui [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 8:49 AM To: Maven Users List Subject: RE: Maven2 plugin for eclipse : OK now At the begining in InstalledJRE it was : c:\eclipse. I modified it to C:\j2sdk1.4.2_13. but still the same error. So I must run eclipse with -Djava.home or what ???? thx -----Message d'origine----- De : Hayes, Peter [mailto:[EMAIL PROTECTED] Envoyé : mardi 13 mars 2007 12:36 À : Maven Users List Objet : RE: Maven2 plugin for eclipse : OK now This actually should work in the 0.0.10 version of the m2eclipse plugin. Make sure that you are using a _JDK_ and not a JRE to run Eclipse / Maven. The tools.jar is not present in the JRE package. -----Original Message----- From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 8:31 AM To: Maven Users List Subject: RE: Maven2 plugin for eclipse : OK now Hi, It is possible that dependencies with "system" scope are not correctly handled by the plugin. Check that tools.jar appears in the list of jars within the "Maven Dependencies" library container. If it is not there, just add it manually to the Eclipse project classpath. Hope this helps you, Rodrigo Marouane Amraoui wrote: > > The missing file jar is com.sun.tools . is a dependency of commons- > > attributs-compiler. In the pom file of commons-attributs-compiler : > > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.4.2</version> > <scope>system</scope> > <systemPath>${java.home}/../lib/tools.jar</systemPath> > </dependency> > > I didn't undrestand what i need to do in this case ???? > > > > > > -----Message d'origine----- > De : Marouane Amraoui [mailto:[EMAIL PROTECTED] > Envoyé : mardi 13 mars 2007 11:11 > À : Maven Users List > Objet : RE: Maven2 plugin for eclipse : OK now > > > Is OK now :). So i noticed that in the pom file signal an error of a > messing jar . for that the container doesn't work I think. > > Thx a lot for your help. > > > -----Message d'origine----- > De : Marouane Amraoui [mailto:[EMAIL PROTECTED] > Envoyé : mardi 13 mars 2007 10:56 > À : Maven Users List > Objet : RE: Maven2 plugin for eclipse > > > I enabled the maven project , but still have error compilation due of the > dependency !!!! > > > I have this classpath : > > .classpath > ------------------------ > > <?xml version="1.0" encoding="UTF-8"?> > <classpath> > <classpathentry kind="src" path="src/java"/> > <classpathentry output="target/test-classes" kind="src" > path="src/test"/> > <classpathentry kind="con" > path="org.eclipse.jdt.launching.JRE_CONTAINER"/> > <classpathentry kind="con" > path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/> > <classpathentry kind="output" path="target/classes"/> > </classpath> > > .project > -------------------------------- > <?xml version="1.0" encoding="UTF-8"?> > <projectDescription> > <name>framework</name> > <comment></comment> > <projects> > </projects> > <buildSpec> > <buildCommand> > <name>org.eclipse.jdt.core.javabuilder</name> > <arguments> > </arguments> > </buildCommand> > <buildCommand> > <name>org.maven.ide.eclipse.maven2Builder</name> > <arguments> > </arguments> > </buildCommand> > </buildSpec> > <natures> > <nature>org.eclipse.jdt.core.javanature</nature> > <nature>org.maven.ide.eclipse.maven2Nature</nature> > </natures> > </projectDescription> > > > > -----Message d'origine----- > De : Hayes, Peter [mailto:[EMAIL PROTECTED] > Envoyé : lundi 12 mars 2007 19:39 > À : Maven Users List > Objet : RE: Maven2 plugin for eclipse > > Yes, you will not have to manage the .classpath manually. Make sure to > remove any entries defined in there that are now redundant based on the > m2eclipse plugin's classpath management. > > I generally have the following in my .classpath files : > > <?xml version="1.0" encoding="UTF-8"?> > <classpath> > <classpathentry kind="src" path="src/main/java"/> > <classpathentry kind="src" path="src/main/resources"/> > <classpathentry kind="src" path="src/test/java"/> > <classpathentry kind="src" path="src/test/resources"/> > <classpathentry kind="con" > path="org.eclipse.jdt.launching.JRE_CONTAINER"/> > <classpathentry kind="con" > path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/> > <classpathentry kind="output" path="classes"/> > </classpath> > > Pete > > -----Original Message----- > From: Marouane Amraoui [mailto:[EMAIL PROTECTED] > Sent: Monday, March 12, 2007 3:31 PM > To: Maven Users List > Subject: RE: Maven2 plugin for eclipse > > I didn't have enabled my project maven . so If I enable it we don't need > to execute eclipse:eclipse inorder to synchronize the pom dependency and > .classpth ???? > > -----Message d'origine----- > De : Hayes, Peter [mailto:[EMAIL PROTECTED] > Envoyé : lundi 12 mars 2007 19:22 > À : Maven Users List > Objet : RE: Maven2 plugin for eclipse > > Sorry, make sure that you enable the plugin on your project. You have to > right-click the project and there should be a Maven2 menu. Select enable. > > Pete > > -----Original Message----- > From: Hayes, Peter > Sent: Monday, March 12, 2007 3:20 PM > To: Maven Users List > Subject: RE: Maven2 plugin for eclipse > > > http://m2eclipse.codehaus.org/ > > This plugin keeps your classpath in synch with your pom file via an > Eclipse classpath container. It's very good. > > -----Original Message----- > From: Marouane Amraoui [mailto:[EMAIL PROTECTED] > Sent: Monday, March 12, 2007 2:05 PM > To: Maven Users List > Subject: Maven2 plugin for eclipse > > I m using Maven2 plugin for eclipse . > > Version plugin is : 0.0.10. > > > > I created a maven project . I added dependency using the plugin. > > > > when I add the dependency it only added in pom file and note in eclipse > file .classpath !!!! this obligate me to do > > A double work !!!! > > > > There is a solution for that ??? > > > > --------------------------------------------------------------- > > Merouane AMRAOUI > Consultant Expert > Division Développement > Email.: [EMAIL PROTECTED] > > Gsm .: 065 19 60 99 > Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 > OMNIDATA , 74 Bv AbdelMoumen > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
