add to your <configuration> element :

<archive>
   <manifest>
       <manifestFile>/path/to/MANIFEST.MF</manifestFile>
   </manifest>
</archive>

Works with the jar plugin so it should work with the ear plugin.

On 4/24/06, RobJac <[EMAIL PROTECTED]> wrote:
>
> I am trying to create an EAR using Maven2. I have placed a MANIFEST.MF file
> in my resources/META-INF folder. But this file is getting over written by
> Maven specific MANIFEST.MF when I execute mvn package for my ear pom xml.
> How can I avoid this and retain the MANIFEST.MF file under my
> resources/META_INF folder? Is there any addtional entry i need to give in my
> pm xml to avoid this. My ear pom xml looks like this
>
> <project xmlns="http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>         <modelVersion>4.0.0</modelVersion>
>         <groupId>Sample</groupId>
>         <artifactId>Sample</artifactId>
>         <packaging>ear</packaging>
>         <version>1.0</version>
>         <dependencies>
>             <dependency>
>               <groupId>Test</groupId>
>               <artifactId>Test</artifactId>
>               <version>1.0</version>
>               <type>jar</type>
>             </dependency>
>
>         </dependencies>
>         <build>
>             <directory>${basedir}</directory>
>             <finalName>${project.artifactId}</finalName>
>             <plugins>
>               <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-ear-plugin</artifactId>
>                 <configuration>
>                 <earSourceDirectory>${basedir}/src</earSourceDirectory>
>                   <generateApplicationXml>false</generateApplicationXml>
>                         <modules>
>                                 <javaModule>
>                                 <groupId>background_admin</groupId>
>                                 <artifactId>Test.jar</artifactId>
>                                 <bundleFileName>Test.jar</bundleFileName>
>                                 </javaModule>
>                         </modules>
>                 </configuration>
>               </plugin>
>         </build>
>
> </project>
> --
> View this message in context: 
> http://www.nabble.com/Prevent-over-writing-MANIFEST.MF-t1498438.html#a4061317
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to