Good day,
I have a maven build. When I run "mvn install" my unit tests run just
fine, as does the enhancer...
[INFO] --- openjpa-maven-plugin:1.1:enhance (enhancer) @ webdirectory ---
66 athome INFO [main] openjpa.Tool - Enhancer running on type
"ca.tnt.athome.Town".
190 athome INFO [main] openjpa.Tool - Enhancer running on type
"ca.tnt.athome.HouseListing".
But, when I run "mvn install tomcat:deploy", the enhancer plugin tries
to run again, and this...
[INFO] --- openjpa-maven-plugin:1.1:enhance (enhancer) @ webdirectory ---
An error occurred while attempting to determine the version of
"file:/home/trenta/LocalDocuments/development/java/athome/web-directory/target/classes/META-INF/persistence.xml".
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9.535 s
[INFO] Finished at: 2014-12-16T17:18:11-07:00
[INFO] Final Memory: 13M/218M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance (enhancer) on project
webdirectory: Execution enhancer of goal
org.codehaus.mojo:openjpa-maven-plugin:1.1:enhance failed:
org.apache.openjpa.persistence.PersistenceProductDerivation:java.lang.ClassCastException:
org.apache.xerces.parsers.XML11Configuration cannot be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration -> [Help 1]
I've been googling, and trying to debug this for awhile, and just don't
know what it is. Any ideas?
Maven plugin configuration below.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>openjpa-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<includes>**/entities/*.class</includes>
<excludes>**/entities/XML*.class</excludes>
<addDefaultConstructor>true</addDefaultConstructor>
<enforcePropertyRestrictions>true</enforcePropertyRestrictions>
</configuration>
<executions>
<execution>
<id>enhancer</id>
<phase>process-classes</phase>
<goals>
<goal>enhance</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa-all</artifactId>
<version>2.3.0</version>
</dependency>
</dependencies>
</plugin>
|