Maven WTP webapp with maven-eclipse-plugin but without m2eclipse
Posted
by chrsk
on Stack Overflow
See other posts from Stack Overflow
or by chrsk
Published on 2010-04-26T13:12:27Z
Indexed on
2010/04/26
13:13 UTC
Read the original article
Hit count: 698
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>
© Stack Overflow or respective owner