Apache Lucene open-source search software
SOLR-5173: Solr-core's Maven configuration includes test-only Hadoop dependencies as indirect compile-time dependencies
Steven Rowe918053d64670
diff --git a/dev-tools/maven/solr/core/src/java/pom.xml.template b/dev-tools/maven/solr/core/src/java/pom.xml.templateindex 359158ca76c..f5a408afe9c 100644--- a/dev-tools/maven/solr/core/src/java/pom.xml.template+++ b/dev-tools/maven/solr/core/src/java/pom.xml.template@@ -165,6 +165,10 @@<groupId>javax.servlet</groupId><artifactId>servlet-api</artifactId></exclusion>+ <exclusion>+ <groupId>javax.servlet.jsp</groupId>+ <artifactId>jsp-api</artifactId>+ </exclusion><exclusion><groupId>org.apache.commons</groupId><artifactId>commons-math</artifactId>@@ -172,7 +176,11 @@<exclusion><groupId>xmlenc</groupId><artifactId>xmlenc</artifactId>- </exclusion>+ </exclusion>+ <exclusion>+ <groupId>commons-configuration</groupId>+ <artifactId>commons-configuration</artifactId>+ </exclusion><exclusion><groupId>commons-httpclient</groupId><artifactId>commons-httpclient</artifactId>@@ -193,6 +201,14 @@<groupId>com.sun.jersey</groupId><artifactId>jersey-server</artifactId></exclusion>+ <exclusion>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jetty</artifactId>+ </exclusion>+ <exclusion>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jetty-util</artifactId>+ </exclusion><exclusion><groupId>tomcat</groupId><artifactId>jasper-compiler</artifactId>@@ -251,6 +267,10 @@<groupId>javax.servlet</groupId><artifactId>servlet-api</artifactId></exclusion>+ <exclusion>+ <groupId>javax.servlet.jsp</groupId>+ <artifactId>jsp-api</artifactId>+ </exclusion><exclusion><groupId>com.sun.jersey</groupId><artifactId>jersey-core</artifactId>@@ -271,6 +291,14 @@<groupId>org.codehaus.jackson</groupId><artifactId>jackson-mapper-asl</artifactId></exclusion>+ <exclusion>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jetty</artifactId>+ </exclusion>+ <exclusion>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jetty-util</artifactId>+ </exclusion><exclusion><groupId>tomcat</groupId><artifactId>jasper-runtime</artifactId>@@ -322,17 +350,6 @@<artifactId>jetty-webapp</artifactId><optional>true</optional> <!-- Only used for tests and one command-line utility: JettySolrRunner --></dependency>- <dependency>- <groupId>org.codehaus.woodstox</groupId>- <artifactId>wstx-asl</artifactId>- <scope>runtime</scope>- <exclusions>- <exclusion>- <groupId>stax</groupId>- <artifactId>stax-api</artifactId>- </exclusion>- </exclusions>- </dependency><dependency><groupId>javax.servlet</groupId><artifactId>servlet-api</artifactId>diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 4824132980e..b0f62badcec 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -176,6 +176,9 @@ Other Changes* The routing parameter "shard.keys" is deprecated as part of SOLR-5017 .The new parameter name is '_route_' .The old parameter should continue to work for another release (Noble Paul)+* SOLR-5173: Solr-core's Maven configuration includes test-only Hadoop+ dependencies as indirect compile-time dependencies.+ (Chris Collins, Steve Rowe)================== 4.4.0 ==================diff --git a/solr/core/ivy.xml b/solr/core/ivy.xmlindex 1138eff2663..cbe7d5cae73 100644--- a/solr/core/ivy.xml+++ b/solr/core/ivy.xml@@ -25,9 +25,9 @@<configurations><!-- artifacts in the "compile" and "compile.hadoop" configurations will go into solr/core/lib/ --><conf name="compile" transitive="false"/>- <conf name="test" transitive="false"/><conf name="compile.hadoop" transitive="false"/><!-- artifacts in the "test" and "test.DfsMiniCluster" configuration will go into solr/core/test-lib/ -->+ <conf name="test" transitive="false"/><conf name="test.DfsMiniCluster" transitive="false"/></configurations>@@ -49,6 +49,11 @@<dependency org="org.objenesis" name="objenesis" rev="1.2" conf="test->*"/><dependency org="org.apache.hadoop" name="hadoop-common" rev="&hadoop.version;" conf="compile.hadoop->*"/>+ <!--+ hadoop-hdfs, hadoop-annotations and hadoop-auth are runtime dependencies,+ so even though they are not compile-time dependencies, they are included+ here as such so that they are included in the runtime distribution.+ --><dependency org="org.apache.hadoop" name="hadoop-hdfs" rev="&hadoop.version;" conf="compile.hadoop->*"/><dependency org="org.apache.hadoop" name="hadoop-annotations" rev="&hadoop.version;" conf="compile.hadoop->*"/><dependency org="org.apache.hadoop" name="hadoop-auth" rev="&hadoop.version;" conf="compile.hadoop->*"/>