Okay, I see what's wrong :)
You are deploying the file name for its content, so effectively you are
sending verbatim the string "pom.xml" as a pom, which is of course not
valid xml content.
In order to put the pom.xml file content you need to run (note the leading
@ before the file's path):
curl -X PUT -u admin:121212 --data-binary
@/home/user/deploy-plugin-test/pom.xml -i "
http://repo.dev/artifactory/libs-snapshot-local/com/test/deploy-plugin-test/1.67.0-SNAPSHOT/deploy-plugin-test-1.67.0-SNAPSHOT.pom
"
On Tue, Dec 13, 2011 at 5:45 PM, Igal Harel <[email protected]> wrote:
> Hi,
>
> At the moment I solved the problem by doing the following
>
> pom=`cat /tmp/pom.xml`
> curl -X PUT -u admin:121212 -d "$pom" /home/user/deploy-plugin-test/pom.xml
> -i
> "
> http://repo.dev/artifactory/libs-snapshot-local/com/test/deploy-plugin-test/1.67.0-SNAPSHOT/deploy-plugin-test-1.67.0-SNAPSHOT.pom
> "
>
> Here's the pom.xml file I'm trying to upload
> http://forums.jfrog.org/file/n7090367/pom.xml pom.xml
>
> Thanks
> Igal
>
>
> --
> View this message in context:
> http://forums.jfrog.org/Deploy-POM-using-rest-API-tp7088982p7090367.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Systems Optimization Self Assessment
> Improve efficiency and utilization of IT resources. Drive out cost and
> improve service delivery. Take 5 minutes to use this Systems Optimization
> Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
Cloud Computing - Latest Buzzword or a Glimpse of the Future?
This paper surveys cloud computing today: What are the benefits?
Why are businesses embracing it? What are its payoffs and pitfalls?
http://www.accelacomm.com/jaw/sdnl/114/51425149/
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users