Quantcast

Deploy Artifact to specific repo other than libs-snapshot-local or libs-release-local with maven-deploy-plugin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Deploy Artifact to specific repo other than libs-snapshot-local or libs-release-local with maven-deploy-plugin

krosty
Hi,

I cannot deploy artifact to a local repo that I created after artifactory
installation (not libs-snapshot-local or libs-release-local) with Maven and
maven-deploy-plugin.
Earlier I tested my settings.xml and project pom by successfully uploading
to libs-snapshot-release. I'm not sure if I'm passing the correct id for the
local repo. Without further
ado, here's my distributionManagement block in the project pom.

  <distributionManagement>
                <repository>
                        <uniqueVersion>false</uniqueVersion>
                        <id>my-thirdparty-lib</id>
                        <name>my-thirdparty-lib</name>
                        <url>http://localhost:8081/artifactory/my-thirdparty-lib</url>
                </repository>
  </distributionManagement>
 
Note that I tried putting the repo info above in a 'snapshotRepository'
block instead of 'repositiry'. But it didn't work or make a difference. Also
noticed that it doesn't allow
you to have multiple of either bolcks.

And here are the 'servers' and 'profies' sections corresponding to the
specific local repo in my settings.xml.

 <servers>
   
    <server>      
       <username>username</username>      
       <password>pswd</password>  
       <id>my-thirdparty-lib</id>  
    </server>
 
 </servers>
 
  <profiles>
    <profile>
      <repositories>      
        <repository>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <id>my-thirdparty-lib</id>
          <url>http://localhost:8081/artifactory/my-thirdparty-lib</url>
        </repository>
      </repositories>
      <id>artifactory</id>
    </profile>
  </profiles>

 When I'm running 'mvn deploy', getting following error while uploading.
 
 [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on
project xxxPackage: Failed to deploy artifacts: Could not transfer artifact
com.xxx.pro:xxxPackage:pom:12.5-20160809.173109-1 from/to my-thirdparty-lib
(http://localhost:8081/artifactory/my-thirdparty-lib): Failed to transfer
file:
http://localhost:8081/artifactory/my-thirdparty-lib/com/xxx/pro/xxxPackage/12.5-SNAPSHOT/xxxPackage-12.5-20160809.173109-1.pom.
Return code is: 409, ReasonPhrase: Conflict. -> [Help 1]
 
 I'm using Artifactory 3.9.2.
 





--
View this message in context: http://forums.jfrog.org/Deploy-Artifact-to-specific-repo-other-than-libs-snapshot-local-or-libs-release-local-with-maven-depn-tp7581153.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Loading...