Apache Nutch is an extensible and scalable web crawler
NUTCH-2843 Duplicate declaration of dependencies in ivy.xml - remove duplicated dependencies: commons-collections4 and httpclient - move Maven POM creation into separate target to reproduce issue
Sebastian Nagel59f7865e9594
diff --git a/build.xml b/build.xmlindex 465b79a34..0e1e42f7c 100644--- a/build.xml+++ b/build.xml@@ -305,73 +305,61 @@</jar></target>+ <target name="makepom" depends="" description="--> generate pom file for deployment">+ <!-- generate a pom file -->+ <ivy:makepom ivyfile="${ivy.file}" pomfile="${basedir}/pom.xml" templatefile="ivy/mvn.template">+ <mapping conf="default" scope="compile"/>+ <mapping conf="runtime" scope="runtime"/>+ </ivy:makepom>+ </target>+<!-- ================================================================== --><!-- Deploy to Apache Nexus --><!-- ================================================================== --><!-- --><!-- ================================================================== -->- <target name="deploy" depends="release" description="--> deploy to Apache Nexus">-- <!-- generate a pom file -->- <ivy:makepom ivyfile="${ivy.file}" pomfile="${basedir}/pom.xml" templatefile="ivy/mvn.template">- <mapping conf="default" scope="compile"/>- <mapping conf="runtime" scope="runtime"/>- </ivy:makepom>-- <!-- sign and deploy the main artifact -->- <artifact:mvn mavenHome="${env.MVN_HOME}" fork="true" failonerror="true">- <jvmarg value="-Dmaven.multiModuleProjectDirectory=false" />- <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.6:sign-and-deploy-file" />- <arg value="-Durl=${maven-repository-url}" />- <arg value="-DrepositoryId=${maven-repository-id}" />- <arg value="-DpomFile=pom.xml" />- <arg value="-Dfile=${maven-jar}" />- <arg value="-Papache-release" />- </artifact:mvn>-- <!-- sign and deploy the sources artifact -->- <artifact:mvn mavenHome="${env.MVN_HOME}" fork="true" failonerror="true">- <jvmarg value="-Dmaven.multiModuleProjectDirectory=false" />- <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.6:sign-and-deploy-file" />- <arg value="-Durl=${maven-repository-url}" />- <arg value="-DrepositoryId=${maven-repository-id}" />- <arg value="-DpomFile=pom.xml" />- <arg value="-Dfile=${maven-sources-jar}" />- <arg value="-Dclassifier=sources" />- <arg value="-Papache-release" />- </artifact:mvn>-- <!-- sign and deploy the javadoc artifact -->- <artifact:mvn mavenHome="${env.MVN_HOME}" fork="true" failonerror="true">- <jvmarg value="-Dmaven.multiModuleProjectDirectory=false" />- <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.6:sign-and-deploy-file" />- <arg value="-Durl=${maven-repository-url}" />- <arg value="-DrepositoryId=${maven-repository-id}" />- <arg value="-DpomFile=pom.xml" />- <arg value="-Dfile=${maven-javadoc-jar}" />- <arg value="-Dclassifier=javadoc" />- <arg value="-Papache-release" />- </artifact:mvn>+ <target name="deploy" depends="release, makepom" description="--> deploy to Apache Nexus">++ <!-- sign and deploy the main artifact -->+ <artifact:mvn mavenHome="${env.MVN_HOME}" fork="true" failonerror="true">+ <jvmarg value="-Dmaven.multiModuleProjectDirectory=false" />+ <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.6:sign-and-deploy-file" />+ <arg value="-Durl=${maven-repository-url}" />+ <arg value="-DrepositoryId=${maven-repository-id}" />+ <arg value="-DpomFile=pom.xml" />+ <arg value="-Dfile=${maven-jar}" />+ <arg value="-Papache-release" />+ </artifact:mvn>++ <!-- sign and deploy the sources artifact -->+ <artifact:mvn mavenHome="${env.MVN_HOME}" fork="true" failonerror="true">+ <jvmarg value="-Dmaven.multiModuleProjectDirectory=false" />+ <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.6:sign-and-deploy-file" />+ <arg value="-Durl=${maven-repository-url}" />+ <arg value="-DrepositoryId=${maven-repository-id}" />+ <arg value="-DpomFile=pom.xml" />+ <arg value="-Dfile=${maven-sources-jar}" />+ <arg value="-Dclassifier=sources" />+ <arg value="-Papache-release" />+ </artifact:mvn>++ <!-- sign and deploy the javadoc artifact -->+ <artifact:mvn mavenHome="${env.MVN_HOME}" fork="true" failonerror="true">+ <jvmarg value="-Dmaven.multiModuleProjectDirectory=false" />+ <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.6:sign-and-deploy-file" />+ <arg value="-Durl=${maven-repository-url}" />+ <arg value="-DrepositoryId=${maven-repository-id}" />+ <arg value="-DpomFile=pom.xml" />+ <arg value="-Dfile=${maven-javadoc-jar}" />+ <arg value="-Dclassifier=javadoc" />+ <arg value="-Papache-release" />+ </artifact:mvn></target><!-- ================================================================== --><!-- Generate REST API Documentation with Miredot --><!-- ================================================================== -->- <target name="restdocs" description="--> generate REST API Documentation with Miredot">-- <!-- generate a pom file -->- <ivy:makepom ivyfile="${ivy.file}" pomfile="${basedir}/pom.xml" templatefile="ivy/mvn.template">- <mapping conf="default" scope="compile"/>- <mapping conf="runtime" scope="runtime"/>- </ivy:makepom>-- <!--artifact:dependencies pathId="dependency.classpath">- <dependency groupId="log4j" artifactId="log4j" version="1.2.15" >- <exclusion groupId="javax.jms" artifactId="jms" />- <exclusion groupId="com.sun.jdmk" artifactId="jmxtools" />- <exclusion groupId="com.sun.jmx" artifactId="jmxri" />- </dependency>- </artifact:dependencies-->+ <target name="restdocs" depends="makepom" description="--> generate REST API Documentation with Miredot"><artifact:mvn mavenHome="${env.MVN_HOME}" fork="true" failonerror="true"><jvmarg value="-Dmaven.multiModuleProjectDirectory=false" />diff --git a/ivy/ivy.xml b/ivy/ivy.xmlindex 510645089..9b63fa789 100644--- a/ivy/ivy.xml+++ b/ivy/ivy.xml@@ -115,13 +115,10 @@<dependency org="org.mortbay.jetty" name="jetty-client" rev="6.1.26" conf="test->default" /><dependency org="org.mortbay.jetty" name="jetty" rev="6.1.26" conf="test->default" />- <dependency org="org.apache.commons" name="commons-collections4" rev="4.1" conf="*->default" />-<!--Added Because of Elasticsearch JEST client--><!--TODO refactor these to indexer-elastic-rest plugin somehow, currently doesn't resolve correctly--><dependency org="org.apache.httpcomponents" name="httpcore-nio" rev="4.4.9" /><dependency org="org.apache.httpcomponents" name="httpcore" rev="4.4.14" />- <dependency org="org.apache.httpcomponents" name="httpclient" rev="4.5.5" /><dependency org="de.vandermeer" name="asciitable" rev="0.3.2" />