mvn -gs cml_settings.xml deploy:deploy-file -Dfile=engine1.xml -DgroupId=com.bae.meta.cml.engines -DartifactId=engine1 -Dversion=0.0.1 -Dpackaging=xml -DgeneratePom=true -Durl='http://localhost:8888/artifactory/libs-release-local' -DrepositoryId=cml2 You can upload as non-anonymous, provided proper credentials are in settings.xml, and the server id matches the repositoryId used in the mvn deploy line. -------------------------------------------------------------------------- POM-less deployment of standalone XML file to Artifactory -------------------------------------------------------------------------- Note: in the below example, we overload the "packaging" parameter to mean "file extension". $ mvn deploy:deploy-file -Dfile=engine1.xml -DgroupId=com.bae.meta.cml.engines -DartifactId=engine1 -Dversion=0.0.1 -Dpackaging=xml -DgeneratePom=true -Durl='http://localhost:8888/artifactory/libs-release-local' [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: http://localhost:8888/artifactory/libs-release-local/com/bae/meta/cml/engines/engine1/0.0.1/engine1-0.0.1.xml Uploaded: http://localhost:8888/artifactory/libs-release-local/com/bae/meta/cml/engines/engine1/0.0.1/engine1-0.0.1.xml (50 B at 0.5 KB/sec) Uploading: http://localhost:8888/artifactory/libs-release-local/com/bae/meta/cml/engines/engine1/0.0.1/engine1-0.0.1.pom Uploaded: http://localhost:8888/artifactory/libs-release-local/com/bae/meta/cml/engines/engine1/0.0.1/engine1-0.0.1.pom (433 B at 3.0 KB/sec) Downloading: http://localhost:8888/artifactory/libs-release-local/com/bae/meta/cml/engines/engine1/maven-metadata.xml Downloaded: http://localhost:8888/artifactory/libs-release-local/com/bae/meta/cml/engines/engine1/maven-metadata.xml (365 B at 5.7 KB/sec) Uploading: http://localhost:8888/artifactory/libs-release-local/com/bae/meta/cml/engines/engine1/maven-metadata.xml Uploaded: http://localhost:8888/artifactory/libs-release-local/com/bae/meta/cml/engines/engine1/maven-metadata.xml (338 B at 7.0 KB/sec) [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.077s [INFO] Finished at: Wed Aug 24 11:25:52 EDT 2011 [INFO] Final Memory: 3M/111M [INFO] ------------------------------------------------------------------------ -------------------------------------------------------------------------- Query repository for artifacts with ID pattern "engine*" -------------------------------------------------------------------------- $ curl -X GET -u admin:password 'http://localhost:8888/artifactory/api/search/artifact?name=engine*' { "results":[ {"uri":"http://localhost:8888/artifactory/api/storage/libs-release-local/com/bae/meta/cml/engines/engine1/0.0.1/engine1-0.0.1.xml"}, {"uri" :"http://localhost:8888/artifactory/api/storage/libs-release-local/com/bae/meta/cml/engines/engine1/0.0.1/engine1-0.0.1.pom"} ] } -------------------------------------------------------------------------- Grab the downloadUri value in the search results. -------------------------------------------------------------------------- $ curl -X GET -u admin:password 'http://localhost:8888/artifactory/api/storage/libs-release-local/com/bae/meta/cml/engines/engine1/0.0.1/engine1-0.0.1.xml' { "checksums" : { "md5" : "2498ba08bbd5c21aa8c80089fb3d5049", "sha1" : "b2ff9609ca0233d4c20ac667a082754c0575b7e1" }, "created" : "2011-08-24T11:16:04.482-04:00", "createdBy" : "anonymous", "downloadUri" : "http://localhost:8888/artifactory/libs-release-local/com/bae/meta/cml/engines/engine1/0.0.1/engine1-0.0.1.xml", "lastModified" : "2011-08-24T11:25:52.224-04:00", "lastUpdated" : "2011-08-24T11:25:52.224-04:00", "metadataUri" : "http://localhost:8888/artifactory/api/storage/libs-release-local/com/bae/meta/cml/engines/engine1/0.0.1/engine1-0.0.1.xml?mdns", "mimeType" : "application/xml", "modifiedBy" : "anonymous", "originalChecksums" : { "md5" : "2498ba08bbd5c21aa8c80089fb3d5049", "sha1" : "b2ff9609ca0233d4c20ac667a082754c0575b7e1" }, "path" : "/com/bae/meta/cml/engines/engine1/0.0.1/engine1-0.0.1.xml", "repo" : "libs-release-local", "size" : 50, "uri" : "http://localhost:8888/artifactory/api/storage/libs-release-local/com/bae/meta/cml/engines/engine1/0.0.1/engine1-0.0.1.xml" } -------------------------------------------------------------------------- Download the artifact (referred to by downloadUri). -------------------------------------------------------------------------- $ curl -X GET -u admin:password 'http://localhost:8888/artifactory/libs-release-local/com/bae/meta/cml/engines/engine1/0.0.1/engine1-0.0.1.xml' 300