You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Edwin Punzalan (JIRA)" <ji...@codehaus.org> on 2005/10/25 12:05:12 UTC

[jira] Updated: (MNG-1286) Check exclusions against relocated artifacts

     [ http://jira.codehaus.org/browse/MNG-1286?page=all ]

Edwin Punzalan updated MNG-1286:
--------------------------------

    Attachment: MNG-1287-maven-project.patch

Added the filter object to be passed to MavenMetadataSource.retrieve() so it can be used when relocation has been resolved.

> Check exclusions against relocated artifacts
> --------------------------------------------
>
>          Key: MNG-1286
>          URL: http://jira.codehaus.org/browse/MNG-1286
>      Project: Maven 2
>         Type: Improvement
>     Versions: 2.0
>     Reporter: Carlos Sanchez
>     Assignee: Edwin Punzalan
>      Fix For: 2.0.1

>
>
> When using an artifact that was relocated you need to exclude the one used directly, it doesn't work if you use the final relocated artifact. This is confusing when you get an artifact in your war but you need to exclude other.
> eg. if you don't use exclusions you get jdbc-stdext in the war. Using option b doesn't work, currently you need to use option a.
>        <dependency>
>            <artifactId>commons-dbcp</artifactId>
>            <groupId>commons-dbcp</groupId>
>            <version>1.2</version>
>            <exclusions>
> <!-- option a --> 
>               <exclusion>
>                    <artifactId>jdbc</artifactId>
>                    <groupId>jdbc</groupId>
>                </exclusion>
> <!-- option b -->
>                <exclusion>
>                    <artifactId>jdbc-stdext</artifactId>
>                    <groupId>javax.sql</groupId>
>                </exclusion>
>            </exclusions>
>        </dependency>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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