You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Marc De Boeck <md...@gmail.com> on 2015/01/02 22:14:57 UTC

Re: Help needed building a Maven based project, via Ivy/Ant

I see that you have defined four different repositories with the same name
"alfresco-public".
Maybe that's the reason why it doesn't resolve properly ?

Marc

2014-12-30 22:44 GMT+01:00 André-John Mas <an...@gmail.com>:

> I am trying to build a project based on the Alfresco One CMS (
> http://alfresco.org), but I am running into issues, when using Ivy.
>
> Where I work, we aren't allowed to use Maven, since we have standardised
> on Ivy (at least that is the reason I have been given). As a compromise I
> am trying to create an Ivy based project, configured to use a Maven
> resolver to point to the Alfresco artefacts repository.
>
> So far my ivy-settings.xml looks a bit as follows:
>
>
> <ivysettings>
>   <resolvers>
>     <chain name="maven-resolvers">
>
>       <ibiblio name="alfresco-public" root="
> https://artifacts.alfresco.com/nexus/content/groups/public"
> m2compatible="true" />
>       <ibiblio name="alfresco-public" root="
> https://artifacts.alfresco.com/nexus/content/repositories/thirdparty"
> m2compatible="true" />
>       <ibiblio name="alfresco-public" root="
> https://artifacts.alfresco.com/nexus/content/repositories/activiti-thirdparty"
> m2compatible="true" />
>       <ibiblio name="alfresco-public" root="
> https://artifacts.alfresco.com/nexus/content/repositories/activiti-releases"
> m2compatible="true" />
>       <ibiblio name="java-net-maven2" root="
> http://download.java.net/maven/2/" m2compatible="true" />
>       <ibiblio name="sonatype" root="
> https://oss.sonatype.org/content/groups/public/" m2compatible="true" />
>     </chain>
>   </resolvers>
>
>   <settings defaultResolver="maven-resolvers"/>
> </ivysettings>
>
>
> The ivy.xml:
>
> <ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven">
>   <info organisation="" module="Experimental" revision="1.0"/>
>
>   <configurations>
>     <conf name="default"/>
>     <conf name="source"/>
>     <conf name="zip"/>
>     <conf name="runtime" visibility="private"/>
>   </configurations>
>
>   <publications>
>     <artifact name="${ivy.artifact.id}" type="jar" conf="default" />
>     <artifact name="${ivy.artifact.id}" type="zip" conf="zip" />
>   </publications>
>
>   <dependencies>
>     <dependency org="org.alfresco" name="alfresco" rev="5.0.c"
> conf="runtime->default"/>
>   </dependencies>
>
> </ivy-module>
>
>
> A truncated sample of the failed resolutions, when building via ant, are:
>
> [ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve]          ::          UNRESOLVED DEPENDENCIES         ::
> [ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:retrieve]          :: commons-codec#commons-codec;1.9: not found
> [ivy:retrieve]          :: commons-collections#commons-collections;3.2.1:
> not found
> [ivy:retrieve]          :: commons-httpclient#commons-httpclient;3.1: not
> found
> [ivy:retrieve]          :: commons-logging#commons-logging;1.1.3: not found
> [ivy:retrieve]          :: commons-io#commons-io;2.4: not found
> [ivy:retrieve]          :: org.safehaus.jug#jug;2.0.0: not found
> [ivy:retrieve]          :: org.json#json;20090211: not found
> [ivy:retrieve]          :: aopalliance#aopalliance;1.0: not found
> [ivy:retrieve]          :: javax.servlet#servlet-api;2.5: not found
> [ivy:retrieve]          :: dom4j#dom4j;1.6.1: not found
> [ivy:retrieve]          :: javax.xml.stream#stax-api;1.0-2: not found
> [ivy:retrieve]          :: javax.activation#activation;1.1: not found
> [ivy:retrieve]          :: org.codehaus.guessencoding#guessencoding;1.0:
> not found
> [ivy:retrieve]          :: org.apache.httpcomponents#httpclient;4.3.3: not
> found
> [ivy:retrieve]          :: jaxen#jaxen;1.1.6: not found
> [ivy:retrieve]          :: org.jibx#jibx-run;1.2.5: not found
> [ivy:retrieve]          ::
> org.apache.chemistry.opencmis#chemistry-opencmis-client-impl;0.11.0: not
> found
> [ivy:retrieve]          ::
> org.apache.chemistry.opencmis#chemistry-opencmis-commons-impl;0.11.0: not
> found
> [ivy:retrieve]          ::
> org.apache.chemistry.opencmis#chemistry-opencmis-server-bindings;0.11.0:
> not found
> [ivy:retrieve]          :: xml-apis#xml-apis;1.4.01: not found
> [ivy:retrieve]          ::
> org.apache.tika#tika-core;1.6-20140428-alfresco-patched: not found
> [ivy:retrieve]          ::
> org.apache.tika#tika-parsers;1.6-20140428-alfresco-patched: not found
> [ivy:retrieve]          ::
> com.googlecode.juniversalchardet#juniversalchardet;1.0.3: not found
>
>
> I am wondering whether the POMs are being used or something else is going
> wrong?
>
> Thanks in advance for any help.
>
> Andre
>
>
>