Yo..

Ok.. good to see the plugin in good use ;)
There are some few misconfigurations here, but every one of them is
good guesses though.
First of all.
There are no way for one plugin to pull config from another on, so
both the maven-compiler plugin and the aspectJ plugin needs to get the
1.5 source flags.
the complianceLevel flag you added to the maven-compiler options needs
to be moved to the aspectJ plugin configuration like this :

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>aspectj-maven-plugin</artifactId>
    <version>1.0-SNAPSHOT</version>
    <configuration>
        <complianceLevel>1.5</complianceLevel>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>compile</goal>
                <goal>test-compile</goal>
            </goals>
        </execution>
    </executions>
</plugin>


Also as you can see, I added the versionno of  the plugin.
You still need the source,and target options on the maven-compiler to
be able to compile the sources that is not affected by ajc (though in
your case, there will be none due to the default include, excludes)

Second I removed the profiles section including the tools.jar. This is
done by the plugin configuration.

Then i changed the reports config like this (just removing some
unneccecary stuff)
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>aspectj-maven-plugin</artifactId>
                <configuration>
                    <verbose>true</verbose>
                    <privateScope>true</privateScope>
                    <complianceLevel>1.5</complianceLevel>
                </configuration>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>aspectj-report</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>

Also i removed the aspectjtools dependency because this is only needed
during build, and is included by the plugin.

Then i finally added use of mojo snapshot repos stuff, so that the
latest plugin snapshot is used.

I have attached the new pom.xml
please give notice if it works

Best regards
Kaare


On 06/03/06, Ole-Martin Mørk <[EMAIL PROTECTED]> wrote:
> Thanks.
>
> Here's the pom
>
> On 3/6/06, Kaare Nilsen <[EMAIL PROTECTED]> wrote:
> > Please do attach the pom, so I could see what is happening, and give
> > advice on how to change the pom, or of course if a bug, fix it ;)
> >
> > Best regards
> > Kaare
> >
> > On 06/03/06, Ole-Martin Mørk <[EMAIL PROTECTED]> wrote:
> > > Hi.
> > >
> > > I am having trouble running aspectj:aspectj-report. The output from
> > > the plugin is:
> > >
> > > [INFO] [aspectj:aspectj-report]
> > > [INFO] Starting generating ajdoc
> > > > Calling ajc...
> > > > Building signature files...
> > > > Calling javadoc...
> > > javadoc: error - Cannot find doclet class
> > > com.sun.tools.doclets.standard.Standard
> > > 1 error
> > > > Decorating html files...
> > > > Removing generated tags (this may take a while)...
> > > > Finished.
> > >
> > > When I run ajdoc manually with the same parameters as the aspecj
> > > plugin does, it works fine.
> > >
> > > I am running jdk 1.5.0 on windows xp and maven 2.0.2.
> > > If I should attach my pom.xml, let me know.
> > >
> >
>
>
> --
> Regards, Ole-Martin Mørk.
>
> http://curling.ole-martin.net
> http://www.rallygutta.tk
>
> I have not failed. I have just found 10,000 ways that don't work.
>
>
>
<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>com.bekk.aop</groupId>
    <artifactId>presentasjon</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>Maven Quick Start Archetype</name>
    <url>http://maven.apache.org</url>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
        </dependency>
        <dependency>
            <groupId>easymock</groupId>
            <artifactId>easymock</artifactId>
            <version>2.0</version>
        </dependency>
        <dependency>
            <groupId>aspectj</groupId>
            <artifactId>aspectjrt</artifactId>
            <version>1.5.0</version>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>aspectj-maven-plugin</artifactId>
                <version>1.0-SNAPSHOT</version>
                 <configuration>
                     <complianceLevel>1.5</complianceLevel>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                            <!-- use this goal to weave all your main classes -->
                            <goal>test-compile</goal>
                            <!-- use this goal to weave all your test classes -->
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>cim</report>
                            <report>issue-tracking</report>
                            <report>license</report>
                            <report>mailing-list</report>
                            <report>scm</report>
                            <report>project-team</report>
                            <report>pmd</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>aspectj-maven-plugin</artifactId>
                <configuration>
                    <verbose>true</verbose>
                    <privateScope>true</privateScope>
                    <complianceLevel>1.5</complianceLevel>
                </configuration>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>aspectj-report</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
        </plugins>
    </reporting>
    <repositories>
        <repository>
            <id>Maven Snapshots</id>
            <url>http://snapshots.maven.codehaus.org/maven2/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
        <repository>
            <releases>
                <enabled>false</enabled>
            </releases>
            <id>apache.snapshots</id>
            <name>Apache Development Repository</name>
            <url>http://cvs.apache.org/maven-snapshot-repository</url>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>Maven Snapshots</id>
            <url>http://snapshots.maven.codehaus.org/maven2/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </pluginRepository>
        <pluginRepository>
			<id>Mojo Snapshots</id>
			<url>http://snapshots.maven.codehaus.org/maven2/</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
			<releases>
				<enabled>false</enabled>
			</releases>
		</pluginRepository>
    </pluginRepositories>
    

    
</project>

Reply via email to