Hi, I am new to this mailing list so please excuse me if I break some rules unintentionally, overtime I will get better at asking questions through the mailing list.
my problem is following: Based on this tutorial: http://ant.apache.org/ivy/history/latest-milestone/tutorial/build-repository.html I am building my repository. I have modified ivy settings file from (build repository ) tutorial a little bit and added chain instead of just one resolver, and I got everything working, To invoke ivy:install I am using a macro that I found on the internet and modified a little bit : <macrodef name="artcopy" description="A convenience macro definition to transitively copy the artifact from the source repository to a target" > <attribute name="org" description="the organisation (or group Id)" /> <attribute name="name" description="the module name (or artifact name Id)" /> <attribute name="rev" description="the revision (or the artifact version Id)" /> <attribute name="settings" default="basic.settings" /> <sequential> <ivy:install settingsRef="@{settings}" organisation="@{org}" module="@{name}" revision="@{rev}" from="${from.resolver}" to="${to.resolver}" transitive="true" overwrite="true" haltonfailure="true" /> </sequential> </macrodef> in my target I am invoking macro following way : <artcopy org="org.springframework" name="spring-aop" rev="3.0.5.RELEASE" /> <artcopy org="org.springframework" name="spring-asm" rev="3.0.5.RELEASE" /> <artcopy org="org.springframework" name="spring-aspects" rev="3.0.5.RELEASE" /> ...... everything works great with ivysettings.basic. but things get hairy with ivysettings.advanced for some reason when I try to build advanced repository I get following error: after it starts up * :: commons-logging#commons-logging;1.1.1: java.text.ParseException: inconsistent module descriptor file found in ' http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom': bad organisation: expected='commons-logging' found='apache'; * *:::: ERRORS* * libraries: bad organisation found in http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom: expected='commons-logging' found='apache'* I a attaching ivysettings files in this email I realized there is something wrong with renaming inconsistent apache projects but, cant figure out what is exactly going on to fix it. thanks in advanced Regards Levan
<ivysettings> <settings defaultResolver="${from.resolver}" defaultConflictManager="all" /> <!-- in order to get all revisions without any eviction --> <!-- You can override this property to use one of the mirrors listed on http://docs.codehaus.org/display/MAVENUSER/Mirrors+Repositories --> <caches defaultCacheDir="${ivy.cache.dir}/advanced" > </caches> <property name="ibiblio-maven2-root" value="http://repo1.maven.org/maven2/" override="false" /> <namespaces> <namespace name="givi-repository-adv"> <rule> <!-- imported apache maven1 projects --> <fromsystem> <src org="apache" module=".+"/> <dest org="$m0" module="$m0"/> </fromsystem> <tosystem> <src org="commons-.+" module="commons-.+" /> <src org="ant" module=".*" /> <src org="avalon-.+" module="avalon-.+" /> <src org="avalon" module="avalon" /> <src org="axis" module="axis" /> <src org="axis2" module="axis2" /> <src org="batik" module="batik" /> <src org="bcel" module="bcel" /> <src org="beehive" module="beehive" /> <src org="bsf" module="bsf" /> <src org="cactus" module="cactus" /> <src org="cocoon" module="cocoon" /> <src org="cornerstone-.+" module="cornerstone-.+" /> <src org="create-checksums" module="create-checksums" /> <src org="crimson" module="crimson" /> <src org="directory-.+" module="directory-.+" /> <src org="directory" module="directory" /> <src org="ecs" module="ecs" /> <src org="excalibur-.+" module="excalibur-.+" /> <src org="excalibur" module="excalibur" /> <src org="fop" module="fop" /> <src org="fulcrum" module="fulcrum" /> <src org="geronimo-.+" module="geronimo-.+" /> <src org="geronimo" module="geronimo" /> <src org="hivemind" module="hivemind" /> <src org="jakarta-regexp" module="jakarta-regexp" /> <src org="james" module="james" /> <src org="jaxme" module="jaxme" /> <src org="jcs-javagroups" module="jcs-javagroups" /> <src org="jcs" module="jcs" /> <src org="jspapi" module="jspapi" /> <src org="jstl" module="jstl" /> <src org="juddi" module="juddi" /> <src org="log4j" module="log4j" /> <src org="logkit" module="logkit" /> <src org="lucene" module="lucene" /> <src org="magicGball" module="magicGball" /> <src org="maven" module="maven" /> <src org="merlin-developer" module="merlin-developer" /> <src org="merlin" module="merlin" /> <src org="muse" module="muse" /> <src org="myfaces" module="myfaces" /> <src org="nekohtml" module="nekohtml" /> <src org="ojb" module="ojb" /> <src org="oro" module="oro" /> <src org="pluto-container" module="pluto-container" /> <src org="poi" module="poi" /> <src org="pubscribe" module="pubscribe" /> <src org="sandesha" module="sandesha" /> <src org="servletapi" module="servletapi" /> <src org="slide" module=".*" /> <src org="stratum" module="stratum" /> <src org="struts" module="struts" /> <src org="taglibs" module="taglibs" /> <src org="tapestry" module="tapestry" /> <src org="tomcat-util" module="tomcat-util" /> <src org="tomcat" module="tomcat" /> <src org="torque" module="torque" /> <src org="turbine" module="turbine" /> <src org="velocity-.+" module="velocity-.+" /> <src org="velocity" module="velocity" /> <src org="ws-commons.*" module="ws-commons.*" /> <src org="wsdl4j" module="wsdl4j" /> <src org="wsrf" module="wsrf" /> <src org="xalan" module="xalan" /> <src org="xerces" module=".*" /> <src org="xercesjarv" module="xercesjarv" /> <src org="xml-apis" module="xml-apis" /> <src org="xml-resolver" module="xml-resolver" /> <src org="xml-security" module="xml-security" /> <src org="xmlbeans" module="xmlbeans" /> <src org="xmlrpc" module="xmlrpc" /> <dest org="apache" module="$m0"/> </tosystem> </rule> <rule> <!-- new apache projects --> <fromsystem> <src org="apache" /> <dest org="org.apache"/> </fromsystem> <tosystem> <src org="org.apache" /> <dest org="apache" /> </tosystem> </rule> <rule> <!-- hibernate --> <fromsystem> <src org="hibernate" /> <dest org="org.hibernate"/> </fromsystem> <tosystem> <src org="org.hibernate" /> <dest org="hibernate" /> </tosystem> </rule> <rule> <!-- net.sf projects --> <fromsystem> <src org="ehcache" /> <dest org="net.sf.$o0"/> </fromsystem> <tosystem> <src org="net.sf.(.+)" /> <dest org="$o1" /> </tosystem> </rule> </namespace> </namespaces> <resolvers> <chain name="${from.resolver}" returnFirst="true" checkmodified="true" > <filesystem name="local" > <artifact pattern="${jarpository.dir}/[artifact](-[revision]).[ext]" /> <artifact pattern="${jarpository.dir}/${ivy.local.default.artifact.pattern}" /> </filesystem> <ibiblio name="libraries" namespace="givi-repository-adv" root="${ibiblio-maven2-root}" m2compatible="true" /> <ibiblio name="jboss" namespace="givi-repository-adv" m2compatible="true" root="https://repository.jboss.org/nexus/content/groups/public" pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" /> <packager name="roundup" buildRoot="${user.home}/.ivy2/packager/build" resourceCache="${ivy.cache.dir}/packager/basic" namespace="givi-repository-adv"> <ivy pattern="http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/ivy.xml"/> <artifact pattern="http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/packager.xml"/> </packager> </chain> <filesystem name="${to.resolver}"> <ivy pattern="${dest.repo.dir}/ADVANCED/[organisation]/[module]/ivys/ivy-[revision].xml"/> <artifact pattern="${dest.repo.dir}/ADVANCED/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/> </filesystem> <!-- ibiblio name="libraries" root="${ibiblio-maven2-root}" m2compatible="true" namespace="givi-repository-adv" / --> </resolvers> </ivysettings>
<ivysettings> <settings defaultResolver="${from.resolver}" defaultConflictManager="all" /> <caches defaultCacheDir="${ivy.cache.dir}/basic" > </caches> <!-- in order to get all revisions without any eviction --> <resolvers> <chain name="${from.resolver}" returnFirst="true" checkmodified="true"> <filesystem name="local"> <artifact pattern="${jarpository.dir}/[artifact](-[revision]).[ext]" /> <artifact pattern="${jarpository.dir}/${ivy.local.default.artifact.pattern}" /> </filesystem> <ibiblio name="libraries" m2compatible="true" /> <ibiblio name="jboss" m2compatible="true" root="https://repository.jboss.org/nexus/content/groups/public" pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" /> <packager name="roundup" buildRoot="${user.home}/.ivy2/packager/build" resourceCache="${ivy.cache.dir}/packager/basic"> <ivy pattern="http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/ivy.xml"/> <artifact pattern="http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/packager.xml"/> </packager> </chain> <filesystem name="${to.resolver}"> <ivy pattern="${dest.repo.dir}/BASIC/[organisation]/[module]/ivys/ivy-[revision].xml"/> <artifact pattern="${dest.repo.dir}/BASIC/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/> </filesystem> </resolvers> </ivysettings>