Return-Path: X-Original-To: apmail-archiva-users-archive@www.apache.org Delivered-To: apmail-archiva-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 42AEB10898 for ; Thu, 6 Mar 2014 15:51:51 +0000 (UTC) Received: (qmail 94347 invoked by uid 500); 6 Mar 2014 15:51:49 -0000 Delivered-To: apmail-archiva-users-archive@archiva.apache.org Received: (qmail 94108 invoked by uid 500); 6 Mar 2014 15:51:45 -0000 Mailing-List: contact users-help@archiva.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@archiva.apache.org Delivered-To: mailing list users@archiva.apache.org Received: (qmail 94099 invoked by uid 99); 6 Mar 2014 15:51:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 15:51:43 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bklau2006@gmail.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 15:51:39 +0000 Received: by mail-pb0-f47.google.com with SMTP id up15so2766007pbc.34 for ; Thu, 06 Mar 2014 07:51:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=MCmkzMVIHfAKKE+tG62RIBfiEkkCS9+x6KRSZp7j3f4=; b=v2El4A6Rknz1Y3yyMsID/w/epwmchFb4pLfd4a+s8arNCsn0U04jagFm3pPmmssdmt 6cuJ2m9wd4lVcsSyBeWNiNZvu+HNxPjz35h/iSs+/C4stZhOMKvWkU7jMiJZ1WC5uBb6 RnysturDkspGkyS4nl1YF1kLH4EXW9WAHAMs5DRwcDWN0b4k+ukWNP+T+sZ7T8JMl6/t TADqzwT6zmDP8Sg22amnTX6fFKMjQtjvQ/tyHF0DpBZSUR6QPLC09kHzpQHmxFjDWrSq 2L8hDjCBMjsf+5QShKnfJCbURt2Lt2HAEcJCXJYALPfdeWgyL/bRXoXmZ3nnIt6539hx dawA== MIME-Version: 1.0 X-Received: by 10.68.133.138 with SMTP id pc10mr15245373pbb.98.1394121079509; Thu, 06 Mar 2014 07:51:19 -0800 (PST) Received: by 10.68.25.129 with HTTP; Thu, 6 Mar 2014 07:51:19 -0800 (PST) In-Reply-To: References: Date: Thu, 6 Mar 2014 10:51:19 -0500 Message-ID: Subject: Re: Deploy URL for "internal" repository From: Bk Lau To: users@archiva.apache.org Content-Type: multipart/alternative; boundary=001a1134a338b7d7d404f3f21b79 X-Virus-Checked: Checked by ClamAV on apache.org --001a1134a338b7d7d404f3f21b79 Content-Type: text/plain; charset=ISO-8859-1 >>are you deploying a released version (i.e not a SNAPSHOT one) and this >>repo already contains this version? No. I checked to make sure this version don't exists >>If that's the case it's not possible per default (if you really want >>that you need to configure the repository to accept redeploy of >>existing versions) Even if the "redeploy" option was turned off, I got the same error. On Wed, Mar 5, 2014 at 11:25 PM, Olivier Lamy wrote: > are you deploying a released version (i.e not a SNAPSHOT one) and this > repo already contains this version? > If that's the case it's not possible per default (if you really want > that you need to configure the repository to accept redeploy of > existing versions) > > On 6 March 2014 14:11, Bk Lau wrote: > > I also tested changing the context to " > > http://localhost:9080/archiva/repository/internal", I still got the same > > error as above "bad request 400" > > > > > > On Wed, Mar 5, 2014 at 9:48 PM, Bk Lau wrote: > > > >> Changing the deploy URL to "http://localhost:9080/repository/internal" > >> helps overcome the "PUT" not supported message but I still got a bad > >> request message. > >> The file I'm uploading is a just a small file of 60KB; so I am at a > lost. > >> I tried latest version of Nexus 2.7.2-30 also for sanity check and it > was > >> able to deploy. So I'm at a lost. > >> > >> 03/05/14 21:38:41.197 SEVERE: [DefaultTransferListener] Artifact > transfer > >> failed org.eclipse.aether.transfer.ArtifactTransferException: Could not > >> transfer artifact org.something > >> rom/to External-Repo (http://localhost:9080/repository/internal): Bad > >> Request (400) > >> > >> at > >> > org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43) > >> at > >> > org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355) > >> at > >> > org.eclipse.aether.connector.basic.BasicRepositoryConnector.put(BasicRepositoryConnector.java:274) > >> at > >> > org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:335) > >> at > >> > org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:269) > >> at > >> > org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:434) > >> ... > >> Caused by: org.apache.http.client.HttpResponseException: Bad Request > (400) > >> > >> at > >> > org.eclipse.aether.transport.http.HttpTransporter.handleStatus(HttpTransporter.java:458) > >> at > >> > org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:283) > >> at > >> > org.eclipse.aether.transport.http.HttpTransporter.implPut(HttpTransporter.java:257) > >> at > >> > org.eclipse.aether.spi.connector.transport.AbstractTransporter.put(AbstractTransporter.java:117) > >> at > >> > org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.runTask(BasicRepositoryConnector.java:510) > >> > >> > >> On Wed, Mar 5, 2014 at 9:18 PM, Bk Lau wrote: > >> > >>> Tried that, doesn't work. > >>> > >>> > >>> On Wed, Mar 5, 2014 at 7:15 PM, Olivier Lamy wrote: > >>> > >>>> Last Archiva version now user / as root context path > >>>> So change http://localhost:9080/archiva/repository/internal > >>>> to http://localhost:9080/repository/internal > >>>> > >>>> If you still want to use /archiva as context path please read here: > >>>> http://archiva.apache.org/docs/2.0.0/adminguide/standalone.html > >>>> > >>>> If it's not the problem that's weird because I don't see anything in > >>>> the code preventing the use of PUT instead of POST. > >>>> > >>>> > >>>> On 6 March 2014 07:25, Bk Lau wrote: > >>>> > I'm seeing the same behaviour indicates by the bug: > >>>> > > >>>> > http://stackoverflow.com/questions/19313521/apache-archiva-1-4-m4-deployment-issue > >>>> > https://jira.codehaus.org/browse/MRM-1786 > >>>> > > >>>> > 03/05/14 10:32:58.775 SEVERE: [DefaultTransferListener] Artifact > >>>> transfer > >>>> > failed org.eclipse.aether.transfer.ArtifactTransferException: Could > not > >>>> > transfer artifact com.abc:HelloWorld:war:1.0.0 from/to > External-Repo ( > >>>> > http://localhost:9080/archiva/repository/internal/): HTTP method > PUT > >>>> is not > >>>> > supported by this URL (405) > >>>> > at > >>>> > > >>>> > org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43) > >>>> > at > >>>> > > >>>> > org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355) > >>>> > at > >>>> > > >>>> > org.eclipse.aether.connector.basic.BasicRepositoryConnector.put(BasicRepositoryConnector.java:274) > >>>> > at > >>>> > > >>>> > org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:335) > >>>> > at > >>>> > > >>>> > org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:269) > >>>> > .... > >>>> > at > >>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > >>>> > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > >>>> > at > >>>> > > >>>> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > >>>> > at > >>>> > > >>>> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > >>>> > at java.lang.Thread.run(Thread.java:722) > >>>> > Caused by: org.apache.http.client.HttpResponseException: HTTP method > >>>> PUT is > >>>> > not supported by this URL (405) > >>>> > at > >>>> > > >>>> > org.eclipse.aether.transport.http.HttpTransporter.handleStatus(HttpTransporter.java:458) > >>>> > at > >>>> > > >>>> > org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:283) > >>>> > at > >>>> > > >>>> > org.eclipse.aether.transport.http.HttpTransporter.implPut(HttpTransporter.java:257) > >>>> > at > >>>> > > >>>> > org.eclipse.aether.spi.connector.transport.AbstractTransporter.put(AbstractTransporter.java:117) > >>>> > at > >>>> > > >>>> > org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.runTask(BasicRepositoryConnector.java:510) > >>>> > at > >>>> > > >>>> > org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350) > >>>> > ... 14 more > >>>> > > >>>> > > >>>> > > >>>> > On Wed, Mar 5, 2014 at 3:05 PM, Bk Lau wrote: > >>>> > > >>>> >> Hi : > >>>> >> > >>>> >> The "out-of-the-box" URL for "internal" repository is > >>>> >> http://:8080/archiva/repository/internal > >>>> >> for Apache Archiva 1.3.6 > >>>> >> > >>>> >> But for Apache Archiva 2.0.0, it seems to indicate to be something > >>>> else > >>>> >> because my deployment to the previous > >>>> >> URL http://:8080/archiva/repository/internal > >>>> >> > >>>> >> no longer works!!! > >>>> >> > >>>> >> Am I missing something? > >>>> >> > >>>> >> /BK Lau > >>>> >> > >>>> > >>>> > >>>> > >>>> -- > >>>> Olivier Lamy > >>>> Ecetera: http://ecetera.com.au > >>>> http://twitter.com/olamy | http://linkedin.com/in/olamy > >>>> > >>> > >>> > >> > > > > -- > Olivier Lamy > Ecetera: http://ecetera.com.au > http://twitter.com/olamy | http://linkedin.com/in/olamy > --001a1134a338b7d7d404f3f21b79--