[hibernate-issues] [Hibernate-JIRA] Commented: (HV-457) Simplify annotation processor setup in IDEs by providing a shaded jar

Kevin Pollet (JIRA) noreply at atlassian.com
Mon Mar 21 10:08:08 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=40253#action_40253 ] 

Kevin Pollet commented on HV-457:
---------------------------------

I've created a shaded jar with the {{maven-shade-plugin}}. After that, I've configured an annotation processor with this shaded jar in Eclipse, Netbeans and IntelliJ. It seems that all works fine. 

To configure the annotation processor I've used the following steps:

* Eclipse: just add the shaded jar in the Processor path (by default the AP and project classpath are isolated).
* Netbeans: Remove {{Classpath for Compiling Sources}} from the Processor path and add the shaded jar.
* IntelliJ : Add the shaded jar path in the _Processor path_ option.


> Simplify annotation processor setup in IDEs by providing a shaded jar
> ---------------------------------------------------------------------
>
>                 Key: HV-457
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-457
>             Project: Hibernate Validator
>          Issue Type: Improvement
>          Components: annotation-processor
>            Reporter: Kevin Pollet
>
> When configuring the annotation processor in IDEs it's classpath has to be specified. In IDEs like Netbeans or IntelliJ the annotation processor can use the project classpath. But it's better if the classpath of project and annotation processor are isolated.
> In that case people shall setup manually the annotation processor classpath which has to contain at least HV and BV dependency. As Gunnar said it would be usefull to simplify the annotation processor configuration in IDEs by providing a shaded jar.

-- 
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list