Thanks Benjamin
That did it.

cheers.
On Fri, Jun 12, 2009 at 12:44 PM, Benjamin Bentmann <
[email protected]> wrote:

> Erick Dovale wrote:
>
>  urls[2] =
>>
>> file:/Users/erickdovale/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
>>
>> The getShell method in PlexusUtils first appeared in version 1.2. In my
>> dependencyManagement section for my plugin's pom I have set the versino of
>> PlexusUtils to be 1.5.12 yet for some reason maven is pulling version 1.1
>> that does not have this method.
>> I am running on maven 2.1.0.
>>
>
> There's a hack in Maven 2.x (meant to provide some kind of backward-compat)
> that automatically makes plexus-utils:1.1 a direct dependency of a plugin if
> the plugin does not already declare a direct dependency on plexus-utils. In
> other words, imagine in your plugin's POM you had:
>
>  <dependency>
>    <groupId>org.codehaus.plexus</groupId>
>    <artifactId>plexus-utils</artifactId>
>    <version>1.1.</version>
>  </dependency>
>
> A direct dependency like this both overrides any dependency management you
> have in place and any transitive version of plexus-utils that
> plexus-archiver uses. Hence, the error you see.
>
> As a workaround simply declare plexus-utils as a direct dependency of your
> plugin, enforcing the version you need instead of the otherwise assumed 1.1.
>
>
> Benjamin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to