问题:

JPA 同一个项目persistent.xml有多个PersistentUnit 时报错

Fatal error compiling: java.lang.RuntimeException: javax.annotation.processing.FilerException: Attempt to recreate a file for type****

 

 

解决:

persistentUnit 中增加

<exclude-unlisted-classes>true</exclude-unlisted-classes>

 

 

参考:

http://stackoverflow.com/questions/8938889/filerexception-when-building-java-ee-6-project

 

发表评论

电子邮件地址不会被公开。