You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Dennis Lundberg <de...@apache.org> on 2007/04/24 23:29:09 UTC

Re: undeclared dependencies in plugins

Brian E. Fox wrote:
> As part of the checking for 2.0.6, I ran dependency:analyze against the
> plugins. We found that almost all plugins have undeclared dependencies.
> Those with undeclared dependencies on plexus-utils will require a
> workaround in maven itself to avoid hosing people. (Jason is going to
> send a separate email)
> 
>  
> 
> Please run maven-dependency-plugin 2.0-alpha-4-SNAPSHOT :analyze against
> a plugin if you work on it so you can update the pom appropriately.

<snip>

Below is the output for maven-idea-plugin.
Should I do something about the "Used undeclared dependencies"?

[INFO] [dependency:analyze]
[INFO] Used declared dependencies:
[INFO]    org.apache.maven:maven-plugin-api:jar:2.0.1:compile
[INFO]    org.apache.maven:maven-project:jar:2.0.1:compile
[INFO]    org.apache.maven:maven-artifact-manager:jar:2.0.1:compile
[INFO]    org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:compile
[INFO]    org.apache.maven:maven-artifact:jar:2.0.1:compile
[INFO]    org.codehaus.plexus:plexus-utils:jar:1.1:compile
[INFO]    dom4j:dom4j:jar:1.6.1:compile
[INFO]    org.apache.maven:maven-model:jar:2.0.1:compile
[INFO] 
org.apache.maven.shared:maven-plugin-testing-harness:jar:1.0-beta-1:test
[INFO] Used undeclared dependencies:
[WARNING]    junit:junit:jar:3.8.1:compile
[WARNING] 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:compile
[INFO] Unused declared dependencies:
[INFO]    None
[WARNING] Potential problems discovered.
[INFO] Found Resolved Dependency / DependencyManagement mismatches:
[INFO]    Nothing in DepMgt.

-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


RE: undeclared dependencies in plugins

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
I think you're misreading the output. The first thing it prints are the
used,declared dependencies. I should probably turn that off by default.
Junit and the container are the only ones missing.

-----Original Message-----
From: Jason van Zyl [mailto:jason@maven.org] 
Sent: Tuesday, April 24, 2007 6:02 PM
To: Maven Developers List
Subject: Re: undeclared dependencies in plugins


On 24 Apr 07, at 5:29 PM 24 Apr 07, Dennis Lundberg wrote:

> Brian E. Fox wrote:
>> As part of the checking for 2.0.6, I ran dependency:analyze  
>> against the
>> plugins. We found that almost all plugins have undeclared  
>> dependencies.
>> Those with undeclared dependencies on plexus-utils will require a
>> workaround in maven itself to avoid hosing people. (Jason is going to
>> send a separate email)
>>  Please run maven-dependency-plugin 2.0-alpha-4-SNAPSHOT :analyze  
>> against
>> a plugin if you work on it so you can update the pom appropriately.
>
> <snip>
>
> Below is the output for maven-idea-plugin.
> Should I do something about the "Used undeclared dependencies"?
>

That doesn't look right. Looking at the POM most of those are there.  
Plexus utils is even there in the POM.

> [INFO] [dependency:analyze]
> [INFO] Used declared dependencies:
> [INFO]    org.apache.maven:maven-plugin-api:jar:2.0.1:compile
> [INFO]    org.apache.maven:maven-project:jar:2.0.1:compile
> [INFO]    org.apache.maven:maven-artifact-manager:jar:2.0.1:compile
> [INFO]    org.apache.maven.wagon:wagon-provider-api:jar:1.0- 
> alpha-5:compile
> [INFO]    org.apache.maven:maven-artifact:jar:2.0.1:compile
> [INFO]    org.codehaus.plexus:plexus-utils:jar:1.1:compile
> [INFO]    dom4j:dom4j:jar:1.6.1:compile
> [INFO]    org.apache.maven:maven-model:jar:2.0.1:compile
> [INFO] org.apache.maven.shared:maven-plugin-testing-harness:jar:1.0- 
> beta-1:test
> [INFO] Used undeclared dependencies:
> [WARNING]    junit:junit:jar:3.8.1:compile
> [WARNING] org.codehaus.plexus:plexus-container-default:jar:1.0- 
> alpha-9:compile
> [INFO] Unused declared dependencies:
> [INFO]    None
> [WARNING] Potential problems discovered.
> [INFO] Found Resolved Dependency / DependencyManagement mismatches:
> [INFO]    Nothing in DepMgt.
>
> -- 
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: undeclared dependencies in plugins

Posted by Jason van Zyl <ja...@maven.org>.
On 24 Apr 07, at 5:29 PM 24 Apr 07, Dennis Lundberg wrote:

> Brian E. Fox wrote:
>> As part of the checking for 2.0.6, I ran dependency:analyze  
>> against the
>> plugins. We found that almost all plugins have undeclared  
>> dependencies.
>> Those with undeclared dependencies on plexus-utils will require a
>> workaround in maven itself to avoid hosing people. (Jason is going to
>> send a separate email)
>>  Please run maven-dependency-plugin 2.0-alpha-4-SNAPSHOT :analyze  
>> against
>> a plugin if you work on it so you can update the pom appropriately.
>
> <snip>
>
> Below is the output for maven-idea-plugin.
> Should I do something about the "Used undeclared dependencies"?
>

That doesn't look right. Looking at the POM most of those are there.  
Plexus utils is even there in the POM.

> [INFO] [dependency:analyze]
> [INFO] Used declared dependencies:
> [INFO]    org.apache.maven:maven-plugin-api:jar:2.0.1:compile
> [INFO]    org.apache.maven:maven-project:jar:2.0.1:compile
> [INFO]    org.apache.maven:maven-artifact-manager:jar:2.0.1:compile
> [INFO]    org.apache.maven.wagon:wagon-provider-api:jar:1.0- 
> alpha-5:compile
> [INFO]    org.apache.maven:maven-artifact:jar:2.0.1:compile
> [INFO]    org.codehaus.plexus:plexus-utils:jar:1.1:compile
> [INFO]    dom4j:dom4j:jar:1.6.1:compile
> [INFO]    org.apache.maven:maven-model:jar:2.0.1:compile
> [INFO] org.apache.maven.shared:maven-plugin-testing-harness:jar:1.0- 
> beta-1:test
> [INFO] Used undeclared dependencies:
> [WARNING]    junit:junit:jar:3.8.1:compile
> [WARNING] org.codehaus.plexus:plexus-container-default:jar:1.0- 
> alpha-9:compile
> [INFO] Unused declared dependencies:
> [INFO]    None
> [WARNING] Potential problems discovered.
> [INFO] Found Resolved Dependency / DependencyManagement mismatches:
> [INFO]    Nothing in DepMgt.
>
> -- 
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org