Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 81443 invoked from network); 5 May 2009 06:44:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 May 2009 06:44:10 -0000 Received: (qmail 48357 invoked by uid 500); 5 May 2009 06:44:08 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 48262 invoked by uid 500); 5 May 2009 06:44:07 -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 48252 invoked by uid 99); 5 May 2009 06:44:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 06:44:07 +0000 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of stephen.alan.connolly@gmail.com designates 209.85.219.172 as permitted sender) Received: from [209.85.219.172] (HELO mail-ew0-f172.google.com) (209.85.219.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 06:43:56 +0000 Received: by ewy20 with SMTP id 20so7556009ewy.12 for ; Mon, 04 May 2009 23:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=OiODn9EnfFS6qf5AnBkjYuwFOe/t3T43aERdrNNmdE8=; b=xVFJ4PXnK95rn61UG0dGxidM56U82l1sQZIPWB+lWLA9Og0MvIIFHn6SRsfgj9OLhH qAQm1RUxYKlFktHVPbQ9YuxTzXKzddNoSXtNI9zhbsZdli7irZ/9hGi1kuAmy3RVMixk cXtLwVv0XiG+OCy6S3G9C5E5pwxI2Lbh+0cpw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Lk0An4/Zxk22WCSeZnOvbes5GhSAVm7iIsJecXTEbv1Cp3N4p89pHVMbZ/wcqAb3gC yE0FB/G21HT7G2hVxPLlyUY0enCoBsVO1uhNOIoYoufbMQTaOLm6SCkSTTutx1KlP3Cd EDTzmFt/nWvrVSEEiZ2DGDp+0ITHeic/F86fc= MIME-Version: 1.0 Received: by 10.210.79.3 with SMTP id c3mr7349555ebb.41.1241505215583; Mon, 04 May 2009 23:33:35 -0700 (PDT) In-Reply-To: <23376647.post@talk.nabble.com> References: <23375978.post@talk.nabble.com> <88c1b40905041328h739f2bfdof8b6824ba9e14f15@mail.gmail.com> <23376647.post@talk.nabble.com> Date: Tue, 5 May 2009 07:33:35 +0100 Message-ID: <88c1b40905042333j17869171k2cf368f55292309c@mail.gmail.com> Subject: Re: maven release plugin issue From: Stephen Connolly To: Maven Users List Content-Type: multipart/alternative; boundary=0015174c46165c972b04692475df X-Virus-Checked: Checked by ClamAV on apache.org --0015174c46165c972b04692475df Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit no, I'm suggesting that you use the dependency plugin to unpack your jar for you. That way you will not care if it has not beein installed into the repository *yet* 2009/5/4 huser > > I am fairly new to maven. So I guess I need a plugin to copy the > abc-interface-api.jar to my local repository ? Are you suggesting I do this > by dependency plugin. I tried adding this. > > Basically, abc-interface-api-$project.parent.version} should get copied to > local .m2 repository under com/abc/t3/abc-interface=api/1.6 > > > > org.apache.maven.plugins > maven-dependency-plugin > > > copy > package > > copy > > > > > com.abc.t3 > abc-interface-api > ${project.parent.version} > jar > true > > ${env.M2_REPO}/com/abc/t3 > > > abc-interface-api-${project.parent.version}.jar > > > > > > > > > but, then I get this error: > > [INFO] [ERROR] BUILD ERROR > [INFO] [INFO] > ------------------------------------------------------------------ > ------ > [INFO] [INFO] Unable to find artifact. > [INFO] > [INFO] Embedded error: Unable to download the artifact from any repository > [INFO] > [INFO] Try downloading the file manually from the project website. > [INFO] > [INFO] Then, install it using the command: > [INFO] mvn install:install-file -DgroupId=com.abc.t3 > -DartifactId=abc-inter > face-api -Dversion=1.6 -Dpackaging=jar -Dfile=/path/to/file > [INFO] > [INFO] Alternatively, if you host your own repository you can deploy the > file th > ere: > [INFO] mvn deploy:deploy-file -DgroupId=com.abc.t3 > -DartifactId=abc-interfa > ce-api -Dversion=1.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] > -Dreposito > ryId=[id] > [INFO] > [INFO] > [INFO] com.abc.t3:abc-interface-api:jar:1.6 > [INFO] > [INFO] from the specified remote repositories: > [INFO] nexus > (http://abcsvn001.na.abcglobal.com:8081/nexus/content/groups/publi > c), > [INFO] snapshots > (http://abcsvn001.na.abcglobal.com:8081/nexus/content/reposito > ries/snapshots > ) > [INFO] > [INFO] [INFO] > ------------------------------------------------------------------ > > Stephen Connolly-2 wrote: > > > > ugh! > > > > that sounds hacky hacky hack > > > > you probably should try having the dependency plugin unpack for you > > > > -Stephen > > On 04/05/2009, huser wrote: > >> > >> Hi, > >> > >> I am running maven release plugin by: > >> > >> mvn -f pom.xml -Pabc.debug.release --batch-mode -Dtag=REL1.5-TEST > >> -DtagBase="https://abcsvn001.na.abcglobal.com/abc_repos/T3/tags" > >> -DreleaseVersion=1.5 -DdevelopmentVersion=1.6-SNAPSHOT release:prepare > >> > >> And I get this build error. > >> [INFO] [INFO] An Ant BuildException has occured: The following error > >> occurred wh > >> ile executing this line: > >> [INFO] > >> > C:\mvn_rel\int_002_dev_test\services-api\abc-interface-api\xsd-extract.xm > >> l:19: Error while expanding C:\Documents and > >> Settings\huser\.m2\repository\co > >> m\abc\t3\abc-websvc-api\1.5\abc-websvc-api-1.5.jar > >> [INFO] java.io.FileNotFoundException: C:\Documents and > >> Settings\huser\.m2\rep > >> ository\com\abc\t3\abc-websvc-api\1.5\abc-websvc-api-1.5.jar (The system > >> cannot > >> find the path specified) > >> > >> I do not get this error if I do not use the release plugin i.e. > >> mvn -f pom.xml -Pabc.debug.release clean install deploy > >> > >> In my xsd-extract.xml, I have an environment variable $verinfo which > >> > >> >> > src="${env.M2_REPO}/com/abc/t3/abc-websvc-api/${verinfo}/abc-websvc-api-${verinfo}.jar" > >> > >> gets its value defined in abc-interface-api > >> > >> > >> > >> org.apache.maven.plugins > >> > maven-antrun-plugin > >> > >> > >> extract-xsds > >> initialize > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> run > >> > >> > >> > >> > >> > >> Why is abc-websvc-api-1.5.jar being called before it is deployed in .m2 > ? > >> This jar does get generated in abc-interface-api\target. But it does not > >> get > >> deployed in .m2 > >> > >> Any ideas ? > >> > >> thanks, > >> -- > >> View this message in context: > >> > http://www.nabble.com/maven-release-plugin-issue-tp23375978p23375978.html > >> Sent from the Maven - Users mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> 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 > > > > > > > > -- > View this message in context: > http://www.nabble.com/maven-release-plugin-issue-tp23375978p23376647.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --0015174c46165c972b04692475df--