private ModelSource getParentPomFile( Model childModel, ModelSource source ) { if ( !( source instanceof ModelSource2 ) ) { return null; } String parentPath = childModel.getParent().getRelativePath(); if ( parentPath == null || parentPath.length() <= 0 ) { return null; } return ( (ModelSource2) source ).getRelatedSource( parentPath ); }
protected void mergeModel_Parent( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { Parent src = source.getParent(); if ( src != null ) { Parent tgt = target.getParent(); if ( tgt == null ) { tgt = new Parent(); tgt.setRelativePath( null ); target.setParent( tgt ); } mergeParent( tgt, src, sourceDominant, context ); } }
projVersionStr = model.getVersion(); if( projVersionStr == null ) { projVersionStr = model.getParent().getVersion();
static String toId( Model model ) { if ( model == null ) { return ""; } String groupId = model.getGroupId(); if ( groupId == null && model.getParent() != null ) { groupId = model.getParent().getGroupId(); } String artifactId = model.getArtifactId(); String version = model.getVersion(); if ( version == null ) { version = "[unknown-version]"; } return toId( groupId, artifactId, version ); }
Parent parent = project.getModel().getParent();
if ( interpolatedModel.getParent() != null ) String interpolated = ssi.interpolate( interpolatedModel.getParent().getVersion() ); interpolatedModel.getParent().setVersion( interpolated ); new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE ).setMessage( "Failed to interpolate field: " + interpolatedModel.getParent().getVersion() + " on class: " ).setException( e ); problems.add( mpcr );
Parent parent = model.getParent(); if ( parent != null )
throws ModelBuildingException final Parent parent = childModel.getParent(); final ModelSource candidateSource; final Model candidateModel; if ( groupId == null && candidateModel.getParent() != null ) groupId = candidateModel.getParent().getGroupId(); if ( version == null && candidateModel.getParent() != null ) version = candidateModel.getParent().getVersion();
Parent parent = childModel.getParent().clone();
Parent parentModel = model.getParent(); if ( ( candidateParentGroupId == null ) && ( candidateParent.getParent() != null ) ) candidateParentGroupId = candidateParent.getParent().getGroupId(); if ( ( candidateParentVersion == null ) && ( candidateParent.getParent() != null ) ) candidateParentVersion = candidateParent.getParent().getVersion();
Parent parent = childModel.getParent();
resultData.setModel( resultModel ); if ( resultModel.getParent() != null )
result.setOrganization( cloneOrganization( src.getOrganization() ) ); result.setPackaging( src.getPackaging() ); result.setParent( cloneParent( src.getParent() ) );
@Override public void validateRawModel( Model m, ModelBuildingRequest request, ModelProblemCollector problems ) Parent parent = m.getParent(); if ( parent != null )