Deploy to artifactory issue

classic Classic list List threaded Threaded
1 message Options
zw
Reply | Threaded
Open this post in threaded view
|

Deploy to artifactory issue

zw
Hi All



1)

It is unclear why when using file:// syntax for url argument, the upload messages passes

mvn -X deploy:deploy-file -Dfile=ayyy.zip -DgeneratePom=true -DrepositoryId=snapshots -DgroupId=gxxx -DartifactId=ayyy -Dversion=1.1.1.1 -Dpackaging=zip -Durl=file://abc.com:8080/artifactory/snapshot-local

but not with http:// as the url argument.

mvn -X deploy:deploy-file -Dfile=ayyy.zip -DgeneratePom=true -DrepositoryId=snapshots -DgroupId=gxxx -DartifactId=ayyy -Dversion=1.1.1.1 -Dpackaging=zip -Durl=http://abc.com:8080/artifactory/snapshot-local

It errors with 409 return code.
We tried different options and none worked
1)  Add <nonProxyHosts> in settings.xml
2) In Artifactory snapshot-local repo, set Suppress POM Consistency Checks
3) In Artifactory, set Checksum policy to Trust Server Generated Checksum



2) Also when we tried looking for the artifact in local repo of Artifactory snapshot-local, it isnt there that we can find in Artifactory UI Artifacts tab.

Where is it exactly stored and why is it not viewable on UI ?

Artifactory 2.6.6 we use



Log below:

[INFO] Scanning for projects...

[INFO]                                                                        

[INFO] ------------------------------------------------------------------------

[INFO] Building Maven Stub Project (No POM) 1

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-deploy-plugin:2.5:deploy-file (default-cli) @ standalone-pom ---

Uploading: file://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.zip

Uploaded: file://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.zip (18656 KB at 34166.8 KB/sec)

Uploading: file://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.pom

Uploaded: file://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/1.1.1.1/ayyy-1.1.1.1.pom (423 B at 206.5 KB/sec)

Downloading: file://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/maven-metadata.xml

Downloaded: file://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/maven-metadata.xml (304 B at 148.4 KB/sec)

Uploading: file://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/maven-metadata.xml

Uploaded: file://abc.com:8080/artifactory/snapshot-local/gxxx/ayyy/maven-metadata.xml (304 B at 296.9 KB/sec)

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1.068s

[INFO] Finished at: Wed May 20 22:58:20 PDT 2015

[INFO] Final Memory: 3M/227M

[INFO] ------------------------------------------------------------------------





Thank you.