[ 
http://jira.codehaus.org/browse/MNG-2448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99855
 ] 

Mark Hobson commented on MNG-2448:
----------------------------------

Not sure this will work due to MNG-2972.

> Can not exclude a dependency from a plugin
> ------------------------------------------
>
>                 Key: MNG-2448
>                 URL: http://jira.codehaus.org/browse/MNG-2448
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.4
>            Reporter: Dain Sundstrom
>             Fix For: Reviewed Pending Version Assignment
>
>
> I need to be able to exclude a dependency that a plugin included so I can 
> replace it with a different dependency.  In this exact case I'm attempting to 
> use the com.sun.tools.xjc.maven2:maven-jaxb-plugin:1.0 plugin and it depends 
> on the non-public jsr173 jar.  I would like to exclude that jar so I can 
> include public stax one.   I know this will be fixed by implementing the spec 
> resolution feature, but excluding bad dependencies from a plugin is a general 
> problem. 
> The following snippit will demonstrate the download problem assuming you 
> don't have the jsr173 jar available:
>       <plugin>
>         <groupId>com.sun.tools.xjc.maven2</groupId>
>         <artifactId>maven-jaxb-plugin</artifactId>
>         <version>1.0</version>
>         <executions>
>           <execution>
>             <goals>
>               <goal>generate</goal>
>             </goals>
>           </execution>
>         </executions>
>         <configuration>
>           <generatePackage>org.apache.xbean.jaxb.schema</generatePackage>
>         </configuration>
>         </configuration>
>        </plugin>

-- 
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

        

Reply via email to