Description
I get the following error when building the camel-jpa component in PNC:
[ERROR] Failed to execute goal org.apache.openjpa:openjpa-maven-plugin:2.4.2:test-enhance (test enhancer) on project camel-jpa: Execution test enhancer of goal org.apache.openjpa:openjpa-maven-plugin:2.4.2:test-enhance failed: org.apache.openjpa.persistence.PersistenceProductDerivation:java.io.IOException: org.xml.sax.SAXException: file:/tmp/camel-2.20.0/components/camel-jpa/target/test-classes/META-INF/persistence.xml [Location: Line: 24, C: 115]: org.xml.sax.SAXParseException; systemId: file:/tmp/camel-2.20.0/components/camel-jpa/target/test-classes/META-INF/persistence.xml; lineNumber: 24; columnNumber: 115; cvc-elt.1: Cannot find the declaration of element 'persistence'. -> [Help 1]
I assume this is because the build is run in a firewalled environment which doesn't have access to the external xsd files. This only seems to affect the test-enhance goal of the openjpa-maven-plugin
Workaround: skip camel-jpa component