cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco, Ivy and artefacts repo?

ajmas
Champ in-the-making
Champ in-the-making
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"?>
<ivysettings>

  <resolvers>
    <chain name="maven-resolvers">
      <ibiblio name="alfresco-public" root="https://artifacts.alfresco.com/nexus/content/groups/public" 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:

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven">
  <info organisation="" module="AlfrescoHelloWorld" 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.b" conf="runtime->default"/>
  </dependencies>       
 
</ivy-module>


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]       :: javax.xml.stream#stax-api;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.
1 REPLY 1

ajmas
Champ in-the-making
Champ in-the-making
I ended up using Maven from home and compared. Turns out I needed to add another repository. The updated ivy-settings.xml that worked for me:


<ivysettings>

  <resolvers>
    <chain name="maven-resolvers">
   
      <ibiblio name="alfresco-public" root="https://artifacts.alfresco.com/nexus/content/groups/public" m2compatible="true" />           
      <ibiblio name="alfresco-thirdparty" root="https://artifacts.alfresco.com/nexus/content/repositories/thirdparty" m2compatible="true" />           
      <ibiblio name="activiti-releases" root="https://artifacts.alfresco.com/nexus/content/repositories/activiti-releases" m2compatible="true" />  

      <ibiblio name="activiti-thirdparty" root="https://artifacts.alfresco.com/nexus/content/repositories/activiti-thirdparty" m2compatible="true" />  
     
      <ibiblio name="java-net-maven2" root="http://download.java.net/maven/2/" m2compatible="true" />
      <ibiblio name="apache" root="https://repo.maven.apache.org/maven2/" m2compatible="true" />
      <ibiblio name="sonatype" root="https://oss.sonatype.org/content/groups/public/" m2compatible="true" />
    </chain>
  </resolvers>
 
  <settings defaultResolver="maven-resolvers"/>
</ivysettings>