You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rodrigo Ruiz <rr...@gridsystems.com> on 2007/03/13 13:31:24 UTC

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:Mamraoui@omnidata.co.ma]
> 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:Mamraoui@omnidata.co.ma]
> 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:Peter.Hayes@fmr.com]
> 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:Mamraoui@omnidata.co.ma]
> 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:Peter.Hayes@fmr.com]
> 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:Mamraoui@omnidata.co.ma]
> 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.: mamraoui@omnidata.co.ma
>
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



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


RE: Maven2 plugin for eclipse : OK now

Posted by "Hayes, Peter" <Pe...@fmr.com>.
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:rruiz@gridsystems.com] 
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:Mamraoui@omnidata.co.ma]
> 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:Mamraoui@omnidata.co.ma]
> 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:Peter.Hayes@fmr.com]
> 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:Mamraoui@omnidata.co.ma]
> 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:Peter.Hayes@fmr.com]
> 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:Mamraoui@omnidata.co.ma]
> 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.: mamraoui@omnidata.co.ma
>
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



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




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