[regression] Custom packagings from build extensions are not reliably loaded
during a reactor build
---------------------------------------------------------------------------------------------------
Key: MNG-4357
URL: http://jira.codehaus.org/browse/MNG-4357
Project: Maven 2
Issue Type: Bug
Components: Plugins and Lifecycle, Reactor and workspace
Reporter: Benjamin Bentmann
Building XWiki platform with trunk in one go produces
{noformat}
[ERROR] Unknown packaging: maven-archetype @
org.xwiki.platform.tools:xwiki-archetype-macro:1.1-SNAPSHOT
{noformat}
The mentioned project properly declares the required build extensions in its
POM and builds fine in isolation.
The issue boils down to the active component map
{{DefaultLifecycleExecutor.lifecycleMappings}} not being properly updated when
switching the projects in the reactor. In detail,
{{AbstractComponentCollection.checkUpdate()}} from Plexus doesn't update the
map if the number of component descriptors hasn't changed. This apparently
misses the situation where the total count of component descriptors from two
different class realms is the same but the set of role hints has changed, e.g.
{{[one, two]}} vs. {{[one, three]}}.
--
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