You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by to...@gi-de.com on 2010/11/22 10:26:08 UTC

how to add vendor (SAP) specific Manifest to war ?

Hi, 

for a *:war running on SAP Netweaver, there´s a file needed called 
"SAP_MANIFEST.MF", parallel to MANIFEST.MF:

myproject-1.0-SNAPSHOT.war
 |-- META-INF
 |   |-- MANIFEST.MF
        |-- SAP_MANIFEST.MF

I thought I could simply configure this file somewhere at the <archive> 
configuration, but I didn´t found a solution.
If i configure a <manifestFile/> entry, the SAP_MANIFEST.MF will be merged 
into MANIFEST.MF, 
but no additional file will be added.

So I ended up with the following:

-- src
     `-- main
         |-- webResources
         |   `-- META-INF
         |       `-- SAP_MANIFEST.MF

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
 
        <configuration>
                <webResources>
                        <resource>
                                <!-- this is relative to the pom.xml 
directory -->
 <directory>src/main/webResources</directory>
                        </resource>
                        </webResources>
         </configuration>
</plugin>

=> Is that the way to go ?

Thanx, Torsten




Re: how to add vendor (SAP) specific Manifest to war ?

Posted by Jesse Farinacci <ji...@gmail.com>.
Hi Torsten,

On Mon, Nov 22, 2010 at 4:26 AM,  <to...@gi-de.com> wrote:
>
> -- src
>     `-- main
>         |-- webResources
>         |   `-- META-INF
>         |       `-- SAP_MANIFEST.MF
>
> <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-war-plugin</artifactId>
>        <configuration>
>                <webResources>
>                        <resource>
>                                <!-- this is relative to the pom.xml
> directory -->
>  <directory>src/main/webResources</directory>
>                        </resource>
>                        </webResources>
>         </configuration>
> </plugin>

Why not just put the additional resource into
src/main/webapp/META-INF/SAP-MANIFEST.MF ? Check out
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#warSourceDirectory
which describes the default location for additional resources.

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org