Return-Path: X-Original-To: apmail-builds-archive@minotaur.apache.org Delivered-To: apmail-builds-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6CC759E56 for ; Sat, 25 Feb 2012 01:15:52 +0000 (UTC) Received: (qmail 56836 invoked by uid 500); 25 Feb 2012 01:15:52 -0000 Delivered-To: apmail-builds-archive@apache.org Received: (qmail 56739 invoked by uid 500); 25 Feb 2012 01:15:52 -0000 Mailing-List: contact builds-help@apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: builds@apache.org Delivered-To: mailing list builds@apache.org Received: (qmail 56731 invoked by uid 99); 25 Feb 2012 01:15:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2012 01:15:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.214.178 as permitted sender) Received: from [209.85.214.178] (HELO mail-tul01m020-f178.google.com) (209.85.214.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2012 01:15:46 +0000 Received: by obbwc7 with SMTP id wc7so4340513obb.23 for ; Fri, 24 Feb 2012 17:15:25 -0800 (PST) Received-SPF: pass (google.com: domain of sebbaz@gmail.com designates 10.60.8.197 as permitted sender) client-ip=10.60.8.197; Authentication-Results: mr.google.com; spf=pass (google.com: domain of sebbaz@gmail.com designates 10.60.8.197 as permitted sender) smtp.mail=sebbaz@gmail.com; dkim=pass header.i=sebbaz@gmail.com Received: from mr.google.com ([10.60.8.197]) by 10.60.8.197 with SMTP id t5mr2190668oea.3.1330132525301 (num_hops = 1); Fri, 24 Feb 2012 17:15:25 -0800 (PST) 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=AfGgLclFA1zY1K3/A7eueTrf9H7IS3rOzUC2WEUBGMY=; b=p4f2kOWkzXLcajamf7yXmxdKRveeMoVzBpSYRk85TByQ7RbItbMO7FC6VmdmzypH82 NWWl8tGltsFKO1q0yl6KH7glAiVxPO3Il1+j1lK7zVBuYSaBqfzB5Mdmnhjj+j+8UrVz qry+gyDyPWZYa2V44AABUK2W/bgsJQ7qOOJOA= MIME-Version: 1.0 Received: by 10.60.8.197 with SMTP id t5mr1794261oea.3.1330132525193; Fri, 24 Feb 2012 17:15:25 -0800 (PST) Received: by 10.182.124.71 with HTTP; Fri, 24 Feb 2012 17:15:25 -0800 (PST) In-Reply-To: References: Date: Sat, 25 Feb 2012 01:15:25 +0000 Message-ID: Subject: Re: Deploy snapshots to Maven repo? From: sebb To: builds@apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 24 February 2012 15:09, sebb wrote: > On 24 February 2012 14:37, Olivier Lamy wrote: >> 2012/2/24 sebb : >>> On 24 February 2012 09:19, Olivier Lamy wrote: >>>> 2012/2/24 sebb : >>>>> On 24 February 2012 03:08, Benson Margulies wrote: >>>>>> On Thu, Feb 23, 2012 at 8:51 PM, sebb wrote: >>>>>>> Do any of the build systems support deployment of Maven snapshots? >>>>>>> >>>>>> >>>>>> yes. >>>>>> >>>>>>> If so, how can this be added to a build? >>>>>> >>>>>> In Jenkins by ticking the box in the job config or adding 'deploy' to >>>>>> the list of maven goals. >>>>> >>>>> Which box is that? >>>>> If it is "Publish artifacts to SCP Repository" then there does not >>>>> seem to be an SCP site; also it's not clear what the target path >>>>> should be. >>>>> >>>>> [The build does not use Maven] >>>> >>>> In such case, you must use ant (if your build is ant based) maven >>>> tasks to deploy snapshots to >>>> https://repository.apache.org/content/repositories/snapshots (server >>>> id to use: apache.snapshots.https ). >>>> Jenkins nodes have the necessary ~/.m2/settings.xml (normally :-) ). >>> >>> The build uses Ant, but does not use the ant maven tasks - are those >>> installed on Jenkins nodes? >> AFAIK nope. (as you use ant what about storing the jar in your project ? ) > > Could do, but was hoping to avoid that, as it's yet another dependenccy. > Also will need to change the build file to use it instead of java. > > However, it might be better in the long run. If only ... I've been trying to use it to deploy from my PC to the Nexus snapshot repo. However, the first problem is that the plugin seems to treat encrypted passwords as if they were normal passwords. [Looks like http://jira.codehaus.org/browse/MANTTASKS-177 which has yet to be addressed after 2 years] That's a blocker as far as I'm concerned. I did try using plain text password, but that failed with error code 400 - not sure what is going on there. [Bad password gives 401, so I know it is not that] So basically no go unless I can find a way to determine the location of maven home so I can use the real maven. >>> >>> Alternatively, is there a standard location or env variable that >>> points to the Maven installation on Jenkins nodes? >>> >>> The script currently uses Java to run Maven as per [1] >>> This relies on finding the maven home directory via the M2_HOME >>> variable, which does not seem to be set on Jenkins. >> Jenkins doesn't set this env var. As users are free to use different >> maven versions. >> So it's define when you choose a maven version for your build. > > Which of course is not done for Maven builds. > >>> >>> [1] http://maven.apache.org/ant-tasks/examples/mvn.html#Using_the_Java_Task >>> >>>> -- >>>> Olivier Lamy >>>> Talend: http://coders.talend.com >>>> http://twitter.com/olamy | http://linkedin.com/in/olamy