Hello all!
I am rebuilding an ear with maven-config-processor and the assembly
plugin. I use the config processor to rewrite the META-INF/
application.xml file. It usually works but today
java.sun.com cannot
be reached. This has a fatal effect on the xml-parser, it wines about
The markup declarations contained or pointed to by the document type
declaration must be well-formed.
When I remove this the doctype declaration the processor works.
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE
Application 1.2//EN" "
http://java.sun.com/j2ee/dtds/
application_1_2.dtd">
I really don't want to depend on internet access for my project to
build. Is there a way to disable the DOCTYPE parsing? I've tried this
parser features but no success:
<parserFeatures>
<parserFeature>
<name>
http://apache.org/xml/features/nonvalidating/load-
external-dtd</name>
<value>false</value>
</parserFeature>
<parserFeature>
<name>
http://xml.org/sax/features/validation</name>
<value>false</value>
</parserFeature>
<parserFeature>
<name>
http://xml.org/sax/features/external-general-
entities</name>
<value>false</value>
</parserFeature>
</parserFeatures>
I am using version 1.8 of the plugin.