You'll probably need to dig into the ear plugin code a bit and see if
this is actually a bug or simply a misconfiguration on your part.
If you find its a bug (and fix it), please contribute your changes
back via JIRA.
Wayne
On 11/2/07, Jonathan Richard <[EMAIL PROTECTED]> wrote:
> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]