You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Felipe Kamakura <fe...@gmail.com> on 2008/03/17 14:23:58 UTC

AspectJ and M2Eclipse

Greetings!

I have a problem concerning AJDT and the M2Eclipse plugin I hope someone can
help me with that. I have to include a .JAR in my AspectJ Build Path, but
M2Eclipse won't let me. Everytime I include a library in the AspectJ Build
Path it is automatically excluded. I think that's because M2Eclipse groups
all libraries in a Container:


> <classpathentry kind="con" path="
> org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>


I've tried changing manually the .classpath file, including the dependency
like this:

> <classpathentry kind="var"
> path="M2_REPO/br/com/touchtec/version/version/1.0/version-1.0.jar">
>        <attributes>
>                <attribute name="org.eclipse.ajdt.aspectpath"
> value="true"/>
>        </attributes>
> </classpathenty>
>

But Eclipse will give me an error for duplicated build path entry, because
the version-1.0.jar already exists in the M2Eclipse Container.

Is there a way to suppress this error? Or better, is there a way to include
a Maven dependency in the AspectJ Build Path??

Thanks!

Re: AspectJ and M2Eclipse

Posted by Jason van Zyl <ja...@maven.org>.
This is a general problem with any eclipse integration that manages  
its own classpath container. This is something we're trying to work on  
with other groups at Eclipse. We're at EclipseCon this week and so  
we're trying to figure out how this might best work.

On 17-Mar-08, at 6:23 AM, Felipe Kamakura wrote:

> Greetings!
>
> I have a problem concerning AJDT and the M2Eclipse plugin I hope  
> someone can
> help me with that. I have to include a .JAR in my AspectJ Build  
> Path, but
> M2Eclipse won't let me. Everytime I include a library in the AspectJ  
> Build
> Path it is automatically excluded. I think that's because M2Eclipse  
> groups
> all libraries in a Container:
>
>
>> <classpathentry kind="con" path="
>> org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
>
>
> I've tried changing manually the .classpath file, including the  
> dependency
> like this:
>
>> <classpathentry kind="var"
>> path="M2_REPO/br/com/touchtec/version/version/1.0/version-1.0.jar">
>>       <attributes>
>>               <attribute name="org.eclipse.ajdt.aspectpath"
>> value="true"/>
>>       </attributes>
>> </classpathenty>
>>
>
> But Eclipse will give me an error for duplicated build path entry,  
> because
> the version-1.0.jar already exists in the M2Eclipse Container.
>
> Is there a way to suppress this error? Or better, is there a way to  
> include
> a Maven dependency in the AspectJ Build Path??
>
> Thanks!

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
----------------------------------------------------------

What matters is not ideas, but the people who have them. Good people  
can fix bad ideas, but good ideas can't save bad people.

-- Paul Graham 




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


Re: AspectJ and M2Eclipse

Posted by Felipe Kamakura <fe...@gmail.com>.
Sorry for the delay. I issue is
http://jira.codehaus.org/browse/MNGECLIPSE-550

[]s

On Tue, Mar 25, 2008 at 12:51 AM, Eugene Kuleshov <eu...@md.pp.ru> wrote:

>
>
> Felipe Kamakura wrote:
> >
> > I have a problem concerning AJDT and the M2Eclipse plugin I hope someone
> > can
> > help me with that. I have to include a .JAR in my AspectJ Build Path,
> but
> > M2Eclipse won't let me. Everytime I include a library in the AspectJ
> Build
> > Path it is automatically excluded. I think that's because M2Eclipse
> groups
> > all libraries in a Container:
> >
> >> <classpathentry kind="con" path="
> >> org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
> >
> > I've tried changing manually the .classpath file, including the
> dependency
> > like this:
> >
> >> <classpathentry kind="var"
> >> path="M2_REPO/br/com/touchtec/version/version/1.0/version-1.0.jar">
> >>        <attributes>
> >>                <attribute name="org.eclipse.ajdt.aspectpath"
> >> value="true"/>
> >>        </attributes>
> >> </classpathenty>
> >>
> >
> > But Eclipse will give me an error for duplicated build path entry,
> because
> > the version-1.0.jar already exists in the M2Eclipse Container.
> >
> > Is there a way to suppress this error? Or better, is there a way to
> > include
> > a Maven dependency in the AspectJ Build Path??
>
> Felipe, can you please create jira on m2eclipse and attach some test
> project
> that we could use to reproduce issue and keep track of it for AJDT
> support.
>
> Thanks
>
> Eugene
> --
> View this message in context:
> http://www.nabble.com/AspectJ-and-M2Eclipse-tp16095385s177p16267850.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: AspectJ and M2Eclipse

Posted by Eugene Kuleshov <eu...@md.pp.ru>.

Felipe Kamakura wrote:
> 
> I have a problem concerning AJDT and the M2Eclipse plugin I hope someone
> can
> help me with that. I have to include a .JAR in my AspectJ Build Path, but
> M2Eclipse won't let me. Everytime I include a library in the AspectJ Build
> Path it is automatically excluded. I think that's because M2Eclipse groups
> all libraries in a Container:
> 
>> <classpathentry kind="con" path="
>> org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
> 
> I've tried changing manually the .classpath file, including the dependency
> like this:
> 
>> <classpathentry kind="var"
>> path="M2_REPO/br/com/touchtec/version/version/1.0/version-1.0.jar">
>>        <attributes>
>>                <attribute name="org.eclipse.ajdt.aspectpath"
>> value="true"/>
>>        </attributes>
>> </classpathenty>
>>
> 
> But Eclipse will give me an error for duplicated build path entry, because
> the version-1.0.jar already exists in the M2Eclipse Container.
> 
> Is there a way to suppress this error? Or better, is there a way to
> include
> a Maven dependency in the AspectJ Build Path??

Felipe, can you please create jira on m2eclipse and attach some test project
that we could use to reproduce issue and keep track of it for AJDT support.

Thanks

Eugene
-- 
View this message in context: http://www.nabble.com/AspectJ-and-M2Eclipse-tp16095385s177p16267850.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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