ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Haynes <david.dhc...@gmail.com>
Subject Publishing POM to Artifactory not working
Date Thu, 22 Sep 2011 17:27:37 GMT
Hey there.
I am having a bit of a problem publishing a pom file to my Artifactory
repository using the Ant tools.
The ant target does not seem to be finding the pom file to publish.

Here is a piece from the build.xml file:
        <ivy:makepom ivyfile="ivy.xml"
pomfile="${dist.dir}/${name}-${version}.pom" conf="default, runtime">
            <mapping conf="default" scope="compile"/>
            <mapping conf="runtime" scope="runtime"/>
        </ivy:makepom>

        <ivy:publish organisation="${org}" module="${name}"
revision="${version}-SNAPSHOT"
            resolver="libs-snapshot-local" srcivypattern="ivy.xml"
update="true" overwrite="true" publishivy="false">
            <artifacts pattern="${dist.dir}/[artifact]-${version}.[ext]"/>
            <artifacts pattern="${dist.dir}/[artifact]-${version}.pom"/>
        </ivy:publish>

My resolver looks like this:
<url name="libs-snapshot-local" m2compatible="true">
     <artifact pattern="
http://192.168.215.245:8081/artifactory/libs-snapshot-local/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
/
      <ivy pattern="
http://192.168.215.245:8081/artifactory/libs-snapshot-local/[organisation]/[module]/[revision]/ivy-[revision].xml"
/>
 </url>

When I run the build, I get the following:
[ivy:publish] :: publishing :: com.cinbell.cbts#rest-lib
[ivy:publish]   published rest-lib to
http://192.168.215.245:8081/artifactory/libs-snapshot-local/com/cinbell/cbts/rest-lib/1.0.0-SNAPSHOT/rest-lib-1.0.0-SNAPSHOT.jar

And that is what shows up in the Artifactory repository.

Notice that there is no attempt to publish the pom file....

The pom file is generated and is in the ${dist.dir} directory as
[artifact]-${version}.pom.

I am using ivy version 2.2.0.

If anyone has any suggestions, I would love to hear them. I am out of ideas
on this one.

Thanks
-david-

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message