|Eclipse does not include dependencies for maven-wtp [message #1711917]
||Tue, 20 October 2015 09:58
| Mark Schmidt
Registered: April 2015
I have been trying for quite some time now to get eclipse to work with a maven-based wtp2.0 project. The problem is *always* that some required dependencies are not deployed to the tomcat server.
Just to clarify: If I use "mvn package" to create a war, then everything works and all dependencies are included. The problem seems to be with eclipse in this case.
Essentially I have a "server" maven-wtp which has a "core" dependency which is a maven project I am also developing using eclipse. In addition the project depends on another external jar which I obtain from mvnrepository.com. This is noted as a
dependency in the project's pom.xml.
I took a look at ".settings/org.eclipse.wst.common.component" which supposedly stores dependencies in eclipse, it shows my core module:
<dependent-module archiveName="core-1.0.0.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/core/core">
However, the external dependency is not showing, it is not deployed and my server throws an exception:
Just to clarify: the maven dependencies *do* show up in the "Deployment Assembly" section and are supposed to be deployed to "WEB-INF/lib"
I am using Mars.1 Release (4.5.1), the problem occurs with and without using m2e-wtp (188.8.131.5250819-2220).
Does anyone know how to fix this issue?
[Updated on: Tue, 20 October 2015 15:42]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01692 seconds