Maven eclipselink JPA2标准API pom.xml配置是否已简化?
从我的pom:Maven eclipselink JPA2标准API pom.xml配置是否已简化?,maven,eclipselink,jpa-2.0,criteria-api,pom.xml,Maven,Eclipselink,Jpa 2.0,Criteria Api,Pom.xml,从我的pom: org.bsc.maven ,并报告了一个相关的(没有人关心@eclipselink)。对于eclipselink 2.2.0,它对我有效,无需指定处理器。编译器参数仍然是必需的。对于EclipseLink 2.2.0,它适用于我,无需指定处理器。编译器参数仍然需要。注意:我是插件的作者 为了简化配置,我建议您测试:。注意:我是插件的作者 为了简化配置,我建议您测试:。那么您仍然使用maven处理器插件吗?你会发布你的pom.xml配置吗?那么你仍然使用maven处理器插件吗?
org.bsc.maven
,并报告了一个相关的(没有人关心@eclipselink)。对于eclipselink 2.2.0,它对我有效,无需指定处理器。编译器参数仍然是必需的。对于EclipseLink 2.2.0,它适用于我,无需指定处理器。编译器参数仍然需要。注意:我是插件的作者
为了简化配置,我建议您测试:。注意:我是插件的作者
为了简化配置,我建议您测试:。那么您仍然使用maven处理器插件吗?你会发布你的pom.xml配置吗?那么你仍然使用maven处理器插件吗?是否发布pom.xml配置?另请参见
<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>generate-sources</phase>
<configuration>
<!-- Without this, the annotation processor complains about persistence.xml not being present and fail -->
<compilerArguments>-Aeclipselink.persistencexml=src/main/resources/META-INF/persistence.xml -Aeclipselink.persistenceunits=com.mysimpatico_MemoPlatform-database_nbm_1.0-SNAPSHOTPU</compilerArguments>
<!-- For an unknown reason, the annotation processor is not discovered, have to list it explicitly -->
<processors>
<processor>org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor</processor>
</processors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</plugin>