Hmmm.. Seems like there is some problems in the tools.jar import stuff.. Could you run it with -X option for me, so that i can see the classpath it tries to create ?
On 06/03/06, Ole-Martin Mørk <[EMAIL PROTECTED]> wrote: > Thanks for the quick response. I tried the new pom.xml, but I still > get the same error. > > [INFO] Starting generating ajdoc > [DEBUG] Running : ajc -classpath > C:\tools\maven-2.0.2\mavenrepo\aspectj\aspectjrt\1.5.0\aspectjrt-1.5.0.jar; > C:\tools\maven-2.0.2\mavenrepo\junit\junit\3.8.1\junit-3.8.1.jar; > C:\tools\maven-2.0.2\mavenrepo\org\easymock\easymock\2.0\easymock-2.0.jar; > C:\prosjekter\aop-presentasjon\presentasjon\target\classes; > C:\prosjekter\aop-presentasjon\presentasjon\target\test-classes > -source -1.5 -private -verbose -d > C:\prosjekter\aop-presentasjon\presentasjon\target/site/aspectj-report > C:\prosjekter\aop-presentasjon\presentasjon\src\main\java\com\bekk\aop\Action.java > C:\prosjekter\aop-presentasjon\presentasjon\src\main\java\com\bekk\aop\BankAccount.java > C:\prosjekter\aop-presentasjon\presentasjon\src\main\java\com\bekk\aop\BankAccountObserver.java > C:\prosjekter\aop-presentasjon\presentasjon\src\main\java\com\bekk\aop\BankAccountListener.java > C:\prosjekter\aop-presentasjon\presentasjon\src\test\java\com\bekk\aop\BankAccountTest.java > C:\prosjekter\aop-presentasjon\presentasjon\src\main\java\com\bekk\aop\exceptions\NotEnoughMoneyException.java > C:\prosjekter\aop-presentasjon\presentasjon\src\main\java\com\bekk\aop\aspects\ListenerNotifier.java > 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. > -- > > Btw, my java_home points to C:\Program Files\Java\jdk1.5.0. Could the > whitespace be the problem? > > > On 3/6/06, Kaare Nilsen <[EMAIL PROTECTED]> wrote: > > 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. > > > > > > > > > > > > > > > > > > -- > 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. >
