Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324886 - jetty-maven-plugin does not load dependencies in second instance within reactor build
Summary: jetty-maven-plugin does not load dependencies in second instance within react...
Status: CLOSED WORKSFORME
Alias: None
Product: Jetty
Classification: RT
Component: other (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 7.1.x   Edit
Assignee: Jesse McConnell CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-09 14:36 EDT by Josh Hyde CLA
Modified: 2011-01-11 15:31 EST (History)
1 user (show)

See Also:


Attachments
A Maven project that demonstrates the issue with jetty-maven-plugin (11.45 KB, application/x-zip-compressed)
2010-09-09 14:36 EDT, Josh Hyde CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Hyde CLA 2010-09-09 14:36:20 EDT
Build Identifier: SpringSource Tool Suite 2.3.2.RELEASE

If there are two projects within a Maven reactor build that reference the 8.0.0.M1 version of jetty-maven-plugin and the downstream project defines dependencies for the plugin that the upstream project *does not*, then the downstream project's instance of the plugin will fail to find the classes on its classpath.

An example Maven project will be attached shortly.

Reproducible: Always

Steps to Reproduce:
1. From the attached jetty-classloader-test-reactor-build project, run "mvn clean verify".  The second project, when built, will throw a NoClassDefFoundError, saying it cannot find the HSQLDB JDBC driver.
2. From the same project, run "mvn clean verify -Dfixed".  The exception should not be thrown because the "fixed" property activates a profile in the upstream project that includes the HSQLDB driver in its dependencies.
Comment 1 Josh Hyde CLA 2010-09-09 14:36:52 EDT
Created attachment 178544 [details]
A Maven project that demonstrates the issue with jetty-maven-plugin
Comment 2 Jesse McConnell CLA 2011-01-11 15:31:50 EST
I suspect this is a maven version issue since we don't really deal with much at that level in the jetty maven plugin itself.  At least not for the dependencies as supplied to the plugin itself via maven declarations.

either way, I tried with this maven 3.0.2 and both projects appeared to build and run correctly.

you can reopen if you have further issues