Apache Lucene open-source search software
SOLR-3344: Maven configuration: Add Jetty dependencies to the Solr test-framework POM template, so that those dependencies are transitively included when the Solr test-framework is used externally; remove the Jetty dependencies from the dataimporthandler and clustering Solr contribs' POM templates. The optional Jetty dependencies in the solr-core module's POM template are left as-is, to facilitate JettySolrRunner's use as a cmdline utility.
Steven Rowe33cdb0c9a98f
diff --git a/dev-tools/maven/solr/contrib/clustering/pom.xml.template b/dev-tools/maven/solr/contrib/clustering/pom.xml.templateindex bcd51e9d8b0..4d436432c37 100644--- a/dev-tools/maven/solr/contrib/clustering/pom.xml.template+++ b/dev-tools/maven/solr/contrib/clustering/pom.xml.template@@ -93,21 +93,6 @@</exclusion></exclusions></dependency>- <dependency>- <groupId>org.eclipse.jetty</groupId>- <artifactId>jetty-server</artifactId>- <scope>test</scope>- </dependency>- <dependency>- <groupId>org.eclipse.jetty</groupId>- <artifactId>jetty-servlet</artifactId>- <scope>test</scope>- </dependency>- <dependency>- <groupId>org.eclipse.jetty</groupId>- <artifactId>jetty-util</artifactId>- <scope>test</scope>- </dependency></dependencies><build><directory>${build-directory}</directory>diff --git a/dev-tools/maven/solr/contrib/dataimporthandler/pom.xml.template b/dev-tools/maven/solr/contrib/dataimporthandler/pom.xml.templateindex f0e0369f6de..808568cfc3f 100644--- a/dev-tools/maven/solr/contrib/dataimporthandler/pom.xml.template+++ b/dev-tools/maven/solr/contrib/dataimporthandler/pom.xml.template@@ -72,21 +72,6 @@<artifactId>easymock</artifactId><scope>test</scope></dependency>- <dependency>- <groupId>org.eclipse.jetty</groupId>- <artifactId>jetty-server</artifactId>- <scope>test</scope>- </dependency>- <dependency>- <groupId>org.eclipse.jetty</groupId>- <artifactId>jetty-servlet</artifactId>- <scope>test</scope>- </dependency>- <dependency>- <groupId>org.eclipse.jetty</groupId>- <artifactId>jetty-util</artifactId>- <scope>test</scope>- </dependency></dependencies><build><directory>${build-directory}</directory>diff --git a/dev-tools/maven/solr/test-framework/pom.xml.template b/dev-tools/maven/solr/test-framework/pom.xml.templateindex 45171b150e5..e6e598698d0 100644--- a/dev-tools/maven/solr/test-framework/pom.xml.template+++ b/dev-tools/maven/solr/test-framework/pom.xml.template@@ -63,6 +63,20 @@<groupId>junit</groupId><artifactId>junit</artifactId></dependency>+ <!-- If your tests don't use BaseDistributedSearchTestCase or SolrJettyTestBase,+ you can exclude the three Jetty dependencies below. -->+ <dependency>+ <groupId>org.eclipse.jetty</groupId>+ <artifactId>jetty-server</artifactId>+ </dependency>+ <dependency>+ <groupId>org.eclipse.jetty</groupId>+ <artifactId>jetty-util</artifactId>+ </dependency>+ <dependency>+ <groupId>org.eclipse.jetty</groupId>+ <artifactId>jetty-webapp</artifactId>+ </dependency></dependencies><build><directory>${build-directory}</directory>