Hi,
I have problems with uploading snapshots to Artifactory (v2.2.5)
Its a general understanding problem of how to configure the settings.xml. I
hope one can help me here....
I have a virtual repository "hudson-repo", this contains among other things 2
repos "my-snapshots" and "my-releases".
I have my settings.xml with
<mirrors>
<mirror>
<mirrorOf>*</mirrorOf>
<name>hudson-repo</name>
<url>http://server:port/artifactory/hudson-repo</url>
<id>hudson-repo</id>
</mirror>
</mirrors>
and
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>hudson-repo</name>
<url>http://server:port/artifactory/my-releases</url>
</repository>
<repository>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<id>snapshots</id>
<name>my-repo-snapshot</name>
<url>http://server:port/artifactory/my-snapshots</url>
</repository>
</repositories>
When I run "mvn deploy" on a snapshot project, I get the error
[INFO] [deploy:deploy {execution: default-deploy}]
[INFO] Retrieving previous build number from my-artifactory
[INFO] repository metadata for: 'snapshot de.my:Project:0.3-SNAPSHOT' could not
be found on repository: gis-artifactory, so will be created
Uploading:
http://server:port/artifactory/my-releases/de/my/Project/0.3-SNAPSHOT/Project-0.3-20110127.092805-1.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Failed to transfer file:
http://server:port/artifactory/my-releases/de/my/Project/0.3-SNAPSHOT/Project-0.3-20110127.092805-1.jar.
Return code is: 409
So ... why is it trying to deploy to my-release ? why is it a unique jar (the
policy of my-snapshot is non-unique). Is the settings itself wrong ?
I'm sorry for this basic misunderstanding of Repostories, but I hope someone
can clear my mind.
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users