[jboss-jira] [JBoss JIRA] (LOGTOOL-105) Option to have LoggingToolsProcessor to not use javax.annotation.Generated
Sanne Grinovero (JIRA)
issues at jboss.org
Fri Apr 22 18:41:01 EDT 2016
[ https://issues.jboss.org/browse/LOGTOOL-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13196069#comment-13196069 ]
Sanne Grinovero commented on LOGTOOL-105:
-----------------------------------------
As an alternative to enabling this switch, I've found that adding the dependency explicitly also works fine.
For example in a Maven build I can add them as dependencies to the annotation processor:
{code:xml}
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>2.2.4</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<processors>
<processor>org.jboss.logging.processor.apt.LoggingToolsProcessor</processor>
</processors>
<compilerArguments>-AskipGeneratedAnnotation=false -AtranslationFilesPath=${project.basedir}/src/main/resources/ -source 1.7 -target 1.7</compilerArguments>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging-processor</artifactId>
<version>${jbossLoggingProcessorVersion}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</plugin>{code}
> Option to have LoggingToolsProcessor to not use javax.annotation.Generated
> --------------------------------------------------------------------------
>
> Key: LOGTOOL-105
> URL: https://issues.jboss.org/browse/LOGTOOL-105
> Project: Log Tool
> Issue Type: Feature Request
> Reporter: Sanne Grinovero
> Assignee: Sanne Grinovero
> Fix For: 2.1.0.Alpha1
>
>
> To allow projects using the JBoss Logging annotation processor to test latest Java 9 Jigsaw builds, we need to be able to workaround issue
> https://bugs.openjdk.java.net/browse/JDK-8152842
> I'm introducing an annotation processor option which will cause the generated source code to "forget" to mark the generated code with {{javax.annotation.Generated}}.
> -{{AskipGeneratedAnnotation=true}}
> The JMH annotation processor followed a similar path:
> https://bugs.openjdk.java.net/browse/CODETOOLS-7901643
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list