ah great... thanks for this... now i could find the problematic location
 

 


 

 

-----Original Message-----
From: Emerson Farrugia <[email protected]>
To: artifactory-users <[email protected]>
Sent: Thu, Jan 27, 2011 11:15 am
Subject: Re: [Artifactory-users] problems with uploading snapshots


Repositories configure where you get artifacts <i>from</i>. A distribution 
management section is used to configure where you deploy artifacts <i>to</i>.


Google the "Maven POM reference" and check it out. I'd send you a link, but 
apache.org looks like it's down.


HTH,
Emerson




On Thu, Jan 27, 2011 at 10:30 AM,  <[email protected]> wrote:

 

 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





 
------------------------------------------------------------------------------

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




 
------------------------------------------------------------------------------
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

Reply via email to