I want to remove the DOCTYPE line from jboss-app.xml. I don't want this line to be generated in my auto generated jboss-app.xml
<DOCTYPE jboss-app PUBLIC "-//JBoss//DTD Java EE Application 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd"> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <configuration> <defaultLibBundleDir>/APP-INF/lib</defaultLibBundleDir> <version>5</version> <modules> <ejbModule> <groupId>test-project</groupId> <artifactId>test-ejb</artifactId> <bundleFileName>test-ejb-0.0.1-SNAPSHOT.jar</bundleFileName> <bundleDir>/</bundleDir> </ejbModule> </modules> <archive> <manifest> <addClasspath>false</addClasspath> </manifest> </archive> <jboss> <version>5</version> <loader-repository>com.test:archive=com.test.services</loader-repository> </jboss> </configuration> </plugin> *THE REASON WHY I WANT TO DO THIS as followed. * The reason is. Jboss accepts the jboss-app.xml file without DOCTYPE tag. I created one webservice and i am applying <version>5</version> and we are using Jboss 5.1.2EA version. And it's not able to generate WSDL if i apply DOCTYPE tag over there. If i remove that tag from jboss-app.xml it's working all right... And another reason is if we change the Jboss version from 5.1.2EA to 6.0EA at that time also we have to change all our projects to apply version change in the POM file. which is not practically all right