mirror of https://github.com/apache/maven.git
Fixed regression on MNG-3821. Should not add any subcontainers to the Model Container Info list, which is the one that the ModelTransformerContext uses. This will match ids for subcontainers from different parent containers.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@737622 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dc27facb7e
commit
379f614660
|
@ -59,7 +59,7 @@ public class PomTransformer
|
|||
null, goals_infos)
|
||||
);
|
||||
|
||||
|
||||
//Don't add subcontainers here, breaks MNG-3821
|
||||
public static final Collection<ModelContainerInfo> MODEL_CONTAINER_INFOS = Arrays.asList(
|
||||
ModelContainerInfo.Factory.createModelContainerInfo(
|
||||
new ArtifactModelContainerFactory(), null, plugin_executions),
|
||||
|
@ -67,8 +67,8 @@ public class PomTransformer
|
|||
new IdModelContainerFactory(ProjectUri.PluginRepositories.PluginRepository.xUri), null, null),
|
||||
ModelContainerInfo.Factory.createModelContainerInfo(
|
||||
new IdModelContainerFactory(ProjectUri.Repositories.Repository.xUri), null, null),
|
||||
ModelContainerInfo.Factory.createModelContainerInfo(
|
||||
new IdModelContainerFactory(ProjectUri.Reporting.Plugins.Plugin.ReportSets.ReportSet.xUri), null, null),
|
||||
// ModelContainerInfo.Factory.createModelContainerInfo(
|
||||
// new IdModelContainerFactory(ProjectUri.Reporting.Plugins.Plugin.ReportSets.ReportSet.xUri), null, null),
|
||||
ModelContainerInfo.Factory.createModelContainerInfo(
|
||||
new IdModelContainerFactory(ProjectUri.Profiles.Profile.xUri), null, null)
|
||||
);
|
||||
|
|
|
@ -91,7 +91,7 @@ public class PomConstructionTest
|
|||
assertEquals( 1, ( (List<?>) pom.getValue( "build/plugins[1]/dependencies" ) ).size() );
|
||||
}
|
||||
|
||||
/** MNG-3821 FIX THIS
|
||||
/** MNG-3821 */
|
||||
public void testErroneousJoiningOfDifferentPluginsWithEqualExecutionIds()
|
||||
throws Exception
|
||||
{
|
||||
|
@ -105,7 +105,7 @@ public class PomConstructionTest
|
|||
assertEquals( "maven-it-plugin-b", pom.getValue( "reporting/plugins[2]/artifactId" ) );
|
||||
assertEquals( 1, ( (List<?>) pom.getValue( "reporting/plugins[1]/reportSets" ) ).size() );
|
||||
}
|
||||
*/
|
||||
|
||||
/** MNG-3998 */
|
||||
public void testExecutionConfiguration()
|
||||
throws Exception
|
||||
|
@ -145,6 +145,7 @@ public class PomConstructionTest
|
|||
throws Exception
|
||||
{
|
||||
PomTestWrapper pom = buildPom( "foo/sub" );
|
||||
System.out.println(pom.getDomainModel().asString());
|
||||
}
|
||||
|
||||
/** MNG-3985 */
|
||||
|
|
Loading…
Reference in New Issue