Package org.codehaus.mojo.flatten
Class DirectDependenciesInheritanceAssembler
java.lang.Object
org.apache.maven.model.inheritance.DefaultInheritanceAssembler
org.codehaus.mojo.flatten.DirectDependenciesInheritanceAssembler
- All Implemented Interfaces:
org.apache.maven.model.inheritance.InheritanceAssembler
@Singleton
@Named
public class DirectDependenciesInheritanceAssembler
extends org.apache.maven.model.inheritance.DefaultInheritanceAssembler
The DefaultInheritanceAssembler is encapsulating the InheritanceModelMerger.
The only way to override functionality needed is to define an own InheritanceAssembler
to provide the needed ModelMerger.
The container is providing the InheritanceAssembler.
This class will be configured in the META-INF/sisu/javax.inject.Named by the sisu-maven-plugin.
see issue https://github.com/mojohaus/flatten-maven-plugin/issues/220
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
InheritanceModelMergerNested classes/interfaces inherited from class org.apache.maven.model.inheritance.DefaultInheritanceAssembler
org.apache.maven.model.inheritance.DefaultInheritanceAssembler.InheritanceModelMerger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
copied from super implementation because it is privateprivate static final String
copied from super implementation because it is privateprotected FlattenDependencyMode
protected org.apache.maven.model.inheritance.DefaultInheritanceAssembler.InheritanceModelMerger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
assembleModelInheritance
(org.apache.maven.model.Model child, org.apache.maven.model.Model parent, org.apache.maven.model.building.ModelBuildingRequest request, org.apache.maven.model.building.ModelProblemCollector problems) private String
getChildPathAdjustment
(org.apache.maven.model.Model child, org.apache.maven.model.Model parent, String childDirectory) copied from super implementation because it is private though the adjustment is only for compatibility due to the comment with Maven 2.0
-
Field Details
-
merger
protected org.apache.maven.model.inheritance.DefaultInheritanceAssembler.InheritanceModelMerger merger -
CHILD_DIRECTORY
copied from super implementation because it is private- See Also:
-
CHILD_DIRECTORY_PROPERTY
copied from super implementation because it is private- See Also:
-
flattenDependencyMode
-
-
Constructor Details
-
DirectDependenciesInheritanceAssembler
public DirectDependenciesInheritanceAssembler()
-
-
Method Details
-
assembleModelInheritance
public void assembleModelInheritance(org.apache.maven.model.Model child, org.apache.maven.model.Model parent, org.apache.maven.model.building.ModelBuildingRequest request, org.apache.maven.model.building.ModelProblemCollector problems) - Specified by:
assembleModelInheritance
in interfaceorg.apache.maven.model.inheritance.InheritanceAssembler
- Overrides:
assembleModelInheritance
in classorg.apache.maven.model.inheritance.DefaultInheritanceAssembler
-
getChildPathAdjustment
private String getChildPathAdjustment(org.apache.maven.model.Model child, org.apache.maven.model.Model parent, String childDirectory) copied from super implementation because it is private though the adjustment is only for compatibility due to the comment with Maven 2.0- Parameters:
child
-parent
-childDirectory
-- Returns:
-