maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] Tunaki commented on issue #12: Add @Generated annotation to Mojo
Date Thu, 01 Jan 1970 00:00:00 GMT
Tunaki commented on issue #12: Add @Generated annotation to Mojo
URL: https://github.com/apache/maven-plugin-tools/pull/12#issuecomment-367468113
 
 
   Unfortunately, I'm not sure if this solves more problems than it creates... There are lots
of issues with this annotation and Java 9 for tools that read Java source code. I just tried
adding it and then generating the Javadoc of a plugin, it failed with:
   
   ```
   [ERROR] import javax.annotation.Generated;
   [ERROR]             ^
   [ERROR]   (package javax.annotation is declared in module java.xml.ws.annotation, which
is not in the module graph)
   [ERROR]
   [ERROR] Command line was: "C:\Program Files\Java\jdk-9.0.1\bin\javadoc.exe" @options @packages
   ```
   
   There is also a new [`javax.annotation.processing.Generated`](https://docs.oracle.com/javase/9/docs/api/javax/annotation/processing/Generated.html)
annotation since Java 9...
   
   In any case, if something should be done here, modular compatibility is priority.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message