2013-04-15 8 views
7

Ich überlege mit bintray, einige Projektabhängigkeiten in einem Maven-Repository hosten. Mein Problem ist, ich bin mit Ivy und ich kann nicht scheinen, um herauszufinden, wie diese Maven-Konfiguration zu übernehmen (von bintray im Lieferumfang enthalten):Verwendung von Bintray Maven-Repository mit 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> 

und es in etwas, das Ivy verwenden können. Kann mir jemand dabei helfen?

Antwort

6

Sie können nur das Repository wie folgt hinzu:

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

Ist es nur ein Zufall, dass die ID des Profils der Name des ibiblio Resolver ist (= bintray)? AFAIK-Efeu analysiert keine Maven-Profile. – mwhs

+1

Nein ... Es ist nur ein Zufall. – carlspring

Verwandte Themen