Maven WTP webapp with maven-eclipse-plugin but without m2eclipse
- by chrsk
I use the eclipse:eclipse goal to generate an Eclipse Project environment. The deployment works fine. The goal creates the var classpath entries for all needed dependencies.
With m2eclipse there was the Maven Container which defines an export folder which was WEB-INF/lib for me. But i don't want to rely on m2eclipse so i don't want to use it anymore.
the class path entries which are generated by eclipse:eclipse goal don't have such a export folder.
While booting the servlet container with WTP it publishes all resources and classes except the libraries to the context.
Whats missing to publish the needed libs, or isn't that possible without m2eclipse integration?
IDE Configuration
Eclipse 3.5 JEE Galileo
Maven 2
m2eclipse
The maven-eclipse-plugin configuration
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.8</version>
<configuration>
<projectNameTemplate>opensaga-[artifactId]</projectNameTemplate>
<useProjectReferences>false</useProjectReferences>
<downloadSources>false</downloadSources>
<downloadJavadocs>false</downloadJavadocs>
<wtpmanifest>true</wtpmanifest>
<wtpversion>2.0</wtpversion>
<wtpapplicationxml>true</wtpapplicationxml>
<wtpContextName>opensaga-[artifactId]</wtpContextName>
<additionalProjectFacets>
<jst.java>5.0</jst.java>
<jst.web>2.3</jst.web>
</additionalProjectFacets>
</configuration>
</plugin>