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 1DF594640 for ; Wed, 13 Jul 2011 12:36:21 +0000 (UTC) Received: (qmail 72333 invoked by uid 500); 13 Jul 2011 12:36:18 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 72198 invoked by uid 500); 13 Jul 2011 12:36:18 -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 72185 invoked by uid 99); 13 Jul 2011 12:36:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 12:36:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of stephen.alan.connolly@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-ww0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 12:36:10 +0000 Received: by wwi18 with SMTP id 18so4816516wwi.24 for ; Wed, 13 Jul 2011 05:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8bgtLcceC5TYH6UWPMgF+PXfUL/Sy9Kx3gJA0lCEYf8=; b=rjD2IXztdrtxMAd/0UGTRSIQkSCOSQXorTENRD79RwU0XayJv5R2To52fptjBGLkVd BZVY1FfUXZqZoZXPg+I/T55xPSjol+PIdq4QGsj2Z7QZi16/BbLW/Mf8BOnYDwyhA2Y7 SH9K2KhvcLdnCSry0PCIPl0vU2m4K7r9FqUD4= MIME-Version: 1.0 Received: by 10.227.55.67 with SMTP id t3mr936029wbg.90.1310560550228; Wed, 13 Jul 2011 05:35:50 -0700 (PDT) Received: by 10.227.6.215 with HTTP; Wed, 13 Jul 2011 05:35:50 -0700 (PDT) In-Reply-To: <19465.80.246.32.33.1310559296.squirrel@office.sofd.eu> References: <4E1B922E.6040908@sofd.de> <4E1C9324.2090508@sofd.de> <19465.80.246.32.33.1310559296.squirrel@office.sofd.eu> Date: Wed, 13 Jul 2011 13:35:50 +0100 Message-ID: Subject: Re: uploading existing jar+pom as one artifact From: Stephen Connolly To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org mvn deploy:deployFile -Dfile=... -DpomFile=... -Durl=... should deploy both the jar and the pom. If it is not doing so can you raise a JIRA. Note that you might have to force the version of the deploy plugin as it could be an issue with an older version, mvn org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy-file ... rather than just plain deploy:deploy-file On 13 July 2011 13:14, wrote: >> On 07/12/2011 04:02 AM, Wendy Smoak wrote: >>> On Mon, Jul 11, 2011 at 8:15 PM, Olaf Klischat >>> wrote: >>>> mvn deploy:deploy-file -Dfile=mylib.jar DpomFile=mypom.pom >>>> -DgeneratePom=false -Durl= >>>> >>>> , it apparently just uploads the jar under the name>>> from >>>> mypom.pom>-.pom. >>> >>> You mentioned a timestamp, so... you're deploying a snapshot? >> >> Oh, yeah I do. Sorry, I forgot to mention that. Somewhat answering my >> own question, it looks like I can just issue two such mvn invocations to >> upload first the pom, then the jar, like so: >> >> mvn deploy:deploy-file -Dfile=mypom.pom -DpomFile=mypom.pom >> -DgeneratePom=false -Durl= >> >> mvn deploy:deploy-file -Dfile=mylib.jar -DgroupId=> mypom.pom> -DartifactId= -Dversion=SNAPSHOT >> -DgeneratePom=false -Dpackaging=jar -Durl= > > Hm, no, the differing timestamps resulting from the two seperate uploads > are a problem. A build that references this library in its dependencies > fails -- the POM isn't found: > > [WARNING] The POM for ::jar: is > missing, no dependency information available. > > So my original issue remains: How do I upload these two things (snapshot > jar + pom) correctly? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org