Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-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 6B1AA17768 for ; Fri, 8 Jan 2016 09:52:06 +0000 (UTC) Received: (qmail 80791 invoked by uid 500); 8 Jan 2016 09:52:05 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 80721 invoked by uid 500); 8 Jan 2016 09:52:05 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 80709 invoked by uid 99); 8 Jan 2016 09:52:04 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2016 09:52:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7195EC0D2C for ; Fri, 8 Jan 2016 09:52:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.092 X-Spam-Level: *** X-Spam-Status: No, score=3.092 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIM_INVALID=0.01, URIBL_BLOCKED=0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=neutral reason="invalid (public key: OpenSSL error: bad base64 decode)" header.d=cservenak.net Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id rfbOhGAcZo9w for ; Fri, 8 Jan 2016 09:51:57 +0000 (UTC) Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id E54A8206A7 for ; Fri, 8 Jan 2016 09:51:56 +0000 (UTC) Received: by mail-wm0-f49.google.com with SMTP id f206so129297581wmf.0 for ; Fri, 08 Jan 2016 01:51:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cservenak.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=vTyKsEDIHNc5N3I/NAT5pxN5224lrwooSA+10r++zyo=; b=Uc4sgz+JJzNN0tlqjXQsNTY/FLLmwYpPCSE4OezDKHCCIFHO+d+rsdYULe0dYq/jnd BL5X/YUTed7ZSUw5lqITaWHA0h9URc38gDVxRF86xkDxFpv/Lm9lZ8GlZXxpiVNaljjp g1CwnXxmBwY1YI+lTOr0caT9cqfMTWPhxVN9o= X-Received: by 10.195.11.100 with SMTP id eh4mr9767979wjd.83.1452246715608; Fri, 08 Jan 2016 01:51:55 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?VGFtw6FzIENzZXJ2ZW7DoWs=?= Date: Fri, 08 Jan 2016 09:51:45 +0000 Message-ID: Subject: Re: maven-metadata.xml should be deployed last To: Maven Users List Content-Type: multipart/alternative; boundary=047d7bae47be9c377d0528cf8967 --047d7bae47be9c377d0528cf8967 Content-Type: text/plain; charset=UTF-8 I think yes, maven repository is designed for "quick turnaround" in mind: as soon something is deployed, should be available to others. In every case, the artifact should go first, and just then the metadata (that references the artifact)... On Fri, Jan 8, 2016 at 10:29 AM Dan Tran wrote: > Hi > > My maven POM module has a couple of artifacts to be deployed. Here is the > order of deployment > > [INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ > brs-installer --- > [INFO] Downloading: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/maven-metadata.xml > [INFO] Downloaded: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/maven-metadata.xml > (994 B at 44.1 KB/sec) > [INFO] Uploading: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/brs-installer-1.0.0-20160108.090346-509.pom > [INFO] Uploaded: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/brs-installer-1.0.0-20160108.090346-509.pom > (12 KB at 3.3 KB/sec) > [INFO] Downloading: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/maven-metadata.xml > [INFO] Downloaded: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/maven-metadata.xml > (545 B at 24.2 KB/sec) > [INFO] Uploading: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/maven-metadata.xml > [INFO] Uploaded: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/maven-metadata.xml > (1004 B at 122.6 KB/sec) > [INFO] Uploading: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/maven-metadata.xml > [INFO] Uploaded: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/maven-metadata.xml > (545 B at 2.5 KB/sec) > [INFO] Uploading: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/brs-installer-1.0.0-20160108.090346-509-build.xml > [INFO] Uploaded: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/brs-installer-1.0.0-20160108.090346-509-build.xml > (14 KB at 86.0 KB/sec) > [INFO] Uploading: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/maven-metadata.xml > [INFO] Uploaded: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/maven-metadata.xml > (1004 B at 140.1 KB/sec) > [INFO] Uploading: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/brs-installer-1.0.0-20160108.090346-509.ova > [INFO] Uploaded: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/brs-installer-1.0.0-20160108.090346-509.ova > (4044494 KB at 34899.1 KB/sec) > [INFO] Uploading: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/maven-metadata.xml > [INFO] Uploaded: > > http://mycomp.com:8081/myrepo/snapshots/com/mycomp/brs/installer/brs-installer/1.0.0-SNAPSHOT/maven-metadata.xml > (1004 B at 98.0 KB/sec) > > > The issue here, after the POM, maven-metadata.xml is followed, the > subsequent deployments are large artifacts ( ~4G) > > The issue here if user attempts to download the latest snapshot while the > large artifact still in the middle of upload, the download will fail with > not found error > > Does it make sense to enhance maven deploy plugin to deploy > maven-metadata.xml last? > > Thanks > > -Dan > --047d7bae47be9c377d0528cf8967--