Actually, mine has the same behaviour in the target/m2e/web-sources/META-INF 
folder.  The problem is the source manifest file gets changed at 
src/main/webapp/META-INF/MANIFEST.MF.



________________________________
From: m2e-users-boun...@eclipse.org <m2e-users-boun...@eclipse.org> on behalf 
of Randy Toor <rtoor...@hotmail.com>
Sent: June 13, 2016 12:42 PM
To: Maven Integration for Eclipse users mailing list
Subject: Re: [m2e-users] maven-war-plugin with m2e


Hmm, which version of eclipse/maven/m2e?



________________________________
From: m2e-users-boun...@eclipse.org <m2e-users-boun...@eclipse.org> on behalf 
of Fred Bricon <fbri...@gmail.com>
Sent: June 13, 2016 12:35 PM
To: Maven Integration for Eclipse users mailing list
Subject: Re: [m2e-users] maven-war-plugin with m2e

I can't reproduce the issue with your sample project. This is the generated 
manifest in target/m2e-wp/web-resources/META-INF:

Manifest-Version: 1.0
Bundle-SymbolicName: com.test.sample
Built-By: fbricon
Bundle-ManifestVersion: 2
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Import-Package: javax.el,javax.servlet,javax.servlet.http
Export-Package: com.test.sample
Bundle-Name: Sample Web Service
Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: WEB-INF/classes/
Web-ContextPath: /
Build-Jdk: 1.8.0_91
Created-By: Maven Integration for Eclipse

On Maven > Update Project Configuration, the file is still containing the same 
elements


On Mon, Jun 13, 2016 at 2:14 PM, Randy Toor 
<rtoor...@hotmail.com<mailto:rtoor...@hotmail.com>> wrote:

Attached sample.  You can see I have already in the manifest file an entry for 
Web-ContextPath.  I also have the context root in the web project settings set 
to /.  When I run a maven update from inside eclipse the Web-ContextPath gets 
changed.


Thanks!


________________________________
From: m2e-users-boun...@eclipse.org<mailto:m2e-users-boun...@eclipse.org> 
<m2e-users-boun...@eclipse.org<mailto:m2e-users-boun...@eclipse.org>> on behalf 
of Fred Bricon <fbri...@gmail.com<mailto:fbri...@gmail.com>>
Sent: June 10, 2016 7:09 AM
To: Maven Integration for Eclipse users mailing list
Subject: 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 
<rtoor...@hotmail.com<mailto:rtoor...@hotmail.com>> 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@eclipse.org<mailto:m2e-users@eclipse.org>
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

_______________________________________________
m2e-users mailing list
m2e-users@eclipse.org<mailto:m2e-users@eclipse.org>
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
_______________________________________________
m2e-users mailing list
m2e-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to