| diff --git a/dev-tools/ivy/ivysettings.xml b/dev-tools/ivy/ivysettings.xml |
| new file mode 100644 |
| index 0000000..330c354 |
| --- /dev/null |
| +++ b/dev-tools/ivy/ivysettings.xml |
| @@ -0,0 +1,31 @@ |
| +<ivysettings>
|
| + <!-- Default Ivy settings. -->
|
| + <settings defaultResolver="default"/>
|
| +
|
| + <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"/>
|
| +
|
| + <resolvers>
|
| + <ibiblio name="sonatype-releases" root="http://oss.sonatype.org/content/repositories/releases" m2compatible="true" />
|
| +
|
| + <chain name="default" returnFirst="true" checkmodified="true">
|
| + <resolver ref="local"/>
|
| + <resolver ref="main"/>
|
| + <resolver ref="sonatype-releases" />
|
| + </chain>
|
| + </resolvers>
|
| +
|
| + <!--
|
| + <property name="local-maven2-pattern"
|
| + value="${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" override="false" />
|
| +
|
| + <resolvers>
|
| + <filesystem name="local-maven2" m2compatible="true" >
|
| + <ivy pattern="${local-maven2-pattern}"/>
|
| + <artifact pattern="${local-maven2-pattern}"/>
|
| + </filesystem>
|
| + </resolvers>
|
| + -->
|
| +</ivysettings> |
| \ No newline at end of file |
| diff --git a/dev-tools/maven/pom.xml.template b/dev-tools/maven/pom.xml.template |
| index d79f562..fa84997 100644 |
| --- a/dev-tools/maven/pom.xml.template |
| +++ b/dev-tools/maven/pom.xml.template |
| @@ -131,6 +131,17 @@ |
| <updatePolicy>never</updatePolicy> |
| </snapshots> |
| </repository> |
| + <repository> |
| + <id>sonatype.releases</id> |
| + <name>SonaType Releases Repository</name> |
| + <url>http://oss.sonatype.org/content/repositories/releases</url> |
| + <releases> |
| + <enabled>true</enabled> |
| + </releases> |
| + <snapshots> |
| + <updatePolicy>never</updatePolicy> |
| + </snapshots> |
| + </repository> |
| </repositories> |
| <dependencyManagement> |
| <dependencies> |
| diff --git a/lucene/common-build.xml b/lucene/common-build.xml |
| index 4c182df..c73ee85 100644 |
| --- a/lucene/common-build.xml |
| +++ b/lucene/common-build.xml |
| @@ -274,6 +274,7 @@ |
| <target name="resolve" depends="ivy-availability-check,ivy-fail"> |
| <!-- todo, make this a property or something. |
| only special cases need bundles --> |
| + <ivy:configure file="${dev-tools.dir}/ivy/ivysettings.xml" /> |
| <ivy:retrieve type="jar,bundle" log="download-only"/> |
| </target> |
| |
| @@ -312,9 +313,11 @@ |
| http://wiki.apache.org/lucene-java/HowToContribute#antivy |
| </echo> |
| </target> |
| + |
| <target name="ivy-fail" unless="ivy.available"> |
| <fail>Ivy is not available</fail> |
| </target> |
| + |
| <target name="ivy-bootstrap" description="Download and install Ivy in the users ant lib dir"> |
| <property name="ivy_install_path" location="${user.home}/.ant/lib" /> |
| <mkdir dir="${ivy_install_path}"/> |