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 04D58995A for ; Mon, 4 Jun 2012 09:24:18 +0000 (UTC) Received: (qmail 51457 invoked by uid 500); 4 Jun 2012 09:24:16 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 51100 invoked by uid 500); 4 Jun 2012 09:24:15 -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 51070 invoked by uid 99); 4 Jun 2012 09:24:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 09:24:15 +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 (nike.apache.org: domain of anders.g.hammar@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qc0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 09:24:08 +0000 Received: by qcsp15 with SMTP id p15so2603120qcs.30 for ; Mon, 04 Jun 2012 02:23:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=KxrY5s/3V9LJZyIXIGJ8DjRlxrtEFemRIIsU4Am5EgY=; b=rRbjGejm5gMhpG1JsGOlaOP2IGnCMzCiRZ3V3GTtiY7YSHTNWqw23CRGh+2AhQGJww poiqq9mwbU+LGw7bZpQgMYovcN8E4KipZ0o9EV1oGUlXegSa+klqtKzj57oCLHoGIg7L 7qcSIH6p6CaVlpHCzHc9I7jxVmhCP5sAkF5EC23ay8Vba2KFXOPmQ3DgFghWORyBgTkx tH5MwQMi0n6FOe/c/p9lC22gSp7khrMqOTp3Xh//16ACTPkinfXuntwwPUgcTJxHwip5 zgcyLsyC8p69hCkNn62agfE7GCVxOJrkm/bOWgwHvUXL7CpfryGFZA14Y4D2NA/xTo4c QlIA== MIME-Version: 1.0 Received: by 10.229.112.75 with SMTP id v11mr3519466qcp.144.1338801827476; Mon, 04 Jun 2012 02:23:47 -0700 (PDT) Sender: anders.g.hammar@gmail.com Received: by 10.229.66.15 with HTTP; Mon, 4 Jun 2012 02:23:47 -0700 (PDT) In-Reply-To: <75F3A2D98EDE2545BDC06B5B6C1CEC5149D0A7C2@ESESSMW1739.eemea.ericsson.se> References: <75F3A2D98EDE2545BDC06B5B6C1CEC5149D0A7C2@ESESSMW1739.eemea.ericsson.se> Date: Mon, 4 Jun 2012 11:23:47 +0200 X-Google-Sender-Auth: enQbjWFvyZEjQTDiWnaDpUPPS-I Message-ID: Subject: Re: maven dependency plugin and maven 3 From: Anders Hammar To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Please don't hijack someone else's thread. Start a new thread instead. Also, this question is much more appropriate on the Nexus users mailing list. This is a generic Maven mailing list. /Anders On Mon, Jun 4, 2012 at 11:19 AM, Tim Wu T wrote: > Do you know if there is any small tool for us to deploy the 3pp jar into = nexus in additional to the nexus gui? > > Br, > Tim > > > > Ericsson > > TIM WU > Software Designer > > CBC/XIT/J > 100102, China > Phone 84768153 (13153) > SMS/MMS +86 13810715183 > tim.t.wu@ericsson.com > www.ericsson.com > > > > This Communication is Confidential. We only send and receive email on the= basis of the terms set out at www.ericsson.com/email_disclaimer > -----Original Message----- > From: Stephen Connolly [mailto:stephen.alan.connolly@gmail.com] > Sent: Monday, June 04, 2012 4:10 PM > To: Maven Users List > Subject: Re: maven dependency plugin and maven 3 > > From what I recall, nobody has yet updated dependency:tree to query > aether's graph directly rather than go through the emulation of 2.x's API > for examining the dependency tree. When I last chatted on this with > Benjamin, he left me with the distinct impression that I should not rely = on > the output of dependency:tree when run on m3 until it has been adapted to > query aether's graph more directly... But having said all that, I usually > find it "good enough" and it may just be some edge cases that Benjamin wa= s > referring to, in which case I would suspect this is one of those edges. > > On Sunday, 3 June 2012, Jason van Zyl wrote: > >> You need to make a test case so we can reproduce it. It's impossible to >> tell whether it's you, your environment, the dependency plugin or Maven >> itself from looking at the textual output of the build. >> >> On Jun 3, 2012, at 11:42 AM, Anthony Dahanne wrote: >> >> > Hello =A0all, >> > sorry to bump ... :-( >> > but I'm still having issues understanding what's wrong with the maven >> > dependency plugin and maven 3... >> > I attached a pom to demonstrate the problem : >> > Using maven 3, >> > 1) do a mvn package >> > 2) then do a mvn >> > >> org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-reposit= ory >> > -Dverbose=3Dtrue =A0 -DresolutionFuzziness=3Dversion -U >> > >> > You will see the following output : >> > [INFO] --- maven-dependency-plugin:2.4:purge-local-repository >> > (default-cli) @ pof --- >> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5 >> > [INFO] Skipping: pof. It cannot be resolved. >> > [INFO] Nothing to do for project: net.dahanne:pof:jar:1.0.0-SNAPSHOT >> > >> > But I can tell you javax.servlet:servlet-api:jar:2.5 has a pom, and is >> > already installed in the local maven repository. >> > >> > Could you guys share some light on this ? I think the maven dependency >> > plugin is not working fine with maven 3 , as opposed to what the >> > documentation says : >> > https://cwiki.apache.org/MAVEN/maven-3x-plugin-compatibility-matrix.ht= ml >> > >> > Thanks, >> > Anthony >> > >> > >> > ---------- Forwarded message ---------- >> > From: Anthony Dahanne > >> > Date: Thu, May 31, 2012 at 5:50 PM >> > Subject: maven dependency plugin and maven 3 >> > To: users@maven.apache.org >> > >> > >> > Hello all, >> > I'm only using maven 3 on my machine (be it command line or m2e). >> > I tried to use the maven dependency plugin on a project, >> > >> > mvn >> org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-reposit= ory >> > -Dverbose=3Dtrue =A0 -DresolutionFuzziness=3Dversion >> > >> > and it printed such warnings : >> > >> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5 >> > [WARNING] Missing POM for org.easymock:easymock:jar:3.0 >> > [WARNING] Missing POM for junit:junit:jar:4.8.2 >> > >> > before telling me that the build was successful. >> > Thing is, it did not purge anything from my repo; because of those >> > warnings actually; launching the same command with -X, I could see : >> > [DEBUG] Verifying availability of >> > >> /Users/anthony/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-= 2.5.pom >> > from [] >> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5: Error >> > resolving project artifact: Could not find artifact >> > javax.servlet:servlet-api:pom:2.5 for project >> > javax.servlet:servlet-api:pom:2.5 >> > [DEBUG] =A0 javax.servlet:servlet-api:jar:2.5:provided (selected for >> provided) >> > >> > and... I can tell you >> > >> /Users/anthony/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-= 2.5.pom >> > exists and contains : >> > >> > =A04.0.0 >> > =A0javax.servlet >> > =A0servlet-api >> > =A02.5 >> > >> > >> > Debugging the code a little, I could notice that this goal was using >> > >> org.apache.maven.artifact.resolver.DefaultArtifactResolver#resolveTransi= tively >> > from maven-artifact-manager 2.0.9 to find the dependencies. >> > >> > I am wondering if this plugin failed purging my dependencies because >> > it used a maven 2 library to scan the dependencies, and my local repo >> > has only been built and used by mvn3 (and the repo metadata/layout >> > could be different to what this plugin was expecting) .. >> > Any thoughts ? >> > thanks a lot in advance >> > Anthony >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> > For additional commands, e-mail: users-help@maven.apache.org >> >> Thanks, >> >> Jason >> >> ---------------------------------------------------------- >> Jason van Zyl >> Founder & CTO, Sonatype >> Founder, =A0Apache Maven >> http://twitter.com/jvanzyl >> --------------------------------------------------------- >> >> To do two things at once is to do neither. >> >> =A0--Publilius Syrus, Roman slave, first century B.C. >> >> >> >> >> >> > > --------------------------------------------------------------------- > 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