openjpa-maven-plugin fails to create SQL for entities which contain enums
-------------------------------------------------------------------------
Key: OPENJPA-2100
URL: https://issues.apache.org/jira/browse/OPENJPA-2100
Project: OpenJPA
Issue Type: Bug
Components: build / infrastructure
Affects Versions: 2.2.0
Reporter: Mark Struberg
Assignee: Mark Struberg
Fix For: 2.2.0
This bug seems to have been introduced while cleaning up some
openjpa-maven-plugin compiler warnings in r1091279 / OPENJPA-1934.
When you try to invoke the MappingTool with mvn openjpa:sql you will get the
following failure:
[ERROR] Failed to execute goal
org.apache.openjpa:openjpa-maven-plugin:2.2.0-SNAPSHOT:sql (mappingtool) on
project enhance: Execution mappingtool of goal
org.apache.openjpa:openjpa-maven-plugin:2.2.0-SNAPSHOT:sql failed: Type "class
org.apache.openjpa.tools.maven.testentity.TestEntity$SampleEnum" loaded by
java.net.URLClassLoader@49c1e1e7 does not have persistence metadata. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.apache.openjpa:openjpa-maven-plugin:2.2.0-SNAPSHOT:sql (mappingtool) on
project enhance: Execution mappingtool of goal
org.apache.openjpa:openjpa-maven-plugin:2.2.0-SNAPSHOT:sql failed: Type "class
org.apache.openjpa.tools.maven.testentity.TestEntity$SampleEnum" loaded by
java.net.URLClassLoader@49c1e1e7 does not have persistence metadata.
...
Caused by: <openjpa-2.2.0-tiss-1-r422266:1213958M fatal user error>
org.apache.openjpa.util.MetaDataException: Type "class
at.ac.tuwien.tiss.mobility.be.common.entities.Deadline$Type" loaded by
java.net.URLClassLoader@5054c2b8 does not have persistence metadata.
at
org.apache.openjpa.jdbc.meta.MappingTool.getMapping(MappingTool.java:688)
at
org.apache.openjpa.jdbc.meta.MappingTool.buildSchema(MappingTool.java:754)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira