Hi gabriel.

  M2_REPO entries are created from your dependencies with eclipse:eclipse,
eclipse:rad, and others mojos.
  We created a mojo eclipse:m2eclipse to create a classpath without these
entries but with the org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER entry
used by the m2eclipse plugin.
  We don't have actually a support for RAD and m2eclipse. You can open an
issue but I don't know when I'll have the time to work on it. ou can also
ask to the m2eclipse plugin team to improve the support for RAD.

cheers

arnaud

On Mon, Jun 23, 2008 at 5:55 PM, <[EMAIL PROTECTED]> wrote:

>
> Hi Arnaud, how are you doing?
>
> I found a post where you've answered about the eclipse:rad plugin. (
> http://www.mail-archive.com/users@maven.apache.org/msg66951.html)
>
> I'm trying to use the eclipse:rad plugin to generate the .classpath and
> .project for my RAD7 projects but I couldn't figure out how to remove the
> M2_REPO individual entries on my .classpath as you can see below:
>
> <classpath>
>   <classpathentry kind="src" path="src"/>
>   <classpathentry kind="src" path="src/main/resources"
> excluding="**/*.java"/>
>   <classpathentry kind="src" path="target/generated-resources/rad6"
> excluding="**/*.java"/>
>   <classpathentry kind="output" path="target/classes"/>
>   <classpathentry kind="var"
> path="M2_REPO/javax/xml/jax-qname/1.1/jax-qname-1.1.jar"/>
>   <classpathentry kind="var"
> path="M2_REPO/javax/xml/bind/jaxb-api/1.0.1/jaxb-api-1.0.1.jar"/>
>   <classpathentry kind="var"
> path="M2_REPO/javax/xml/jaxb-impl/1.0.2/jaxb-impl-1.0.2.jar"/>
>   <classpathentry kind="var"
> path="M2_REPO/javax/xml/jaxb-libs/1.0.2/jaxb-libs-1.0.2.jar"/>
>   <classpathentry kind="var"
> path="M2_REPO/javax/xml/jaxb-xjc/1.0.2/jaxb-xjc-1.0.2.jar"/>
>   <classpathentry kind="var"
> path="M2_REPO/javax/xml/namespace/1.0.1/namespace-1.0.1.jar"/>
>   <classpathentry kind="con"
> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>   <classpathentry kind="con"
> path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
>   <classpathentry kind="var"
> path="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar"
> sourcepath="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1-sources.jar"/>
>   <classpathentry kind="var"
> path="M2_REPO/relaxngDatatype/relaxngDatatype/20020414/relaxngDatatype-20020414.jar"
> sourcepath="M2_REPO/relaxngDatatype/relaxngDatatype/20020414/relaxngDatatype-20020414-sources.jar"/>
>   <classpathentry kind="var"
> path="M2_REPO/com/sun/msv/datatype/xsd/xsdlib/20060615/xsdlib-20060615.jar"/>
> </classpath>
>
> From the file above, I only need this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <classpath>
>         <classpathentry kind="src" path="src"/>
>         <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="bin"/>
> </classpath>
>
> Could you please help me to figure out how could I configure the
> eclipse:rad plugin in order to generate the file above?
>
> My current plugin configuration are like:
>
> <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-eclipse-plugin</artifactId>
>         <configuration>
>                 <buildcommands>
>                         <buildcommand>
>                                 org.eclipse.jdt.core.javabuilder
>                         </buildcommand>
>                         <buildcommand>
>                                 org.maven.ide.eclipse.maven2Builder
>                         </buildcommand>
>                 </buildcommands>
>                 <projectnatures>
>                         <projectnature>
>                                 org.eclipse.jdt.core.javanature
>                         </projectnature>
>                         <projectnature>
>                                 org.maven.ide.eclipse.maven2Nature
>                         </projectnature>
>                 </projectnatures>
>                 <classpathContainers>
>                         <classpathContainer>
>                                 org.eclipse.jdt.launching.JRE_CONTAINER
>                         </classpathContainer>
>                         <classpathContainer>
>
> org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER
>                         </classpathContainer>
>                 </classpathContainers>
>         </configuration>
> </plugin>
>
> I'm looking forward your feedbacks...
>
> Best Regards...
>
> Gabriel Pereira Borges
> Lenovo Care Center Support Transition - Java Specialist
> Phoenix II Migration to zLinux Environment
> Global Business Services  - IBM Brazil
> Phone: +55-19-2118-7238
> [EMAIL PROTECTED]
>
> ----------------------------------------------------------------------------
> Sun Certified Java Programmer (SCJP)
> Sun Certified Web Component Developer (SCWCD)

Reply via email to