Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Maven, Enunciate and debugging...

It's not Maven that can't find it.  I'm building and running the app in our CD pipeline and in ... <cough>netbeans<cough>.  It is only an issue when attempting to run/debug within the eclipse environment.  

The generated web.xml makes it into the WAR as well as the exploded war folder in the maven target directory. The issue is that it seems Eclipse is not using the web.xml in the final assembly when debugging/running but instead is using the web.xml from the src/main/webapp/WEB-INF folder.

I'm hoping there is a way to tell Eclipse to use it in favor of the src version.


On Thu, Nov 1, 2012 at 10:16 AM, Greg Thomas <greg.d.thomas@xxxxxxxxx> wrote:
On 1 November 2012 16:05, Jeff <predatorvi@xxxxxxxxx> wrote:
> Does anyone use Eclipse Indigo + Maven and Enunciate?  If so, are you able
> to run/debug the web app?
>
> I recently retrofitted Enunciate into a project and Eclipse doesn't seem to
> recognize the web.xml file that Enunciate generates as part of the Maven
> build and so the service won't load.
>
> Anyone know how to get around this?

I've never used (or indeed heard of!) Enunciate. However, I suspect
you'll need to tell Maven where the new web.xml can be found;
something like ...

<build>
        <plugins>
                <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-war-plugin</artifactId>
                        <version>2.3</version>
                        <configuration>
                                <webXml>${project.build.directory}/enunciate-generated-web.xml</webXml>
                        </configuration>
                </plugin>
        </plugins>
</build>

might do it.

Greg
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users



--
Jeff Vincent
predatorvi@xxxxxxxxx
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox !! 


Back to the top