Örneğin, iyi geliştirilmiş bir opensource projesi (lucene gibi) Eclipse'e (hem ant build.xml hem de ivy ivysetting.xml ile) açtığımda, tüm projeyi başarıyla oluşturmak için build.xml ile karı çalıştırabilirim. Bununla birlikte, proje .java sınıflarının karmaşasında hatalarla doludur. Bu, dış kavanozların bağlantısının kesilmesiyle oluşur. Bu kavanozlar zaten sarmalayıcı tarafından indirilmiş ve {user}/.vy2/cache /. Ayrıca, bu kavanozların her birini bu projenin yapı yoluna el ile koyduğumda, hatalar gider.Ilgili kavanozları Eclipse'de otomatik olarak JAVA yapı yolu kütüphanesine ekleyebilir miyim?
Sarmaşık veya ivyDE veya başka araçlar kavanozları JAVA yapı yoluna otomatik olarak yerleştirebilir mi? > Ivy - -> Tercihler Sen projenize ivysettings.xml dosyası eklemek ve (Tercihler Pencere ayarlamanız gerekir
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<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">
\t </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" />
<!-- needed only for newer svnkit releases, e.g. 1.8.x -->
<ibiblio name="svnkit-releases" root="http://maven.tmatesoft.com/content/repositories/releases" m2compatible="true" />
<!-- you might need to tweak this from china so it works -->
<ibiblio name="working-chinese-mirror" root="http://uk.maven.org/maven2" m2compatible="true" />
<!--
<filesystem name="local-maven-2" m2compatible="true" local="true">
<artifact
pattern="${local-maven2-dir}/[organisation]/[module]/[revision]/[module]-[revision].[ext]" />
<ivy
pattern="${local-maven2-dir}/[organisation]/[module]/[revision]/[module]-[revision].pom" />
</filesystem>
-->
<chain name="default" returnFirst="true" checkmodified="true" changingPattern=".*SNAPSHOT">
<resolver ref="local"/>
<!-- <resolver ref="local-maven-2" /> -->
<resolver ref="main"/>
<resolver ref="maven.restlet.org" />
<resolver ref="sonatype-releases" />
<resolver ref="releases.cloudera.com"/>
<!-- <resolver ref="svnkit-releases" /> -->
<resolver ref="working-chinese-mirror" />
</chain>
</resolvers>
</ivysettings>
</ivy-module>
Bu zaten işe yaramadı .. –
Benim ivyDE 2.2, ve Kütüphaneler sekmesi altındaki Proje Özellikleri-> Java Oluşturma Yolu ile yapılır, Kitaplık Ekle'yi seçin ve IvyDE Yönetilen Bağımlılıklar'ı seçin. Ve, Ana: Ivy dosyası: ivy-setting.xml, Classpath: "Proje belirtilen ayarları etkinleştir" seçeneğini işaretleyin ve "Çalışma alanındaki bağımlılıkları çöz" seçeneğini işaretleyin. Ancak, projeyi çözdüğümde işe yaramadı. Ekle Sorunun açıklamasına xml dosyasını ekledim. –
"işe yaramadı" ne şekilde? Bir çeşit hata yaptın mı? Sınıf kütüphanesinde Ivy kütüphanesini görüyor musunuz? İçinde hiç kavanoz var mı? –