mirror of https://github.com/apache/maven.git
After r231121 the <modules/> in poms were ignored. I tracked the changes,
and it was obvious: merge code didn't merge the Modules section, and possibly other sections aswell. Also putting all normal model build info in a profile and then copying profile data back to the model seemed odd to me. Now only data from profiles that actually get merged is merged. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@231470 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a133047280
commit
c897fa04c1
|
@ -12,15 +12,7 @@ public class DefaultProfileInjector
|
|||
|
||||
public void inject( Profile profile, Model model )
|
||||
{
|
||||
ModelUtils.mergeModelBases( profile, model );
|
||||
|
||||
model.setDependencies( profile.getDependencies() );
|
||||
model.setDependencyManagement( profile.getDependencyManagement() );
|
||||
model.setDistributionManagement( profile.getDistributionManagement() );
|
||||
model.setModules( profile.getModules() );
|
||||
model.setPluginRepositories( profile.getPluginRepositories() );
|
||||
model.setReporting( profile.getReporting() );
|
||||
model.setRepositories( profile.getRepositories() );
|
||||
ModelUtils.mergeModelBases( model, profile );
|
||||
|
||||
BuildBase profileBuild = profile.getBuild();
|
||||
if ( profileBuild != null )
|
||||
|
|
Loading…
Reference in New Issue