You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Anthony Dahanne <an...@gmail.com> on 2012/05/31 23:50:14 UTC
maven dependency plugin and maven 3
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-repository
-Dverbose=true -DresolutionFuzziness=version
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] 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 :
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</project>
Debugging the code a little, I could notice that this goal was using
org.apache.maven.artifact.resolver.DefaultArtifactResolver#resolveTransitively
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
RE: maven dependency plugin and maven 3
Posted by Tim Wu T <ti...@ericsson.com>.
Hi Anders,
Thanks :), my mistake.
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: anders.g.hammar@gmail.com [mailto:anders.g.hammar@gmail.com] On Behalf Of Anders Hammar
Sent: Monday, June 04, 2012 5:24 PM
To: Maven Users List
Subject: Re: maven dependency plugin and maven 3
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 <ti...@ericsson.com> 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 was
> 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 all,
>> > 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-repository
>> > -Dverbose=true -DresolutionFuzziness=version -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.html
>> >
>> > Thanks,
>> > Anthony
>> >
>> >
>> > ---------- Forwarded message ----------
>> > From: Anthony Dahanne <anthony.dahanne@gmail.com <javascript:;>>
>> > Date: Thu, May 31, 2012 at 5:50 PM
>> > Subject: maven dependency plugin and maven 3
>> > To: users@maven.apache.org <javascript:;>
>> >
>> >
>> > 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-repository
>> > -Dverbose=true -DresolutionFuzziness=version
>> >
>> > 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] 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 :
>> > <project>
>> > <modelVersion>4.0.0</modelVersion>
>> > <groupId>javax.servlet</groupId>
>> > <artifactId>servlet-api</artifactId>
>> > <version>2.5</version>
>> > </project>
>> >
>> > Debugging the code a little, I could notice that this goal was using
>> >
>> org.apache.maven.artifact.resolver.DefaultArtifactResolver#resolveTransitively
>> > 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
>> > <pom.xml>
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<javascript:;>
>> > For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
>>
>> Thanks,
>>
>> Jason
>>
>> ----------------------------------------------------------
>> Jason van Zyl
>> Founder & CTO, Sonatype
>> Founder, Apache Maven
>> http://twitter.com/jvanzyl
>> ---------------------------------------------------------
>>
>> To do two things at once is to do neither.
>>
>> --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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven dependency plugin and maven 3
Posted by Anders Hammar <an...@hammar.net>.
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 <ti...@ericsson.com> 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 was
> 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 all,
>> > 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-repository
>> > -Dverbose=true -DresolutionFuzziness=version -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.html
>> >
>> > Thanks,
>> > Anthony
>> >
>> >
>> > ---------- Forwarded message ----------
>> > From: Anthony Dahanne <anthony.dahanne@gmail.com <javascript:;>>
>> > Date: Thu, May 31, 2012 at 5:50 PM
>> > Subject: maven dependency plugin and maven 3
>> > To: users@maven.apache.org <javascript:;>
>> >
>> >
>> > 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-repository
>> > -Dverbose=true -DresolutionFuzziness=version
>> >
>> > 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] 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 :
>> > <project>
>> > <modelVersion>4.0.0</modelVersion>
>> > <groupId>javax.servlet</groupId>
>> > <artifactId>servlet-api</artifactId>
>> > <version>2.5</version>
>> > </project>
>> >
>> > Debugging the code a little, I could notice that this goal was using
>> >
>> org.apache.maven.artifact.resolver.DefaultArtifactResolver#resolveTransitively
>> > 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
>> > <pom.xml>
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<javascript:;>
>> > For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
>>
>> Thanks,
>>
>> Jason
>>
>> ----------------------------------------------------------
>> Jason van Zyl
>> Founder & CTO, Sonatype
>> Founder, Apache Maven
>> http://twitter.com/jvanzyl
>> ---------------------------------------------------------
>>
>> To do two things at once is to do neither.
>>
>> --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
RE: maven dependency plugin and maven 3
Posted by Tim Wu T <ti...@ericsson.com>.
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 was
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 all,
> > 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-repository
> > -Dverbose=true -DresolutionFuzziness=version -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.html
> >
> > Thanks,
> > Anthony
> >
> >
> > ---------- Forwarded message ----------
> > From: Anthony Dahanne <anthony.dahanne@gmail.com <javascript:;>>
> > Date: Thu, May 31, 2012 at 5:50 PM
> > Subject: maven dependency plugin and maven 3
> > To: users@maven.apache.org <javascript:;>
> >
> >
> > 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-repository
> > -Dverbose=true -DresolutionFuzziness=version
> >
> > 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] 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 :
> > <project>
> > <modelVersion>4.0.0</modelVersion>
> > <groupId>javax.servlet</groupId>
> > <artifactId>servlet-api</artifactId>
> > <version>2.5</version>
> > </project>
> >
> > Debugging the code a little, I could notice that this goal was using
> >
> org.apache.maven.artifact.resolver.DefaultArtifactResolver#resolveTransitively
> > 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
> > <pom.xml>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<javascript:;>
> > For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder & CTO, Sonatype
> Founder, Apache Maven
> http://twitter.com/jvanzyl
> ---------------------------------------------------------
>
> To do two things at once is to do neither.
>
> --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
Re: maven dependency plugin and maven 3
Posted by Anthony Dahanne <an...@gmail.com>.
Hi Wayne,
you are right, running the purge corrupted my local repo in a way :
$ ls ~/.m2/repository/javax/servlet/servlet-api/2.5/
_maven.repositories servlet-api-2.5.jar
servlet-api-2.5.jar.lastUpdated servlet-api-2.5.jar.sha1
and if I run mvn clean install just after , everything gets back to normal.
$ ls ~/.m2/repository/javax/servlet/servlet-api/2.5/
_maven.repositories servlet-api-2.5.jar.lastUpdated
servlet-api-2.5.pom servlet-api-2.5.pom.sha1
servlet-api-2.5.jar servlet-api-2.5.jar.sha1
servlet-api-2.5.pom.lastUpdated
updating the Jira,
thanks
Anthony
On Mon, Jun 4, 2012 at 10:47 AM, Wayne Fay <wa...@gmail.com> wrote:
>> [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
>> [WARNING] Missing POM for net.dahanne.gallery:commons-gallery:jar:2.1.0-SNAPSHOT
>> even though those 2 artifacts are existing in my local repo.
>
> Have you looked at the content of those pom files to ensure they
> aren't corrupted?
>
> Wayne
>
> ---------------------------------------------------------------------
> 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
Re: maven dependency plugin and maven 3
Posted by Wayne Fay <wa...@gmail.com>.
> [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
> [WARNING] Missing POM for net.dahanne.gallery:commons-gallery:jar:2.1.0-SNAPSHOT
> even though those 2 artifacts are existing in my local repo.
Have you looked at the content of those pom files to ensure they
aren't corrupted?
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven dependency plugin and maven 3
Posted by Anthony Dahanne <an...@gmail.com>.
Update !
Creating a jira for this issue, providing the same example pom,
http://jira.codehaus.org/secure/attachment/60149/pom.xml
when I tried to reproduce on a linux box, with the latest maven 3.0.4
>> > 1) do a mvn package
>> > 2) then do a mvn org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-repository -Dverbose=true -DresolutionFuzziness=version
it actually worked as designed :
ubuntu@ubuntu-server:~/maven-issue$ /opt/apache-maven-3.0.4/bin/mvn
org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-repository
-Dverbose=true -DresolutionFuzziness=version
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building pof 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.4:purge-local-repository
(default-cli) @ pof ---
[WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
[WARNING] Missing POM for net.dahanne.gallery:commons-gallery:jar:2.1.0-SNAPSHOT
[INFO] Processing dependencies for project: net.dahanne:pof:jar:1.0.0-SNAPSHOT
[INFO] Processing artifact: javax.servlet:servlet-api:jar:2.5
[INFO] Deleting: /home/ubuntu/.m2/repository/javax/servlet/servlet-api/2.5
[INFO] Re-resolving.
Downloading: http://nexus.dahanne.net/nexus/content/repositories/snapshots/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
Downloading: http://nexus.dahanne.net/nexus/content/repositories/releases/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
Downloading: http://repo.maven.apache.org/maven2/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
Downloaded: http://repo.maven.apache.org/maven2/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
(103 KB at 15.9 KB/sec)
[INFO] Processing artifact:
net.dahanne.gallery:commons-gallery:jar:2.1.0-SNAPSHOT
[INFO] Deleting:
/home/ubuntu/.m2/repository/net/dahanne/gallery/commons-gallery/2.1.0-SNAPSHOT
[INFO] Re-resolving.
Downloading: http://nexus.dahanne.net/nexus/content/repositories/snapshots/net/dahanne/gallery/commons-gallery/2.1.0-SNAPSHOT/maven-metadata.xml
Downloading: http://nexus.dahanne.net/nexus/content/repositories/releases/net/dahanne/gallery/commons-gallery/2.1.0-SNAPSHOT/maven-metadata.xml
Downloaded: http://nexus.dahanne.net/nexus/content/repositories/snapshots/net/dahanne/gallery/commons-gallery/2.1.0-SNAPSHOT/maven-metadata.xml
(998 B at 2.1 KB/sec)
Downloading: http://nexus.dahanne.net/nexus/content/repositories/snapshots/net/dahanne/gallery/commons-gallery/2.1.0-SNAPSHOT/commons-gallery-2.1.0-20120525.140124-5.jar
Downloaded: http://nexus.dahanne.net/nexus/content/repositories/snapshots/net/dahanne/gallery/commons-gallery/2.1.0-SNAPSHOT/commons-gallery-2.1.0-20120525.140124-5.jar
(16 KB at 23.3 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.522s
[INFO] Finished at: Mon Jun 04 09:10:33 EDT 2012
[INFO] Final Memory: 6M/14M
[INFO] ------------------------------------------------------------------------
my dependencies were deleted and re resolved !
One thing though, is that I still had those messages :
[WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
[WARNING] Missing POM for net.dahanne.gallery:commons-gallery:jar:2.1.0-SNAPSHOT
even though those 2 artifacts are existing in my local repo.
So I created a bug in the maven dependency plugin Jira :
http://jira.codehaus.org/browse/MDEP-356
to consider the use of maven 3 dependency resolver in the maven
dependency plugin
Thanks,
Anthony
On Mon, Jun 4, 2012 at 4:09 AM, Stephen Connolly
<st...@gmail.com> wrote:
> 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 was
> 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 all,
>> > 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-repository
>> > -Dverbose=true -DresolutionFuzziness=version -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.html
>> >
>> > Thanks,
>> > Anthony
>> >
>> >
>> > ---------- Forwarded message ----------
>> > From: Anthony Dahanne <anthony.dahanne@gmail.com <javascript:;>>
>> > Date: Thu, May 31, 2012 at 5:50 PM
>> > Subject: maven dependency plugin and maven 3
>> > To: users@maven.apache.org <javascript:;>
>> >
>> >
>> > 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-repository
>> > -Dverbose=true -DresolutionFuzziness=version
>> >
>> > 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] 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 :
>> > <project>
>> > <modelVersion>4.0.0</modelVersion>
>> > <groupId>javax.servlet</groupId>
>> > <artifactId>servlet-api</artifactId>
>> > <version>2.5</version>
>> > </project>
>> >
>> > Debugging the code a little, I could notice that this goal was using
>> >
>> org.apache.maven.artifact.resolver.DefaultArtifactResolver#resolveTransitively
>> > 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
>> > <pom.xml>
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<javascript:;>
>> > For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
>>
>> Thanks,
>>
>> Jason
>>
>> ----------------------------------------------------------
>> Jason van Zyl
>> Founder & CTO, Sonatype
>> Founder, Apache Maven
>> http://twitter.com/jvanzyl
>> ---------------------------------------------------------
>>
>> To do two things at once is to do neither.
>>
>> -—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
Re: maven dependency plugin and maven 3
Posted by Stephen Connolly <st...@gmail.com>.
>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 was
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 all,
> > 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-repository
> > -Dverbose=true -DresolutionFuzziness=version -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.html
> >
> > Thanks,
> > Anthony
> >
> >
> > ---------- Forwarded message ----------
> > From: Anthony Dahanne <anthony.dahanne@gmail.com <javascript:;>>
> > Date: Thu, May 31, 2012 at 5:50 PM
> > Subject: maven dependency plugin and maven 3
> > To: users@maven.apache.org <javascript:;>
> >
> >
> > 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-repository
> > -Dverbose=true -DresolutionFuzziness=version
> >
> > 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] 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 :
> > <project>
> > <modelVersion>4.0.0</modelVersion>
> > <groupId>javax.servlet</groupId>
> > <artifactId>servlet-api</artifactId>
> > <version>2.5</version>
> > </project>
> >
> > Debugging the code a little, I could notice that this goal was using
> >
> org.apache.maven.artifact.resolver.DefaultArtifactResolver#resolveTransitively
> > 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
> > <pom.xml>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<javascript:;>
> > For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder & CTO, Sonatype
> Founder, Apache Maven
> http://twitter.com/jvanzyl
> ---------------------------------------------------------
>
> To do two things at once is to do neither.
>
> -—Publilius Syrus, Roman slave, first century B.C.
>
>
>
>
>
>
Re: maven dependency plugin and maven 3
Posted by Jason van Zyl <ja...@tesla.io>.
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 all,
> 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-repository
> -Dverbose=true -DresolutionFuzziness=version -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.html
>
> Thanks,
> Anthony
>
>
> ---------- Forwarded message ----------
> From: Anthony Dahanne <an...@gmail.com>
> 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-repository
> -Dverbose=true -DresolutionFuzziness=version
>
> 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] 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 :
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.5</version>
> </project>
>
> Debugging the code a little, I could notice that this goal was using
> org.apache.maven.artifact.resolver.DefaultArtifactResolver#resolveTransitively
> 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
> <pom.xml>
> ---------------------------------------------------------------------
> 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, Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------
To do two things at once is to do neither.
-—Publilius Syrus, Roman slave, first century B.C.
Fwd: maven dependency plugin and maven 3
Posted by Anthony Dahanne <an...@gmail.com>.
Hello all,
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-repository
-Dverbose=true -DresolutionFuzziness=version -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.html
Thanks,
Anthony
---------- Forwarded message ----------
From: Anthony Dahanne <an...@gmail.com>
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-repository
-Dverbose=true � -DresolutionFuzziness=version
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] � 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 :
<project>
�<modelVersion>4.0.0</modelVersion>
�<groupId>javax.servlet</groupId>
�<artifactId>servlet-api</artifactId>
�<version>2.5</version>
</project>
Debugging the code a little, I could notice that this goal was using
org.apache.maven.artifact.resolver.DefaultArtifactResolver#resolveTransitively
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