« Return to Thread: Getting mvn deploy to work
Hi, all,
I'm having trouble getting command-line deployment to a copy of
Artifactory on my local network working, and am fairly baffled at what's
going on. Perhaps someone here can help - I've got about 25 projects
that interrelate that I'm working on kind of at the same time, and if I
have to use the web interface to upload each one after each change I'll
quickly go mad :-/
Running mvn deploy on the command line gives the following error:
[INFO] Error deploying artifact: Failed to transfer file:
http://timboudreau.com/mvn/repo/libs-snapshots-local/com/timboudreau/quickmodels/0.2-SNAPSHOT/quickmodels-0.2-20090701.214553-1.jar.
Return code is: 400
So on the server, I look at the apache logs and I see:
2009-07-01 17:29:14,781 [WARN ] (o.a.e.UploadServiceImpl:37) - Sending
HTTP error code 400: Could not find a local repository named repo to
deploy to..
Well, that's interesting. So something thinks the repository is
"repo". The <distributionManagement> section of my POM looks like this:
<distributionManagement>
<repository>
<name>timboudreau.com</name>
<url>http://timboudreau.com/mvn/repo/libs-releases-local</url>
<id>timboudreau.com</id>
</repository>
<snapshotRepository>
<id>timboudreau.com</id>
<name>timboudreau.com</name>
<url>http://timboudreau.com/mvn/repo/libs-snapshots-local</url>
</snapshotRepository>
</distributionManagement>
Nothing called just "repo" there. Could it be somehow being read from
the <repositories> section of the POM?
<repository>
<id>timboudreau</id>
<name>Tim Boudreau's Repository</name>
<layout>default</layout>
<url>http://timboudreau.com/mvn/repo/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
Meanwhile, in $HOME/.m2/settings.xml, the server is defined thusly:
<servers>
<server>
<id>timboudreau.com</id>
<username>secretname</username>
<password>secretpass</password>
<filePermissions>664</filePermissions>
<directoryPermissions>775</directoryPermissions>
<configuration></configuration>
</server>
</servers>
and this username/password combo works fine for deploying via the web
interface.
So my guess is that 'mvn deploy' is simply telling artifactory to put it
in the wrong place (btw, I've tried the urls both with dav: and without,
not sure which I should be using - read somewhere that straight http
doesn't work).
Any ideas? This is driving me batty!
Thanks,
Tim
------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users
« Return to Thread: Getting mvn deploy to work
| Free embeddable forum powered by Nabble | Forum Help |