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!

Reply via email to