[
https://issues.jboss.org/browse/ISPN-1521?page=com.atlassian.jira.plugin....
]
Tristan Tarrant commented on ISPN-1521:
---------------------------------------
Davide, scope provided should be fine, as the rhq-pluginAnnotations classes have
RetentionPolicy.CLASS. As the JavaDoc says:
bq. Annotations are to be recorded in the class file by the compiler but need not be
retained by the VM at run time.
javac issues a warning when referencing a jar with these annotations, in the following
form:
{noformat}
org/infinispan/manager/DefaultCacheManager.class(org/infinispan/manager:DefaultCacheManager.class):
warning: Cannot find annotation method 'displayName()' in type
'org.rhq.helpers.pluginAnnotations.agent.Metric': class file for
org.rhq.helpers.pluginAnnotations.agent.Metric not found
org/infinispan/manager/DefaultCacheManager.class(org/infinispan/manager:DefaultCacheManager.class):
warning: Cannot find annotation method 'dataType()' in type
'org.rhq.helpers.pluginAnnotations.agent.Metric'
{noformat}
These warnings should be harmless, but it appears that Maven's compiler plugin chokes
on them and treats them as errors, probably because of
http://jira.codehaus.org/browse/MCOMPILER-59
which is marked as resolved in Maven 2.1.0 (I get the error with Maven 3.0.3). I'll
talk with John Casey about it.
The workaround at the moment is to add the rhq-pluginAnnotations dependency with scope
provided to your project which depends on infinispan-core.
Forget rhq-pluginAnnotations dependency in infinispan-core
-----------------------------------------------------------
Key: ISPN-1521
URL:
https://issues.jboss.org/browse/ISPN-1521
Project: Infinispan
Issue Type: Bug
Components: Build process
Affects Versions: 5.1.0.BETA4
Reporter: Davide Di Somma
Assignee: Tristan Tarrant
It has been forgotten org.rhq.helpers:rhq-pluginAnnotations dependency in infinispan-core
pom.xml
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira