AnsweredAssumed Answered

Alfresco, Ivy and artefacts repo?

Question asked by ajmas on Dec 30, 2014
Latest reply on Dec 30, 2014 by ajmas
Has anyone managed to create an Ivy based project to be able to build Alfresco, from the artefacts repository? If so please could you share what you have done.

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:

<?xml version="1.0" encoding="UTF-8"?>

    <chain name="maven-resolvers">
      <ibiblio name="alfresco-public" root="" m2compatible="true" />           
      <ibiblio name="java-net-maven2" root="" m2compatible="true" />
      <ibiblio name="sonatype" root="" m2compatible="true" />
  <settings defaultResolver="maven-resolvers"/>

The ivy.xml:

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:m="">
  <info organisation="" module="AlfrescoHelloWorld" revision="1.0"/>
    <conf name="default"/>
    <conf name="source"/>
    <conf name="zip"/>
    <conf name="runtime" visibility="private"/>
    <artifact name="${}" type="jar" conf="default" />
   <artifact name="${}" type="zip" conf="zip" />
    <dependency org="org.alfresco" name="alfresco" rev="5.0.b" conf="runtime->default"/>

A sample of the failed resolutions, when building via ant, are:

[ivy:resolve]       ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]       ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve]       ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]       :: commons-codec#commons-codec;1.9: not found
[ivy:resolve]       :: commons-collections#commons-collections;3.2.1: not found
[ivy:resolve]       :: commons-httpclient#commons-httpclient;3.1: not found
[ivy:resolve]       :: commons-logging#commons-logging;1.1.3: not found
[ivy:resolve]       :: commons-io#commons-io;2.4: not found
[ivy:resolve]       :: org.safehaus.jug#jug;2.0.0: not found
[ivy:resolve]       :: org.json#json;20090211: not found
[ivy:resolve]       :: aopalliance#aopalliance;1.0: not found
[ivy:resolve]       :: javax.servlet#servlet-api;2.5: not found
[ivy:resolve]       :: dom4j#dom4j;1.6.1: not found
[ivy:resolve]       ::;1.0-2: not found
[ivy:resolve]       :: javax.activation#activation;1.1: not found
[ivy:resolve]       :: org.codehaus.guessencoding#guessencoding;1.0: not found
[ivy:resolve]       :: org.apache.httpcomponents#httpclient;4.3.3: not found
[ivy:resolve]       :: jaxen#jaxen;1.1.6: not found
[ivy:resolve]       :: org.jibx#jibx-run;1.2.5: not found
[ivy:resolve]       :: org.apache.chemistry.opencmis#chemistry-opencmis-client-impl;0.11.0: not found
[ivy:resolve]       :: org.apache.chemistry.opencmis#chemistry-opencmis-commons-impl;0.11.0: not found
[ivy:resolve]       :: org.apache.chemistry.opencmis#chemistry-opencmis-server-bindings;0.11.0: not found
[ivy:resolve]       :: xml-apis#xml-apis;1.4.01: not found

I am going to continue investigating on how to resolve this on my side.