/repo is a virtual repository and you cannot deploy to it; you've got to
configure the distribution management section to point to a local
repository.
On Tue, Jan 10, 2012 at 11:37 PM, pdaforu <[email protected]> wrote:
> Hello All
>
> I am trying to configure artifactory with maven.
> Here are my setting.xml file content
>
> <servers>
> <server>
> <username>admin</username>
> <password>password</password>
> <id>central</id>
> </server>
> <server>
> <username>admin</username>
> <password>password</password>
> <id>snapshots</id>
> </server>
> </servers>
> <profiles>
> <profile>
> <repositories>
> <repository>
> <snapshots>
> <enabled>false</enabled>
> </snapshots>
> <id>central</id>
> <name>libs-release</name>
> <url>http://localhost:8081/artifactory/repo</url>
> </repository>
> <repository>
> <snapshots />
> <id>snapshots</id>
> <name>libs-snapshot</name>
> <url>http://localhost:8081/artifactory/repo</url>
> </repository>
> </repositories>
> <pluginRepositories>
> <pluginRepository>
> <snapshots>
> <enabled>false</enabled>
> </snapshots>
> <id>central</id>
> <name>plugins-release</name>
> <url>http://localhost:8081/artifactory/repo</url>
> </pluginRepository>
> <pluginRepository>
> <snapshots />
> <id>snapshots</id>
> <name>plugins-snapshot</name>
> <url>http://localhost:8081/artifactory/repo</url>
> </pluginRepository>
> </pluginRepositories>
> <id>artifactory</id>
> </profile>
> </profiles>
>
>
> And my pom.xml file content
>
> <distributionManagement>
> <repository>
> <id>central</id>
> <url>http://localhost:8081/artifactory/repo</url>
> </repository>
> <snapshotRepository>
> <id>snapshots</id>
> <url>http://localhost:8081/artifactory/repo</url>
> </snapshotRepository>
> </distributionManagement>
>
>
> Now the thing is I have a multiple project A,B,C in which say A depends on
> B and B depends on C.
>
> When i run mvn install on project C , it install properly in to my local
> repository which is ~/.m2/repository directory. Now when i run mvn deploy ,
> so that it gets deployed in artifactory, it always gives error
>
> not transfer artifact test:C:jar:9.2 from/to central
> (http://localhost:8081/artifactory/repo): Failed to transfer file:
> http://local
> host:8081/artifactory/repo/scv/C/C/9.2/C-9.2.
> jar. Return code is: 405 -> [Help 1]
>
> Any help would be greatly appricated.
>
> --
> View this message in context:
> http://artifactory-users.108859.n3.nabble.com/Error-Code-405-with-mvn-deploy-tp3648944p3648944.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users