[ 
https://issues.apache.org/jira/browse/MNG-7832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17739656#comment-17739656
 ] 

Robert Scholte commented on MNG-7832:
-------------------------------------

IIRC the reason behind the moving the artifact handler as well are custom 
artifacts. A small anecdote regarding custom artifact handlers: TIBCO also has 
the concept of applications and libraries, but they call it differently and it 
is XML. One of the standard Maven plugins goals (something like dependency:tree 
or dependency:unpack) didn't work, because Maven couldn't find the right 
artifact handler, because Maven was treating embedded handlers different from 
custom handlers.
In my opinion there should be no difference between embedded and custom 
artifact handlers. To enforce that, I prefer to have this kind of logic in the 
packaging-plugin OR a better mechanism that custom artifact handlers are 
treated the same.

> revert artifact handlers move to plugins
> ----------------------------------------
>
>                 Key: MNG-7832
>                 URL: https://issues.apache.org/jira/browse/MNG-7832
>             Project: Maven
>          Issue Type: Sub-task
>          Components: Dependencies, Plugins and Lifecycle
>            Reporter: Herve Boutemy
>            Priority: Major
>
> MNG-5697 proposed to move at the same time packaging mapping AND artifact 
> handlers to packaging-oriented plugins
> packaging mapping is feasible, and can make sense: user configures a 
> packaging plugin in his pom.xml to benefit from the full associated build 
> lifecycle, why not
> but attifact handler is completely another beast: it's about consuming an 
> artifact as a dependency, then not lead at all by the packaging of the 
> project consuming the artifact
> we need to split the 2 aspects:
> 1. finish lifecycle mapping definition to plugins, and remove at the end the 
> definition from core, while learning users how to not any more benefit from 
> implicit core definition
> 2. revert artifact handlers copy to packaging plugins, because they create 
> confusion: artifacts will never be consumed with an artifact handler defined 
> by an associated packaging plugin
> once someone finds something reasonable about artifact handlers, we can 
> implement it later



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to