警告诊断:警告:以下选项未 > 被任何处理器识别:'[openjpa.source, openjpa.metamodel]'
WARNING diagnostic: warning: The following options were not > recognized by any processor: '[openjpa.source, openjpa.metamodel]'
在 Open JPA 注释 processor/maven 插件上收到此警告?问题是什么?在另一个项目中,我没有收到此警告。
[WARNING] diagnostic: warning: The following options were not
recognized by any processor: '[openjpa.source, openjpa.metamodel]'
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>2.2.4</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<processors>
<processor>org.apache.openjpa.persistence.meta.AnnotationProcessor6</processor>
</processors>
<optionMap>
<openjpa.metamodel>true</openjpa.metamodel>
<openjpa.source>7</openjpa.source>
</optionMap>
<outputDirectory>target/generated-sources/metamodel</outputDirectory>
</configuration>
</execution>
</executions>
<dependencies>
<!-- OpenJPA -->
<dependency>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa</artifactId>
<version>${org.apache.openjpa.version}</version>
</dependency>
<dependency>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa-all</artifactId>
<version>${org.apache.openjpa.version}</version>
</dependency>
</dependencies>
</plugin>
我在没有要处理的实体时收到此警告 - 我只是忘记将 @Entity 注释添加到我的实体 class。
在 Open JPA 注释 processor/maven 插件上收到此警告?问题是什么?在另一个项目中,我没有收到此警告。
[WARNING] diagnostic: warning: The following options were not recognized by any processor: '[openjpa.source, openjpa.metamodel]'
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>2.2.4</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<processors>
<processor>org.apache.openjpa.persistence.meta.AnnotationProcessor6</processor>
</processors>
<optionMap>
<openjpa.metamodel>true</openjpa.metamodel>
<openjpa.source>7</openjpa.source>
</optionMap>
<outputDirectory>target/generated-sources/metamodel</outputDirectory>
</configuration>
</execution>
</executions>
<dependencies>
<!-- OpenJPA -->
<dependency>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa</artifactId>
<version>${org.apache.openjpa.version}</version>
</dependency>
<dependency>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa-all</artifactId>
<version>${org.apache.openjpa.version}</version>
</dependency>
</dependencies>
</plugin>
我在没有要处理的实体时收到此警告 - 我只是忘记将 @Entity 注释添加到我的实体 class。