Please see:
http://jira.codehaus.org/browse/MECLIPSE-584

Since 2.6 of the Maven Eclipse Plugin, AspectJ jars are no longer
honored (by default) since a separate plugin controls AJDT features.
As you will read in the ticket, if you wish to reverse this feature,
add <ajdtVersion>none</ajdtVersion>.

Paul

On Thu, Oct 22, 2009 at 7:01 PM, Martin Gainty <mgai...@hotmail.com> wrote:
>
> did you put these dependencies on the test project pom.xml?
> assuming you have maven-eclipse
> try exporting the test project pom.xml and placing these dependencies into 
> the pom.xml manually
> then the project should see the plugins referenced from local repository
>
> Martin Gainty
> ______________________________________________
>
>> Date: Fri, 23 Oct 2009 08:37:41 +1030
>> Subject: Re: Aspectj jars refuse to get imported
>> From: baerr...@gmail.com
>> To: users@maven.apache.org
>>
>> On Fri, Oct 23, 2009 at 5:37 AM, Yaakov Chaikin
>> <yaakov.chai...@gmail.com> wrote:
>> > Hi,
>> >
>> > Perhaps, someone can point out to me what I am doing wrong...
>> >
>> > I have the following simple pom.xml file:
>> > **************
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <project xmlns="http://maven.apache.org/POM/4.0.0";
>> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> >        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> > http://maven.apache.org/maven-v4_0_0.xsd";>
>> >        <modelVersion>4.0.0</modelVersion>
>> >
>> >        <groupId>pull</groupId>
>> >        <artifactId>spring-aop-example</artifactId>
>> >        <packaging>jar</packaging>
>> >        <version>1.0-SNAPSHOT</version>
>> >        <name>Maven pull of dependencies project</name>
>> >
>> >        <dependencies>
>> >                <dependency>
>> >                        <groupId>org.aspectj</groupId>
>> >                        <artifactId>aspectjrt</artifactId>
>> >                        <version>1.6.0</version>
>> >                </dependency>
>> >                <dependency>
>> >                        <groupId>org.aspectj</groupId>
>> >                        <artifactId>aspectjweaver</artifactId>
>> >                        <version>1.6.0</version>
>> >                </dependency>
>> >        </dependencies>
>> > </project>
>> > **************
>> >
>> > When I run 'mvn clean install', the proper JARs get pulled into my
>> > local repository. However, when I need these on my classpath, they are
>> > not there!
>> >
>> > On top of that, running regular 'mvn eclipse:eclipse' DOES NOT import
>> > them into eclipse like any other regular dependency! It's as if they
>> > are not mentioned in the pom at all!
>>
>> For eclipse, did you check the docs?
>> http://maven.apache.org/plugins/maven-eclipse-plugin/examples/ajdt-projects.html
>>
>> For why they are not on your regular classpath, no idea. I dont work
>> with aspectj.

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

Reply via email to