Ivy

2013-04-15 15 views
7

ile Bintray maven havuzunu kullanma Bazı proje bağımlılıklarını bir maven deposunda barındırmak için bintray kullanarak kullanmayı düşünüyorum. Benim sorunum Ivy kullanıyorum ve ben (bintray tarafından sağlanan) bu maven yapılandırmasını almak nasıl anlamaya görünüyor olamaz:Ivy

<?xml version="1.0" encoding="UTF-8" ?> 
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd' 
xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> 
    <profiles> 
    <profile> 
     <repositories> 
     <repository> 
      <snapshots> 
      <enabled>false</enabled> 
      </snapshots> 
      <id>central</id> 
      <name>bintray</name> 
      <url>http://dl.bintray.com/content/example/external-deps</url> 
     </repository> 
     </repositories> 
     <pluginRepositories> 
     <pluginRepository> 
      <snapshots> 
      <enabled>false</enabled> 
      </snapshots> 
      <id>central</id> 
      <name>bintray-plugins</name> 
      <url>http://dl.bintray.com/content/example/external-deps</url> 
     </pluginRepository> 
     </pluginRepositories> 
     <id>bintray</id> 
    </profile> 
    </profiles> 
    <activeProfiles> 
    <activeProfile>bintray</activeProfile> 
    </activeProfiles> 
</settings> 

ve Ivy kullanabilirsiniz şey çevirmek. Birisi bana yardım edebilir mi?

cevap

6

Sadece böyle depoyu ekleyebilirsiniz:

<ivysettings> 
    <resolvers> 
     <ibiblio name="bintray" 
       m2compatible="true" 
       root="http://dl.bintray.com/content/example/external-deps"/> 
    </resolvers> 
</ivysettings> 
+0

profilin kimliği ibiblio Resolver adı olduğunu sadece bir tesadüf mü (= bintray)? AFAIK ivy, maven profilleri ayrıştırmaz/desteklemez. – mwhs

+1

Hayır ... Sadece bir tesadüf. – carlspring

İlgili konular