[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [m2e-users] Maven, Enunciate and debugging... | 
Yes I have m2e-wtp installed and I already have webXml defined as part of the maven-war-plugin.
The web.xml that is in the final assembly is correct.
Does that mean something is broken?  Should I really need yet another plugin in my POM for m2e to work correctly?
On Nov 6, 2012 1:01 PM, "Fred Bricon" <
fbricon@xxxxxxxxx> wrote:
assuming you installed m2e-wtp, you'll need to tell it to add extra resources to WTP's deployment assembly.Either make maven-war-plugin's <webXml> point to your gen'd web.xml or add the CLI built war directory as a web resource.
Since this is a m2e-specific workaround, you can define a m2e profile in your pom.xml like : 
<profile>
 <id>m2e</id>
 <activation>
   <property>
     <name>m2e.version</name>
   </property>
 </activation>
 <build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-war-plugin</artifactId>
      <version>2.3</version>
      <configuration>
        <webResources>
          <resource>
            <directory>target/<warName></directory>
            <includes><include>**/some.file.pattern</include></includes>
          </resource>
        </webResources>
      </configuration>
    </plugin>
  </plugins>
</build>
</profile>
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users