[jboss-jira] [JBoss JIRA] Commented: (LOGTOOL-8) Exception create methods fail to compile if the exception type appears in source code (as opposed to being on the class path)
James Perkins (JIRA)
jira-events at lists.jboss.org
Sun Jan 23 16:54:49 EST 2011
[ https://issues.jboss.org/browse/LOGTOOL-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577337#comment-12577337 ]
James Perkins commented on LOGTOOL-8:
-------------------------------------
You can temporarily work around this using the following maven build section. The key is processing the annotations when after the project has been compiled.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>2.0.0</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>process-classes</phase>
<configuration>
<outputDirectory>${project.build.directory}/generated-sources/annotations</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
> Exception create methods fail to compile if the exception type appears in source code (as opposed to being on the class path)
> -----------------------------------------------------------------------------------------------------------------------------
>
> Key: LOGTOOL-8
> URL: https://issues.jboss.org/browse/LOGTOOL-8
> Project: Log Tool
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: David Lloyd
> Assignee: James Perkins
>
> For methods which construct an exception, if the returned exception type is part of the module being compiled (as opposed to being on the compiled class path), processing fails with this exception:
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) on project invocation-api: Compilation failure
> [ERROR] /home/david/src/java/rws/invokable-container/api/src/main/java/org/jboss/invocation/InvocationLogger.java:[38,24] Return type org.jboss.invocation.InvocationException for method invocationException(java.lang.Throwable) is not in the classpath
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list