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 8F8A71071C for ; Wed, 15 Jan 2014 09:28:31 +0000 (UTC) Received: (qmail 47863 invoked by uid 500); 15 Jan 2014 09:28:28 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 47596 invoked by uid 500); 15 Jan 2014 09:28:26 -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 47588 invoked by uid 99); 15 Jan 2014 09:28:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jan 2014 09:28:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adrien.rivard@gmail.com designates 209.85.214.181 as permitted sender) Received: from [209.85.214.181] (HELO mail-ob0-f181.google.com) (209.85.214.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jan 2014 09:28:20 +0000 Received: by mail-ob0-f181.google.com with SMTP id uy5so871562obc.40 for ; Wed, 15 Jan 2014 01:28:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CG36nhGVJh1vgzPH4cqvEWD8yPp0mGngl98enJcjQrc=; b=BeOMhbArmecP7yv/5n+4ZWIE9I+kMi8z5HMkpaW8Cef+kmL7v/88UcpDNx3jGgMK1L 01RACQICRr5I7dLflRrKgndQVs6OPlGijCbPc+S9vk0CiGdZXCk2K+LqprPI0MV3J2s8 0Uxw4B7IAzp/2mR9OxG2QLvlC2ySGHuhsHvdnLAwguP6J+1mQT1mG+LhPlCxTvQUKx66 lZUzMtikZg0aDi5XttB8ZHbSe86LsBsQLv1GctTubWJdMOzPI15vmcpQxXPu+wjl+KYw smkUYYbEJy91jc0aci9V++Rc139pJw3qZ0Xkt86E2RNR+WQx4HTONA91cT7vlfdjly6f 43Ig== MIME-Version: 1.0 X-Received: by 10.60.63.235 with SMTP id j11mr842843oes.61.1389778080028; Wed, 15 Jan 2014 01:28:00 -0800 (PST) Received: by 10.60.146.193 with HTTP; Wed, 15 Jan 2014 01:27:59 -0800 (PST) In-Reply-To: References: Date: Wed, 15 Jan 2014 10:27:59 +0100 Message-ID: Subject: Re: war + webapp dependency classifier From: Adrien Rivard To: Maven Users List Content-Type: multipart/alternative; boundary=001a11c24dbcc6e26304effeec14 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c24dbcc6e26304effeec14 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Is the mycompany-parent pom.xml in the directory corresponding to ../pom.xml at version -003 ? If it is not it may be not used . You should either and put it to 001-SNAPS= HOT if you want to use the relativePath file or let the relativePath empty ( ) to use the released version (or don't specify relativePath) Also you should remove the trailing '-' in your version, they are usually automatically appended, and it could be also your problem. If this does'nt help, please post debug log and the some of your parent pom= . On Wed, Jan 15, 2014 at 10:11 AM, Adrien Ruffi=C3=A9 wrote: > Hello all, > > I have maven 3 > > I have a webapp which derived from a first webapp, I have read this > article: > > > http://ovaraksin.blogspot.fr/2011/09/inheritance-in-maven-based-web-proje= cts > .html > > But when I try to done following command, "mvn clean package" or a simple > "mvn dependency:tree" I get the following error: > > [ERROR] Failed to execute goal on project mycompany-ci: Could not resolve > dependencies for project com.mycompany:mycompany-ci:jar: 001-SNAPSHOT: > Could > not find artifact com.mycompany:mycompany-webapp:war:webapp:003 in centra= l > (http://192.168.1.160:8081/artifactory/libs-release) -> [Help 1] > > However I have 3 artifacts inside libs-release-local of my artifactory: > mycompany-webapp-003-classes.jar > mycompany-webapp-003.jar > mycompany-webapp-003.pom > mycompany-webapp-003.war > > I attached also my pom.xml of the second webapp, and below a extract of m= y > first webapp (the base webapp) > > > com. mycompany > mycompany-parent > -003 > ../pom.xml > > > mycompany-webapp > jar > > > Do you have an idea of the problem ? > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > --=20 Adrien Rivard --001a11c24dbcc6e26304effeec14--