[
http://opensource.atlassian.com/projects/hibernate/browse/HV-498?page=com...
]
Hardy Ferentschik commented on HV-498:
--------------------------------------
I checked out your test project and I get the same error. I need to investigate closer.
One comment though, the recommended setup for the annotation processor and maven is via
_maven-processor-plugin_. Something like this:
{code}
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>${project.build.java.target}</source>
<target>${project.build.java.target}</target>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>1.3.7</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>process-sources</phase>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator-annotation-processor</artifactId>
<version>4.2.0.Final</version>
<scope>compile</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator-annotation-processor</artifactId>
<version>4.2.0.Final</version>
</dependency>
</dependencies>
...
</project>
{code}
See also:
http://in.relation.to/17636.lace
When adding annotations processor compiler get's broken
-------------------------------------------------------
Key: HV-498
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-498
Project: Hibernate Validator
Issue Type: Bug
Components: annotation-processor
Affects Versions: 4.2.0.Final
Environment: sun jdk 1.6.0_26
maven 3
Reporter: David J. M. Karlsen
Fix For: 4.3.0.next
Attachments: test.zip
I get:
{noformat}
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/home/et2448/projects/payment/pays/pays-core/pays-core-service/src/test/java/com/edb/payment/pays/core/test/PaysTestContext.java:[58,44]
incompatible types
found : com.edb.payment.pays.core.model.channel.Channel
required: com.edb.payment.pays.core.model.channel.Channel
[INFO] 1 error
{noformat}
The declaration at 58 is:
{code}
Channel paymentChannel() default
Channel.INT;
{code}
and fully legal.
Everything works OK if not adding the annotations processor.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira