Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse does not include dependencies for maven-wtp
Eclipse does not include dependencies for maven-wtp [message #1711462] Fri, 16 October 2015 10:08 Go to next message
Mark Schmidt is currently offline Mark SchmidtFriend
Messages: 4
Registered: April 2015
Junior Member
Hello all,

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">
            <dependency-type>uses</dependency-type>
        </dependent-module>


However, the external dependency is not showing, it is not deployed and my server throws an exception:

java.lang.NoClassDefFoundError


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) and m2e-wtp (1.2.1.20150819-2220).

Does anyone know how to fix this issue?
Re: Eclipse does not include dependencies for maven-wtp [message #1711550 is a reply to message #1711462] Sat, 17 October 2015 04:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
It's best to ask on the WebTools forum.

On 16/10/2015 12:08 PM, Mark Schmidt wrote:
> Hello all,
>
> 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">
> <dependency-type>uses</dependency-type>
> </dependent-module>
>
>
> However, the external dependency is not showing, it is not deployed
> and my server throws an exception:
>
> java.lang.NoClassDefFoundError
>
> 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) and m2e-wtp (1.2.1.20150819-2220).
>
> Does anyone know how to fix this issue?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse does not include dependencies for maven-wtp [message #1711683 is a reply to message #1711550] Mon, 19 October 2015 09:20 Go to previous messageGo to next message
Mark Schmidt is currently offline Mark SchmidtFriend
Messages: 4
Registered: April 2015
Junior Member
Is it possible to move the thread?
Re: Eclipse does not include dependencies for maven-wtp [message #1711712 is a reply to message #1711683] Mon, 19 October 2015 12:18 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
I use Thunderbird and the best I can do with that is add another
newsgroup to the "CC" list. I don't think it's possible to move posts,
but I'm not sure...

On 19/10/2015 11:20 AM, Mark Schmidt wrote:
> Is it possible to move the thread?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:How to delete a comment node in the AST
Next Topic:why the plugins info is kept even the IDE is removed
Goto Forum:
  


Current Time: Wed Apr 24 23:00:27 GMT 2024

Powered by FUDForum. Page generated in 0.03321 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top