Skip to main content

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

Do you have a sample project I could take a look at?

On Thu, Jun 9, 2016 at 6:59 PM, Randy Toor <rtoor316@xxxxxxxxxxx> wrote:

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!



_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users



--
"Have you tried turning it off and on again" - The IT Crowd
And if that fails, then http://goo.gl/tnBgH5

Back to the top