Ivy Publishing Wrong Name to Artifactory

View: New views
1 Messages — Rating Filter:   Alert me  

Ivy Publishing Wrong Name to Artifactory

by bman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I'm using ant + ivy to push and pull from a local enterprise server running Artifactory.  For the most part it works great.  However, I have come across a situation where the jar name that I expect to be published to Artifactory is not being published with that name.  My local jar is named ns-jmx-1.2.0-SNAPSHOT, but the published jar is named spyglass-1.2.0-SNAPSHOT.  Any ideas why this is occurring?

build.xml:
                        <ivy:publish artifactspattern="${basedir}/dist/[artifact]-[revision].[ext]"
                        resolver="Publisher" status="integration" overwrite="true" update="true"/>

ivysettings.xml:
        <url name="Publisher">
                                <artifact pattern="http://172.0.0.0:8080/artifactory-2.0.6/libs-snapshots-local/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
                        </url>

ivy.xml:
    <info organisation="com.ns" module="spyglass" revision="1.2.0-SNAPSHOT"/>
       
    <publications>
        <artifact name="ns-jmx" type="jar" ext="jar"/>
    </publications>

build results:
:: delivering :: com.ns#spyglass;1.2.0-SNAPSHOT :: 1.2.0-SNAPSHOT :: integration :: Thu Aug 06 15:44:27 CDT 2009
        delivering ivy file to c:\dev\eclipse\workspace\spyglass\dist\ivy-1.2.0-SNAPSHOT.xml
:: publishing :: com.ns#spyglass
        published ns-jmx to http://172.0.0.0:8080/artifactory-2.0.6/libs-snapshots-local/com.ns/spyglass/1.2.0-SNAPSHOT/ns-jmx-1.2.0-SNAPSHOT.jar
        published ivy to http://172.0.0.0:8080/artifactory-2.0.6/libs-snapshots-local/com.ns/spyglass/1.2.0-SNAPSHOT/ivy-1.2.0-SNAPSHOT.xml

BUILD SUCCESSFUL
Total time: 7 seconds

Artifactory results:
spyglass/1.2.0-SNAPSHOT
             spyglass-1.2.0-SNAPSHOT.jar
             spyglass-1.2.0-SNAPSHOT.xml


Thanks in advance for the help!
Barry