Hi All

I have a JavaFX project, which creates a JAR artefact. I am using Apache Ivy
to generate the POM file.
How do I deploy both the JAR file and the POM file simultaneously to an
Artifactory using a username and password credentials?

I tried using the Apache Ivy task <ivy:install>. 

Then I tried CURL, calling it through a Ant build script

curl -v -X PUT - -data-binary @mylib-1.0.jar -u admin:XYZ1234
http://localhost:8080/artifactory/libs-releases-local/org/jfrog/test/1.0/mylib-1.0.jar

However I can seem to deploy the POM to the Artifactory.

I remember someone saying that there was REST API, is this the way to go?
Maybe I can get to the endpoint with Ant calling a simply Groovy Script or
something.

Any ideas.

re-1.0-SNAPSHOT.pom
     [exec] * About to connect() to devretappsvr1 port 8080 (#0)
     [exec] *   Trying 10.184.34.102... connected
     [exec] * Connected to devretappsvr1 (10.184.34.102) port 8080 (#0)
     [exec] * Server auth using Basic with user 'admin'
     [exec] > PUT
/artifactory/echannel-releases-local/com/xenonsoft/nelson/1.0-SNAPSHOT/nelson-
core-1.0-SNAPSHOT.pom HTTP/1.1
     [exec] > Authorization: Basic YWRtaW46cmV0YWRtaW4=
     [exec] > User-Agent: curl/7.19.2 (i386-pc-win32) libcurl/7.19.2
OpenSSL/0.9.8i zlib/1.2.3
     [exec] > Host: devretappsvr1:8080
     [exec] > Accept: */*
     [exec] > Content-Length: 140
     [exec] > Content-Type: application/x-www-form-urlencoded
     [exec] >
     [exec] } [data not shown]
     [exec]   % Total    % Received % Xferd  Average Speed   Time    Time    
Time  Current
     [exec]                                  Dload  Upload   Total   Spent   
Left  Speed
     [exec]
     [exec] 140   140    0     0    0   140      0    140 --:--:-- --:--:--
--:--:--   140< HTTP
/1.1 500 Failed to save resource
'echannel-releases-local:com/xenonsoft/nelson/1.0-SNAPSHOT/nels
on-1.0-SNAPSHOT.pom'.< Server: Apache-Coyote/1.1
     [exec] < Server: Artifactory/2.0.6
     [exec] < Content-Type: text/html;charset=utf-8
     [exec] <html><head><title>Apache Tomcat/6.0.16 - Error
report</title><style><!--H1 {font-fa
mily:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2 {font-fami
ly:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 {font-family
:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family
:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-s
erif;color:white;background-color:#525D76;} P
{font-family:Tahoma,Arial,sans-serif;background:wh
ite;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR
{color : #525D76;}--
></style> </head><body><h1>HTTP Status 500 - Failed to save resource
'echannel-releases-local:co
m/xenonsoft/nelson/1.0-SNAPSHOT/nelson-1.0-SNAPSHOT.pom'.</h1><HR size="1"
noshade="noshade"><p>
type Status report</p><p>message <u>Failed to save resource
'echannel-releases-loc
al:com/xenonsoft/nelson/1.0-SNAPSHOT/nelson-1.0-SNAPSHOT.pom'.</u></p><p>description
<u>T
he server encountered an internal error (Failed to save resource
'echannel-releases-local:com/xe
nonsoft/nelson/1.0-SNAPSHOT/nelson-1.0-SNAPSHOT.pom'.) that prevented it
from fulfilling this re
quest.</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/6.0.16</h3></body></html>
     [exec] < Content-Length: 1324
     [exec] < Date: Tue, 08 Sep 2009 12:39:49 GMT
     [exec] < Connection: close

Thanks!



-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-an-POM-file-and-JAR-to-Artifactory-Using-Ant---Ivy--tp25347757p25347757.html
Sent from the Artifactory-Users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to