lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies (Commented) (JIRA)" <>
Subject [jira] [Commented] (SOLR-3344) POM dependencies not all there yet for solr-test-framework
Date Tue, 10 Apr 2012 15:09:18 GMT


Benson Margulies commented on SOLR-3344:

Here's how this plays out.

In my very own project, not in the lucene tree anywhere, I wrote a test class that uses the
base class for distributed tests. So I put the test-framework in as a <scope>test</scope>

It compiles fine, but gets NoClassDefFound for Jetty when I run it. Why? Well, jetty is listed
as an *optional* dependency of solr-core. So it is not transitive.

I think that it's reasonable for the test framework jar to list it as a required dependency,
since tests in there depend on it. However, there is an alternative (other than nothing):
list it again as an optional dependency in test-framework, just to give people a hint, and/or
change the javadoc for the BaseDistributedTestCase to note this requirement. 

> POM dependencies not all there yet for solr-test-framework
> ----------------------------------------------------------
>                 Key: SOLR-3344
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 4.0
>            Reporter: Benson Margulies
>         Attachments: 0001-Add-jetty-deps.patch
> The pom for solr-test-framework does not mention jetty, so a test case that doesn't get
jetty into it's classpath otherwise fails with:
> {noformat}
> java.lang.NoClassDefFoundError: org/eclipse/jetty/server/SessionIdManager
> {noformat}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message