maybe try w/o filePermissions and directoryPermissions, and you can take a look at nexus log to get more details
On Fri, Jul 29, 2011 at 5:29 AM, laredotornado-3 <[email protected]>wrote: > Hi, > > I'm using Maven 3.0.3 with a Sonatype repository. I'm able to deploy my > artifact to the remote repository the first time, but when i try and deploy > again, using > > mvn -e -X clean deploy -s sonatype.xml > > It fails with the below error … > > Caused by: org.apache.maven.wagon.TransferFailedException: Failed to > transfer file: > > http://sonatype.myco.com/nexus/content/repositories/releases/com/nna/parent/1.0/parent-1.0.pom > . > Return code is: 400 > at > > org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) > at > org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) > at > org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) > at > org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) > at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) > at > > org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:825) > at > > org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:465) > > Here is what is in my sonatype.xml file … > > <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 > > http://maven.apache.org/xsd/settings-1.0.0.xsd"> > <servers> > <server> > <id>sonatype-nexus</id> > <username>username</username> > <password>password</password> > <filePermissions>664</filePermissions> > <directoryPermissions>775</directoryPermissions> > </server> > </servers> > </settings> > > and here is the relevant section from my pom.xml … > > <distributionManagement> > <repository> > <id>sonatype-nexus</id> > > <url>http://sonatype.myco.com/nexus/content/repositories/releases/</url> > </repository> > </distributionManagement> > > Anyway, any insights are greatly appreciated on why I'm getting the 400 > error. Thanks, - Dave > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Trouble-deploying-to-remote-repository-after-the-first-time-400-error-tp4644301p4644301.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
