Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 64813 invoked from network); 4 May 2009 21:04:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 May 2009 21:04:20 -0000 Received: (qmail 54325 invoked by uid 500); 4 May 2009 21:04:18 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 54211 invoked by uid 500); 4 May 2009 21:04:17 -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 54201 invoked by uid 99); 4 May 2009 21:04:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 21:04:17 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 21:04:07 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1M15KE-00059q-Nt for users@maven.apache.org; Mon, 04 May 2009 14:03:46 -0700 Message-ID: <23376647.post@talk.nabble.com> Date: Mon, 4 May 2009 14:03:46 -0700 (PDT) From: huser To: users@maven.apache.org Subject: Re: maven release plugin issue In-Reply-To: <88c1b40905041328h739f2bfdof8b6824ba9e14f15@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: mpinjani@atxg.com References: <23375978.post@talk.nabble.com> <88c1b40905041328h739f2bfdof8b6824ba9e14f15@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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