You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jonathan Richard <jo...@mail.mcgill.ca> on 2007/11/02 16:37:17 UTC
disabling application.xml generation
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: disabling application.xml generation
Posted by Saritha SV <sa...@gmail.com>.
Hi
You can try giving the full path in applicationXml tag like :
<applicationXml>${basedir}/src/main/application/META-INF/application.xml</applicationXml>
along with Maven-ear-plugin and then for each module specify like :
<javaModule>
<groupId>com.tset</groupId>
<artifactId>core-test</artifactId>
<bundleDir>/</bundleDir>
<includeInApplicationXml>true</includeInApplicationXml>
</javaModule>
let us know .
Thanks
Saritha
On 11/2/07, Jonathan Richard <jo...@mail.mcgill.ca> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: disabling application.xml generation
Posted by Wayne Fay <wa...@gmail.com>.
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 <jo...@mail.mcgill.ca> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org