Return-Path: X-Original-To: apmail-river-dev-archive@www.apache.org Delivered-To: apmail-river-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0531ADFE5 for ; Mon, 11 Feb 2013 16:45:12 +0000 (UTC) Received: (qmail 9694 invoked by uid 500); 11 Feb 2013 16:45:11 -0000 Delivered-To: apmail-river-dev-archive@river.apache.org Received: (qmail 9650 invoked by uid 500); 11 Feb 2013 16:45:11 -0000 Mailing-List: contact dev-help@river.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@river.apache.org Delivered-To: mailing list dev@river.apache.org Received: (qmail 9235 invoked by uid 99); 11 Feb 2013 16:45:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 16:45:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of danrollo@gmail.com designates 209.85.212.46 as permitted sender) Received: from [209.85.212.46] (HELO mail-vb0-f46.google.com) (209.85.212.46) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 16:45:02 +0000 Received: by mail-vb0-f46.google.com with SMTP id b13so3871031vby.5 for ; Mon, 11 Feb 2013 08:44:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=+LQrCVEacc751Qms65uNXgutQcE1D8vE+euRpcHMW6M=; b=X/5br6LaYCvKBne5akMwSXOvZgh5hgnJ9LVJJDmUiQ6x3tAy7jqMQfdLvlchyNwZLd XG1M80wF6wBjOTF51LsHFTH5qHm3wvlDAw74WfDIVzdfj2Ze//F3T8ccPzuN7kEOb43v 4VCQzqqf+j+PxqZLYLex2bOTIWxJU8NpoQK6yQ3VrhbnAFceS0RJpraADNYljC5JQrcm N2RhA0zG4KPxbSbAwZK5J2wLA10f/KFYx95KXQ1ses6PRts83mN5giZe6xsMujwPCz19 LkxLFBY3GycevD5GtlhKFFV17EHlk1ofSHVYkgFkpHNQZqKkoJ2py5aayg7a9N3GVMOU bwow== X-Received: by 10.220.156.68 with SMTP id v4mr19624528vcw.10.1360601080766; Mon, 11 Feb 2013 08:44:40 -0800 (PST) Received: from [10.6.18.20] (pool-173-72-42-60.cmdnnj.fios.verizon.net. [173.72.42.60]) by mx.google.com with ESMTPS id x17sm60170973vdi.1.2013.02.11.08.44.38 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Feb 2013 08:44:39 -0800 (PST) Message-ID: <51191FF1.3070001@gmail.com> Date: Mon, 11 Feb 2013 11:44:33 -0500 From: Dan Rollo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: dev@river.apache.org Subject: Maven deployment: Deploy sources too? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Dennis, It is great to see the jars getting ready to deploy to Central. I think just having the poms and interrelated dependencies declared will be a big help! Under the category of "give an inch, ask for a mile": Could we also deploy these artifacts with related source files? I realise the source trees do not perfectly match to the various jars, but even with certain overlap, having the source jars for each production jar in the central repo makes debugging in IDEs very nice. That said, I previously struggled to get 'mvn deploy:deploy-file' to work with sources (you have to do both production jar and source jar together for it to work). The key was adding 'files', 'types', and 'classifiers' args for each attached artifact. Here's an example that deploys a production dist jar, and its sources and javadoc jars: ...="mvn deploy:deploy-file" + "-Durl=${repository-url}" + "-DrepositoryId=${repository-id}"+ "-DpomFile=${pom}"+ "-Dfile=${dist-jar}"+ "-Dfiles=${maven-sources-jar},${maven-javadoc-jar}"+ "-Dtypes=jar,jar"+ "-Dclassifiers=sources,javadoc" Of course I'm not even sure if we produce 'sources' jar currently (much less how best to match them to each production jar). Dan Rollo in: river/jtsk/trunk/poms/deploy_river.groovy + String deployCommand = "mvn deploy:deploy-file "+ + "-DrepositoryId=apache.releases.https "+ + "-Dversion=${version} "+ + "-DgeneratePom=false -Dpackaging=jar "+ + "-DgroupId=${gId} "+ + "-DartifactId=${aId} "+ + "-Dfile=${dir}/${aId}.jar "+ + "-DpomFile=./${aId}.pom "+ + "-Durl=https://repository.apache.org/service/local/staging/deploy/maven2"