You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Hobson (JIRA)" <ji...@codehaus.org> on 2006/03/21 17:54:11 UTC

[jira] Created: (MNG-2163) Allow plugin dependencies to be excluded

Allow plugin dependencies to be excluded
----------------------------------------

         Key: MNG-2163
         URL: http://jira.codehaus.org/browse/MNG-2163
     Project: Maven 2
        Type: Bug

  Components: Dependencies  
    Versions: 2.0.2    
 Environment: Windows XP, Cygwin
    Reporter: Mark Hobson


Need to add an exclusions block in the POM for plugins.  The use-case is excluding slf4j-simple
from the jetty6 plugin in order to use an alternative slf4j implementation.

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


[jira] Commented: (MNG-2163) Allow plugin dependencies to be excluded

Posted by "Ceki Gulcu (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2163?page=comments#action_61678 ] 

Ceki Gulcu commented on MNG-2163:
---------------------------------

Let me add a few words of my own.

Jetty's POM file declares "slf4j-simple" as a dependency. However,
some users of Jetty would like to override this dependency, for
example with "slf4j-log4j12".

Is this possible with Maven?


> Allow plugin dependencies to be excluded
> ----------------------------------------
>
>          Key: MNG-2163
>          URL: http://jira.codehaus.org/browse/MNG-2163
>      Project: Maven 2
>         Type: Bug

>   Components: Dependencies
>     Versions: 2.0.2
>  Environment: Windows XP, Cygwin
>     Reporter: Mark Hobson

>
>
> Need to add an exclusions block in the POM for plugins.  The use-case is excluding slf4j-simple
> from the jetty6 plugin in order to use an alternative slf4j implementation.

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


[jira] Commented: (MNG-2163) Allow plugin dependencies to be excluded

Posted by "Will Hoover (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161940#action_161940 ] 

Will Hoover commented on MNG-2163:
----------------------------------

Another use case is where you define a parent pom using the maven-eclipse-plugin enabling WTP capabilities by default:

{code}
<plugin>
            	<groupId>org.apache.maven.plugins</groupId>
            	<artifactId>maven-eclipse-plugin</artifactId>
            	<configuration>
			<wtpmanifest>true</wtpmanifest>
			<wtpapplicationxml>true</wtpapplicationxml>
			<wtpversion>2.0</wtpversion>
            	</configuration>
</plugin>
{code}

Then in a child pom of a project you want to disable the WTP because you are using m2eclipse. If you do not disable/exclude the maven-eclipse-plugin you get a nasty error message in eclipse:

"An internal error occurred during: "Importing Maven projects".
loader constraint violation: when resolving method
"org.codehaus.plexus.util.xml.Xpp3DomWriter.write(Lorg/codehaus/plexus/util/xml/XMLWriter;Lorg/codehaus/plexus/util/xml/Xpp3Dom;)V"
the class loader (instance of
org/codehaus/plexus/classworlds/realm/ClassRealm) of the current
class, org/apache/maven/plugin/eclipse/writers/wtp/EclipseWtpApplicationXMLWriter,
and the class loader (instance of
org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved
class, org/codehaus/plexus/util/xml/Xpp3DomWriter, have different
Class objects for the type org/codehaus/plexus/util/xml/XMLWriter used
in the signature" 

> Allow plugin dependencies to be excluded
> ----------------------------------------
>
>                 Key: MNG-2163
>                 URL: http://jira.codehaus.org/browse/MNG-2163
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.2
>         Environment: Windows XP, Cygwin
>            Reporter: Mark Hobson
>             Fix For: 3.x
>
>
> Need to add an exclusions block in the POM for plugins.  The use-case is excluding slf4j-simple
> from the jetty6 plugin in order to use an alternative slf4j implementation.

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

        

[jira] Updated: (MNG-2163) Allow plugin dependencies to be excluded

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2163?page=all ]

John Casey updated MNG-2163:
----------------------------

    Fix Version: 2.1

> Allow plugin dependencies to be excluded
> ----------------------------------------
>
>          Key: MNG-2163
>          URL: http://jira.codehaus.org/browse/MNG-2163
>      Project: Maven 2
>         Type: Bug

>   Components: Dependencies
>     Versions: 2.0.2
>  Environment: Windows XP, Cygwin
>     Reporter: Mark Hobson
>      Fix For: 2.1

>
>
> Need to add an exclusions block in the POM for plugins.  The use-case is excluding slf4j-simple
> from the jetty6 plugin in order to use an alternative slf4j implementation.

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


[jira] (MNG-2163) Allow plugin dependencies to be excluded

Posted by "Jörg von Frantzius (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-2163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=293633#comment-293633 ] 

Jörg von Frantzius commented on MNG-2163:
-----------------------------------------

I'd put it that way: it should be possible to define the plugins classpath using the same concepts as the dependencies classpath. Which includes "exclusions" ;)
                
> Allow plugin dependencies to be excluded
> ----------------------------------------
>
>                 Key: MNG-2163
>                 URL: https://jira.codehaus.org/browse/MNG-2163
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>          Components: Dependencies
>    Affects Versions: 2.0.2
>         Environment: Windows XP, Cygwin
>            Reporter: Mark Hobson
>             Fix For: Issues to be reviewed for 3.x
>
>
> Need to add an exclusions block in the POM for plugins.  The use-case is excluding slf4j-simple
> from the jetty6 plugin in order to use an alternative slf4j implementation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (MNG-2163) Allow plugin dependencies to be excluded

Posted by "LexeY (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-2163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=275710#comment-275710 ] 

LexeY commented on MNG-2163:
----------------------------

I have jetty plugin and need to exclude jaas-1.0.jar from its dependencies.
Need something like this:
<plugin>
  <groupId>org.mortbay.jetty</groupId>
  <artifactId>maven-jetty-plugin</artifactId>
  <version>6.1.10</version>
			<exclusions>
				<exclusion>
					<artifactId>jaas</artifactId>
					<groupId>jaas</groupId>
				</exclusion>
			</exclusions>
</plugin>

I use IBM java, and java have this jar too, and i need use this jar only from JDK, not from jetty plugin.
Now i have conflict.


> Allow plugin dependencies to be excluded
> ----------------------------------------
>
>                 Key: MNG-2163
>                 URL: https://jira.codehaus.org/browse/MNG-2163
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>          Components: Dependencies
>    Affects Versions: 2.0.2
>         Environment: Windows XP, Cygwin
>            Reporter: Mark Hobson
>             Fix For: Issues to be reviewed for 3.x
>
>
> Need to add an exclusions block in the POM for plugins.  The use-case is excluding slf4j-simple
> from the jetty6 plugin in order to use an alternative slf4j implementation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-2163) Allow plugin dependencies to be excluded

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MNG-2163:
-----------------------------------

    Issue Type: New Feature  (was: Bug)

> Allow plugin dependencies to be excluded
> ----------------------------------------
>
>                 Key: MNG-2163
>                 URL: http://jira.codehaus.org/browse/MNG-2163
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>          Components: Dependencies
>    Affects Versions: 2.0.2
>         Environment: Windows XP, Cygwin
>            Reporter: Mark Hobson
>             Fix For: Issues to be reviewed for 3.x
>
>
> Need to add an exclusions block in the POM for plugins.  The use-case is excluding slf4j-simple
> from the jetty6 plugin in order to use an alternative slf4j implementation.

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