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



Reply via email to