I got around my problem by commenting out the "<attainGoal name="java:compile"/>" in the "<j:otherwise>" section of the jelly script. I'm pretty sure that's not a good way to do it, but it works for me.
According to the release notes for the aspectj plugin version 4, this includes a report. I tried generating it but it gave me an empty report. Has anyone had success with this? Thanks again, Ian -----Original Message----- From: Orford, Ian [mailto:[EMAIL PROTECTED] Sent: 07 September 2006 15:40 To: 'Maven Users List' Subject: RE: Problem with maven-aspectj-plugin version 4.0 Thanks for the suggestion. I've upgraded to -beta3 and changed my postGoal to a preGoal. The output looks different now, but the effect is essentially the same.... "maven test" works, but "maven site" gets into this loop..... [echo] Generating the Unit Tests.. junit-report:report: test:test: java:prepare-filesystem: java:compile: aspectj:init: aspectj:compile: aspectj:test-compile: java:prepare-filesystem: java:compile: aspectj:init: aspectj:compile: aspectj:test-compile: java:prepare-filesystem: java:compile: aspectj:init: aspectj:compile: aspectj:test-compile: java:prepare-filesystem: java:compile: aspectj:init: aspectj:compile: aspectj:test-compile: java:prepare-filesystem: java:compile: aspectj:init: -----Original Message----- From: Lukas Theussl [mailto:[EMAIL PROTECTED] Sent: 07 September 2006 13:24 To: Maven Users List Subject: Re: Problem with maven-aspectj-plugin version 4.0 Shouldn't aspectj be called as a preGoal of java:compile? I would also try to upgrade to Maven 1.1-beta-3, a lot has changed between beta-2 and beta-3! HTH, -Lukas Orford, Ian wrote: > I'm using Maven 1.1-beta-2. I recently had to upgrade the aspectj > plugin to version 4.0 because I was getting a compile error and needed > to use aspectj 1.5. > > I've got the standard post-goal hool in my maven.xml file... > <postGoal name="java:compile"> > <attainGoal name="aspectj"/> > </postGoal> > > > If I compile using "maven test" it works fine. However if I use "maven site" > it seems to get stuck in a loop. I've looked at the jelly for the > plugin and it seems to be recursively calling the java:compile goal in > the aspectj:test-compile goal. The piece of code is: > <j:choose> > <j:when test="${context.getVariable('maven.aspectj.dest') == null}"> > <j:set var="maven.aspectj.dest" value="${maven.build.dest}"/> > </j:when> > <j:otherwise> > <ant:echo>imo:attaining java:compile goal</ant:echo> > <attainGoal name="java:compile"/> > <ant:echo>imo:finished java:compile goal</ant:echo> > <ant:path id="build.dest" location="${maven.build.dest}"/> > <maven:addPath id="maven.dependency.classpath" > refid="build.dest"/> > </j:otherwise> > </j:choose> > > So, it's clear that when building "site", "maven.aspectj.dest" isnt > setup. I tried adding > maven.aspectj.dest = ${maven.build.dest} In my project.properties, > but it didn't help. > > The aspectj related properties I have set are: > maven.aspectj.source=1.4 > maven.aspectj.lint=ignore > maven.aspectj.maxmem=512m > maven.aspectj.fork=true > > > I include output from "maven test" and "maven site" below. > > Any help appreciated, > > Regards, > Ian Orford > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ------ ---------------------------------------------------------------------------- ---- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. ---------------------------------------------------------------------------- ---- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------------------------------- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. -------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
