Hi,

I would like to know if there is a way, when using the maven ear plugin, to disable the application.xml file creation.

I have a ear.pom file which is configured to package my project, in the same folder I provide my own application.xml + sun-application.xml but the plugin still generate an application.xml file in the target directory. If I use the <applicationXml> parameter in the pom.xml file. The plugin copies my file in the META-INF folder but still create his own application.xml file in the targer folder.

I was planning to make an exec:exec plugin call to delete the file build is done but I was wondering if there was a bug with the ear plugin / way to work this out.

Here is my project pom.xml and structure:

ear-folder
 -src
   -main
     -application
       META-INF
         -application.xml
         -MANIFEST.FM
         -sun-application.xml
   -java

...
  <build>
       <plugins>
           <plugin>
               <artifactId>maven-ear-plugin</artifactId>
               <configuration>
<!--applicationXml>${basedir}/src/conf/application.xml</applicationXml-->
                 <finalName>moxxi-presentation-ear</finalName>
                 <defaultLibBundleDir>lib/</defaultLibBundleDir>
                 <modules>
                   <webModule>
                     ...
                   </webModule>
                   <ejbModule>
                   ...
                   </ejbModule>
                 </modules>
               </configuration>
           </plugin>

       </plugins>
       <!--resources>
           <resource>
               <targetPath>META-INF/</targetPath>
               <directory>${basedir}/src/conf/</directory>
           </resource>
       </resources-->
   </build>
...


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to