i got my aspectj plugin working fine:

check out from svn://svn.codehaus.org/mojo/scm/trunk/mojo/mojo- sandbox/aspectj-maven-plugin

anyway, from the spectj-maven-plugin/pom.xml
I updated all 1.5.0_M5 to 1.5.0 (since 1.5.0 is the latest release on 20th Dec 05')
-----------------------------------
 my project pom.xml
-----------------------------------
<dependencies>
        <dependency>
                <groupId>aspectj</groupId>
                <artifactId>aspectjrt</artifactId>
                <version>1.5.0</version>
                <scope>compile</scope>
        </dependency>
</dependencies>
<plugins>
        <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>aspectj-maven-plugin</artifactId>
                <configuration>
                        <options>
                                <option>-1.5</option>
                                <option>-verbose</option>
                                <option>-showWeaveInfo</option>                 
            
                        </options>
<ajdtBuildDefFile>src/main/resources/build.ajproperties</ ajdtBuildDefFile>
                </configuration>
                <executions>
                        <execution>
                                <goals>
                                        <goal>compile</goal>
                                        <!--                                 
<goal>test-compile</goal>-->
                                </goals>
                        </execution>
                </executions>
        </plugin>
</plugins>

NOTE: the last thing is the build.ajproperties. (default location is project / , created by Eclipse AJDT, but I moved to src/main/ resources/)
---------------------------------------------------------------------
build.ajproperties
---------------------------------------------------------------------
src.includes = src/main/aspect/,\
               src/main/java/com/mycompany/app/

src.excludes = src/test/,\
                                src/site/,\
                                src/main/assembly,\
                                src/main/filters,\
                                src/main/groovy




On Dec 30, 2005, at 2:36 AM, Dennis Ho wrote:

Hi,

        Does anyone know which maven 2 repository has the
aspectj-maven-plugin?  I tried using the following in my pom but got :

[INFO] The plugin 'org.codehaus.mojo:aspectj-maven-plugin' does not
exist or no valid version could be found

        <build>
                <plugins>
                        
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>aspectj-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>compile</id>
                        <configuration>

<ajdtBuildDefFile>build.ajproperties</ajdtBuildDefFile>
                        </configuration>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                    </execution>
                </executions>
                </plugin>
        </build>

        Thanks in advance.

Regards,

Dennis.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
Sanchez
Sent: Monday, November 21, 2005 7:39 PM
To: Maven Users List
Subject: Re: How to use M2 with AspectJ?

It has just been added
http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/aspectj-maven- plugi
n/

On 11/21/05, Law Green-A20134 <[EMAIL PROTECTED]> wrote:
Hi,

Anyone has the idea of using M2 along with aspectJ since there is no
aspectJ plug-in for M2.

Thanks
Green



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to