0

jar を Maven プロジェクトに追加して、modelgenMetamodel クラスの自動生成を有効にしようとしていますが、プロジェクトをコンパイルしようとすると、次のエラーが発生します。

Failed to execute goal org.bsc.maven:maven-processor-plugin:2.2.4:process (process) on project Project-per: Error executing: java.lang.RuntimeException: java.lang.SecurityException: class "org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProperties"'s signer information does not match signer information of other classes in the same package

私が判断できる限り、これは JAR 署名の不一致が原因である可能性が最も高いと判断できます。ただし、問題を解決する理由や方法がわかりません。

My POM (該当部分のみ)

<dependency>
    <groupId>org.eclipse.persistence</groupId>
    <artifactId>eclipselink</artifactId>
    <version>2.5.0-RC2</version>
    <scope>compile</scope>
</dependency>

<dependency>
    <groupId>org.eclipse.persistence</groupId>
    <artifactId>org.eclipse.persistence.nosql</artifactId>
    <version>2.5.0-RC2</version>
    <type>jar</type>
</dependency>

<dependency>
    <groupId>org.eclipse.persistence</groupId>
    <artifactId>org.eclipse.persistence.jpa.modelgen</artifactId>
    <version>2.4.2</version>
</dependency>

注意。modelgenを追加するだけで、nosqlとeclipselinkですべてが正常に機能します。

4

2 に答える 2

0

次の依存関係を pom に追加します

<pluginExecution>
                    <pluginExecutionFilter>
                      <groupId>org.bsc.maven</groupId>
                      <artifactId>maven-processor-plugin</artifactId>
                      <versionRange>[2.2.4,)</versionRange>
                      <goals>
                        <goal>process</goal>
                      </goals>
                    </pluginExecutionFilter>
                    <action>
                      <ignore />
                    </action>
</pluginExecution>
于 2016-04-18T17:14:45.230 に答える