mirror of https://github.com/apache/maven.git
o Added missing processors
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@757927 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f5c0ef6ecc
commit
60f3a9b0cb
|
@ -337,20 +337,11 @@ public class DefaultMavenProjectBuilder
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// TODO: Review why this blows up the tests when we inject all the profiles in one go
|
PomClassicDomainModel dm = ProcessorContext.mergeProfilesIntoModel( projectProfiles, model, false );
|
||||||
for ( Iterator<Profile> it = projectProfiles.iterator(); it.hasNext(); )
|
ProcessorContext.interpolateModelProperties( dm.getModelProperties(),
|
||||||
{
|
new ArrayList<InterpolatorProperty>(), dm );
|
||||||
Profile profile = it.next();
|
dm = new PomClassicDomainModel( dm.getModelProperties(), false );
|
||||||
PomClassicDomainModel dm =
|
model = dm.getModel();
|
||||||
ProcessorContext.mergeProfilesIntoModel( Arrays.asList( profile ), model, false );
|
|
||||||
if ( !it.hasNext() )
|
|
||||||
{
|
|
||||||
ProcessorContext.interpolateModelProperties( dm.getModelProperties(),
|
|
||||||
new ArrayList<InterpolatorProperty>(), dm );
|
|
||||||
dm = new PomClassicDomainModel( dm.getModelProperties(), false );
|
|
||||||
}
|
|
||||||
model = dm.getModel();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch ( IOException e )
|
catch ( IOException e )
|
||||||
{
|
{
|
||||||
|
|
|
@ -82,11 +82,14 @@ public class ProcessorContext
|
||||||
Collections.reverse( profileModels );
|
Collections.reverse( profileModels );
|
||||||
profileModels.add( 0, model );
|
profileModels.add( 0, model );
|
||||||
List<Processor> processors =
|
List<Processor> processors =
|
||||||
Arrays.asList( (Processor) new BuildProcessor( new ArrayList<Processor>() ),
|
Arrays.<Processor> asList( new BuildProcessor( new ArrayList<Processor>() ), new ProfilesModuleProcessor(),
|
||||||
(Processor) new ProfilesModuleProcessor(), new ProfilePropertiesProcessor(), new ParentProcessor(),
|
new ProfilePropertiesProcessor(), new ParentProcessor(),
|
||||||
new OrganizationProcessor(), new MailingListProcessor(), new IssueManagementProcessor(),
|
new OrganizationProcessor(), new MailingListProcessor(),
|
||||||
new CiManagementProcessor(), new ReportingProcessor(), new RepositoriesProcessor(),
|
new IssueManagementProcessor(), new CiManagementProcessor(),
|
||||||
new DistributionManagementProcessor());
|
new ReportingProcessor(), new RepositoriesProcessor(),
|
||||||
|
new DistributionManagementProcessor(), new LicensesProcessor(),
|
||||||
|
new ScmProcessor(), new PrerequisitesProcessor(), new ContributorsProcessor(),
|
||||||
|
new DevelopersProcessor() );
|
||||||
|
|
||||||
Model target = processModelsForInheritance(profileModels, processors, false);
|
Model target = processModelsForInheritance(profileModels, processors, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue