We do this to generate a MANIFEST.MF for RAD/RSA when the WAR is built.
Your version will vary.

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-war-plugin</artifactId>
                    <version>2.0-beta-3-20051216.015813-3</version>
                    <configuration>
 
<warSourceDirectory>WebContent</warSourceDirectory>
 
<warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes>
                        <archive>
                            <manifest>
                                <addClasspath>true</addClasspath>
                                <classpathPrefix>lib/</classpathPrefix>
                            </manifest>
                        </archive>
                    </configuration>
                    <executions>
                        <execution>
                            <phase>package</phase>
                            <goals>
                                <goal>manifest</goal>
                            </goals>
                            <inherited>true</inherited>
                        </execution>
                    </executions>
                </plugin> 

-----Original Message-----
From: Bogdan Sulima [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 20, 2006 9:27 AM
To: [email protected]
Subject: [m2] WAR plugin does not generate MANIFEST.MF

Hi everyone,

i have some problems generating the MANIFEST.MF with WAR plugin. No
manifest file is generated :(

I have tried following versions of maven-war-plugin: 2.0-beta-2 and
2.0-beta-3.
IDE: IBM RSA.

Any ideas?

Thanks in advance!

Here is my pom:

<?xml version="1.0" encoding="UTF-8"?>
<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";>

        <modelVersion>4.0.0</modelVersion>
        <groupId>myCompany</groupId>
        <artifactId>Communication</artifactId>
        <packaging>war</packaging>
        <name>${pom.groupId}.${pom.artifactId}</name>
        <version>1.0</version>

        <build>
                <sourceDirectory>JavaSource</sourceDirectory>
        
<outputDirectory>WebContent/WEB-INF/classes</outputDirectory>
                <finalName>${pom.name}</finalName>
                <plugins>
                        <plugin>
        
<groupId>org.apache.maven.plugins</groupId>
        
<artifactId>maven-war-plugin</artifactId>
                                <extensions>true</extensions>
                                <configuration>
                                        <warSourceDirectory>
                                                ${basedir}/WebContent
                                        </warSourceDirectory>
                                        <webXml>
        
${basedir}/WebContent/WEB-INF/web.xml
                                        </webXml>
                                        <archive>
                                                <manifest>
        
<addClasspath>true</addClasspath>
                                                </manifest>
                                        </archive>
                                </configuration>
                        </plugin>
                </plugins>
        </build>

        <dependencies>
                <dependency>
                        <groupId>commons-logging</groupId>
                        <artifactId>commons-logging</artifactId>
                        <version>1.0.4</version>
                </dependency>
        </dependencies>
</project>

Best regards

Bogdan Sulima.

---------------------------------------------------------------------
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