fixed - was lost in pattern ;-) The used resolver hadnt used the pattern [artifact] - only [module].
Jan >-----Ursprüngliche Nachricht----- >Von: [email protected] [mailto:[email protected]] >Gesendet: Dienstag, 20. Juli 2010 14:44 >An: [email protected] >Betreff: Ivy renames my artifact > >Ivy 2.2.0-rc1 renames my artifact while uploading to Nexus, but I dont >know why - and how to configure it so it does NOT the renaming ... > >Jan > > >ivy.xml: ><?xml version="1.0" encoding="ISO-8859-15"?> ><ivy-module version="2.0"> > <info organisation="com.acme" module="MyModule"/> > <configurations> ... </configurations> > <publications> > <artifact name="MyArtefact" type="jar" ext="jar"/> > </publications> > <dependencies/> ></ivy-module> > >Buildfile: ><target name="publish"> > <property name="version" >value="${ccm.release}.${ccm.objectversion}.${tstamp.publish}"/> > <ivy:info file="ivy.xml"/> > > <ivy:configure settingsid="${ant.project.name}.ivy.settings" > file="${project.dir}/ivysettings.xml" override='true' >host="SERVER" > realm="Sonatype Nexus Repository Manager" username="admin" >passwd="admin123" /> > > <delete><fileset dir="${jars.dir}" >includes="${ivy.module}.pom,ivy.xml"/></delete> > > <ivy:resolve /> > <ivy:makepom ivyfile="ivy.xml" >pomfile="${jars.dir}/${ivy.module}.pom"/> > > <ivy:publish resolver="publish.release" > pubrevision="${version}" forcedeliver="true" pubdate="now" >overwrite="true" > publishivy="true" status="integration"> > <artifacts pattern="${jars.dir}/[artifact].[ext]" /> > </ivy:publish> > <echo>Publish beendet.</echo> ></target> > > >Ant-Output > >publish: >[ivy:configure] :: loading settings :: file = ...\ivysettings.xml >[ivy:resolve] :: resolving dependencies :: >com.acme#MyModule;work...@c011871 >[ivy:resolve] confs: [...] >[ivy:resolve] :: resolution report :: resolve 15ms :: artifacts dl 0ms > >--------------------------------------------------------------------- > | | modules || >artifacts | > | conf | number| search|dwnlded|evicted|| >number|dwnlded| > >--------------------------------------------------------------------- > | ... | 0 | 0 | 0 | 0 || 0 | >0 | > >--------------------------------------------------------------------- >[ivy:publish] :: delivering :: com.acme#MyModule;work...@c011871 :: >0.0.1.test.20100720.143703 :: integration :: Tue Jul 20 14:37:05 CEST >2010 >[ivy:publish] delivering ivy file to ...\build\jars\ivy.xml >[ivy:publish] :: publishing :: com.acme#MyModule >[ivy:publish] published MyArtefact to >http://SERVER/nexus/content/repositories/releases/com.acme/MyMo >dule/0.0. >1.test.20100720.143703/MyModule-0.0.1.test.20100720.143703.jar >[ivy:publish] published ivy to >http://SERVER/nexus/content/repositories/releases/com.acme/MyMo >dule/0.0. >1.test.20100720.143703/MyModule-0.0.1.test.20100720.143703.xml > [echo] Publish beendet. > > > >
