jboss-app.xml自动生成MAVEN EAR插件

时间:2012-02-02 02:13:28

标签: maven maven-3 maven-ear-plugin

我想从DOCTYPE删除jboss-app.xml行。我不希望在自动生成的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>

0 个答案:

没有答案