You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2014/07/02 21:36:10 UTC

[jira] (MNG-3383) Downloaded plugin dependencies influence project dependencies

     [ https://jira.codehaus.org/browse/MNG-3383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov updated MNG-3383:
--------------------------------

    Fix Version/s:     (was: Issues to be reviewed for 3.x)
                   3.0

> Downloaded plugin dependencies influence project dependencies
> -------------------------------------------------------------
>
>                 Key: MNG-3383
>                 URL: https://jira.codehaus.org/browse/MNG-3383
>             Project: Maven
>          Issue Type: Bug
>          Components: Artifacts and Repositories, Dependencies, Plugins and Lifecycle
>    Affects Versions: 2.0.8
>            Reporter: Stefan Seidel
>             Fix For: 3.0
>
>         Attachments: pom.xml
>
>
> Currently, a plugin may define additional pluginRepositories, which are used to resolve dependencies of that plugin.
> This leads to the fact that a plugin might resolve a dependency which would normally not be available to the project.
> When it does that, it seems to write a metadata-central (although on the central repo this artifact does not exist) and thus, the project will use that dependency, too.
> How to reproduce:
> 1. remove xstream from local repo:
> {code}rm -Rf ~/.m2/repository/com/thoughtworks/xstream{code}
> 2. run mvn clean install on the attached pom.xml
> -> the build should fail because the version 1.3.0-SNAPSHOT is not available at repo1.maven.org
> 3. edit the pom.xml, uncomment the plugin definition (jspc used for demonstration purposes only)
> 3. run mvn clean install again
> -> the build succeeds and the 1.3.0-SNAPSHOT is being built into the artifact, which is wrong.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)