I get: diagnostic error: javax.annotation.processing.FilerException: Attempt to recreate a file for type
for:
<compilerArguments>-Aeclipselink.persistencexml=src/main/resources/META-INF/persistence.xml -Aeclipselink.persistenceunits=com.mysimpatico_MemoPlatform-database_nbm_1.0-SNAPSHOTPU,com.mysimpatico_inmemory_persistence_nbm_1.0-SNAPSHOTPU</compilerArguments开发者_如何学编程>
I'm trying to have both a temporary (in-memory) and a permanent db, with the same schema.
Please refer to this question.
Build the project with the previous configuration, i.e. with only one persistence unit to generate the metamodel classes. Then add the 2nd persitence unit to the persistence.xml and the following to the pom.xml:
<compilerArguments> -Aeclipselink.persistenceunit=com.mysimpatico_MemoPlatform-database_nbm_1.0-SNAPSHOTPU </compilerArguments> (the name of 1 persistenceunit)
精彩评论