Hi Andy,
Yes I have tried using it on the command line and it looks good.
I think I worked out the xml in maven to get it working. I present it here ( so
not just ripping the befenfits but also giving back what I can 😊 )
<!-- make sure report is executed during specific maven lifecycle step 'site'
-->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>${aspectj.maven.plugin.version}</version>
<configuration>
<complianceLevel>${java.version}</complianceLevel>
<source>${java.version}</source>
<target>${java.version}</target>
<deprecation>true</deprecation>
<encoding>${project.build.sourceEncoding}</encoding>
<showWeaveInfo>true</showWeaveInfo>
<forceAjcCompile>true</forceAjcCompile>
<verbose>true</verbose>
<Xlint>warning</Xlint>
<argumentFileName>builddef-${project.name}.lst</argumentFileName>
<excludes>
<exclude>**/package-info.java</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>compile_with_aspectj</id>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
<!-- Bind ajdoc to site phase in the maven lifecycle -->
<execution>
<id>ajdoc</id>
<goals>
<goal>aspectj-report</goal>
</goals>
<phase>site</phase>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
<!-- reporting part -->
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>${aspectj.maven.plugin.version}</version>
<configuration>
<verbose>true</verbose>
<privateScope>true</privateScope>
<complianceLevel>${java.version}</complianceLevel>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>aspectj-report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</reporting>
br,
//mike
________________________________
Från: [email protected] <[email protected]> för
Andy Clement <[email protected]>
Skickat: den 28 november 2018 19:26
Till: [email protected]
Ämne: Re: [aspectj-users] Generate ajdoc for site
ajdoc is the one area of AspectJ I don't really know much about, other than
trying to keep it limping along as Java versions update.
Have you tried running ajdoc on the command line, does it do the right thing?
If so then we know ajdoc is at least ok and we just have to work out the right
XML incantation. Could be a good stack overflow question, unless a maven ajdoc
expert is hanging out in here?
cheers,
Andy
On Mon, 26 Nov 2018 at 02:02, Mikael Petterson
<[email protected]<mailto:[email protected]>> wrote:
Hi,
I have added the following in my pom.xml:
<!-- ajdoc is a tool that extends javadoc -->
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>${aspectj.maven.plugin.version}</version>
<configuration>
<verbose>true</verbose>
<privateScope>true</privateScope>
<complianceLevel>${java.version}</complianceLevel>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>aspectj-report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
When I execute:
mvn clean compile site:site
I see the following:
[INFO] 1 report configured for maven-jxr-plugin:2.5: jxr
[INFO] configuring report plugin
org.codehaus.mojo:aspectj-maven-plugin:1.11.1-FORK
[INFO] 1 report configured for aspectj-maven-plugin:1.11.1-FORK: aspectj-report
[INFO] Rendering site with default locale English (en)
[INFO] Relativizing decoration links with respect to localized project URL:
http://<deployserver>/site/java-runtime-stats/collector/
[INFO] Rendering content with org.apache.maven.skins:maven-fluido-skin:jar:1.7
skin.
[INFO] Skipped "About" report (maven-project-info-reports-plugin:3.0.0:index),
file "index.html" already exists.
[INFO] Skipped "AspectJ Report" report
(aspectj-maven-plugin:1.11.1-FORK:aspectj-report), file "index.html" already
exists.
And no reports is generated for ajdoc.
Any idea what I am missing?
br,
//mikael
_______________________________________________
aspectj-users mailing list
[email protected]<mailto:[email protected]>
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://www.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://www.eclipse.org/mailman/listinfo/aspectj-users