Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] maven-war-plugin with m2e

Hi,


I'm using maven to build a war file that uses my own MANIFEST file, configured as such -


            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifestFile>src/main/webapp/META-INF/MANIFEST.MF</manifestFile>
                    </archive>
                </configuration>
            </plugin>

This works fine when I'm running the build from the command line.


Problem is, when I run a maven update from within eclipse it seems to insist on adding/editing the Web-ContextPath header into my manifest file with the path being the same name as my bundle.  I would like to set it to just / but on maven update it will get changed to /<my-bundle-name>.  Again, only within eclipse.


Any ideas on how I can override this behaviour to use my own setting?


Thanks!



Back to the top