On 2014-12-21 10:19 AM, Rick Curtis wrote:
Seems like maybe an openjpa maven plugin bug?
I would guess that the openjpa maven plugin class dependencies are
conflicting with the tomcat6 dependencies. Can you run mvn install followed
by mvn tomcat6:deploy?
Yes, that works, but I'm not sure I understand why it would. The
enhancer is ran both times.
The following reveals it's ran both times, so why would the one with
*install* make it have a dependency conflict?
On Sun, Dec 21, 2014 at 12:55 AM, Trenton D. Adams <tr...@trentonadams.ca>
wrote:
On 2014-12-16 8:34 PM, Trenton D. Adams wrote:
The following now works.
mvn install tomcat6:deploy
Correction, this works...
mvn tomcat6:deploy
As does...
mvn tomcat6:undeploy tomcat6:deploy
But this does not...
mvn install tomcat6:deploy
Which fails with the previously mentioned error of...
[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]
Any ideas on why an "install" would make it fail, even though install is
presumably a requirement of tomcat6:deploy anyhow?
Seems like maybe an openjpa maven plugin bug?