For example, when I open a well-developed open source project (e.g. lucene) in Eclipse (with ant build.xml and ivy ivysetting.xml), I can run ant using build.xml to create the whole project successfully.
However, the project is full of errors in the mess of .java classes. This is caused by disconnecting external cans. These banks are already loaded with ivy and stored in {user} /. Ivy2 / cache /. In addition, when I manually put each of these cans into the build path of this project, the errors disappeared.
Can ivy or ivyDE or some other tools automatically put jars in the JAVA build path?
Here is the ivy-setting.xml:
<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"> <info organisation="" module="lucene-5.0.0" status="integration"> </info> <ivysettings> <settings defaultResolver="default"/> <property name="local-maven2-dir" value="${user.home}/.m2/repository/" /> <properties file="${ivy.settings.dir}/ivy-versions.properties" override="false"/> <include url="${ivy.default.settings.dir}/ivysettings-public.xml"/> <include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/> <include url="${ivy.default.settings.dir}/ivysettings-local.xml"/> <include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/> <caches lockStrategy="artifact-lock" resolutionCacheDir="${common.build.dir}/ivy-resolution-cache" /> <resolvers> <ibiblio name="sonatype-releases" root="https://oss.sonatype.org/content/repositories/releases" m2compatible="true" /> <ibiblio name="maven.restlet.org" root="http://maven.restlet.org" m2compatible="true" /> <ibiblio name="releases.cloudera.com" root="http://repository.cloudera.com/content/repositories/releases" m2compatible="true" /> <ibiblio name="svnkit-releases" root="http://maven.tmatesoft.com/content/repositories/releases" m2compatible="true" /> <ibiblio name="working-chinese-mirror" root="http://uk.maven.org/maven2" m2compatible="true" /> <chain name="default" returnFirst="true" checkmodified="true" changingPattern=".*SNAPSHOT"> <resolver ref="local"/> <resolver ref="main"/> <resolver ref="maven.restlet.org" /> <resolver ref="sonatype-releases" /> <resolver ref="releases.cloudera.com"/> <resolver ref="working-chinese-mirror" /> </chain> </resolvers> </ivysettings> </ivy-module>
source share