public DistributionManagement getDistributionManagement() { return getModel().getDistributionManagement(); }
public DistributionManagement getDistributionManagement() { return getModel().getDistributionManagement(); }
private Relocation getRelocation( Model model ) { Relocation relocation = null; DistributionManagement distMgmt = model.getDistributionManagement(); if ( distMgmt != null ) { relocation = distMgmt.getRelocation(); } return relocation; }
private void setArtifactProperties( ArtifactDescriptorResult result, Model model ) { String downloadUrl = null; DistributionManagement distMgmt = model.getDistributionManagement(); if ( distMgmt != null ) { downloadUrl = distMgmt.getDownloadUrl(); } if ( downloadUrl != null && downloadUrl.length() > 0 ) { Artifact artifact = result.getArtifact(); Map<String, String> props = new HashMap<>( artifact.getProperties() ); props.put( ArtifactProperties.DOWNLOAD_URL, downloadUrl ); result.setArtifact( artifact.setProperties( props ) ); } } }
private Model createStubModel( Artifact projectArtifact ) { getLogger().debug( "Using defaults for missing POM " + projectArtifact ); Model model = new Model(); model.setModelVersion( "4.0.0" ); model.setArtifactId( projectArtifact.getArtifactId() ); model.setGroupId( projectArtifact.getGroupId() ); model.setVersion( projectArtifact.getVersion() ); // TODO: not correct in some instances model.setPackaging( projectArtifact.getType() ); model.setDistributionManagement( new DistributionManagement() ); model.getDistributionManagement().setStatus( ArtifactStatus.GENERATED.toString() ); return model; }
DistributionManagement distributionManagement = model.getDistributionManagement();
private void assembleDistributionInheritence( Model child, Model parent, String childPathAdjustment, boolean appendPaths ) if ( parent.getDistributionManagement() != null ) DistributionManagement parentDistMgmt = parent.getDistributionManagement(); DistributionManagement childDistMgmt = child.getDistributionManagement();
private void injectDistributionManagement( Profile profile, Model model ) DistributionManagement mDistMgmt = model.getDistributionManagement();
private void assembleDistributionInheritance( Model child, Model parent, String childPathAdjustment, boolean appendPaths ) if ( parent.getDistributionManagement() != null ) DistributionManagement parentDistMgmt = parent.getDistributionManagement(); DistributionManagement childDistMgmt = child.getDistributionManagement();
if ( model.getDistributionManagement() != null ) writeDistributionManagement( (DistributionManagement) model.getDistributionManagement(), "distributionManagement", serializer );
container ) ); DistributionManagement dm = model.getDistributionManagement(); if ( dm != null )
@Override public void normalize( Model model, ModelBuildingRequest request ) { if ( model == null ) { return; } model.setUrl( normalize( model.getUrl() ) ); Scm scm = model.getScm(); if ( scm != null ) { scm.setUrl( normalize( scm.getUrl() ) ); scm.setConnection( normalize( scm.getConnection() ) ); scm.setDeveloperConnection( normalize( scm.getDeveloperConnection() ) ); } DistributionManagement dist = model.getDistributionManagement(); if ( dist != null ) { Site site = dist.getSite(); if ( site != null ) { site.setUrl( normalize( site.getUrl() ) ); } } }
DistributionManagement distMgmt = m.getDistributionManagement(); if ( distMgmt != null )
if ( model.getDistributionManagement() != null ) writeDistributionManagement( (DistributionManagement) model.getDistributionManagement(), "distributionManagement", serializer );
private Relocation getRelocation( Model model ) { Relocation relocation = null; DistributionManagement distMgmt = model.getDistributionManagement(); if ( distMgmt != null ) { relocation = distMgmt.getRelocation(); } return relocation; }
private Relocation getRelocation( Model model ) { Relocation relocation = null; DistributionManagement distMngt = model.getDistributionManagement(); if ( distMngt != null ) { relocation = distMngt.getRelocation(); } return relocation; }
private Relocation getRelocation( Model model ) { Relocation relocation = null; DistributionManagement distMngt = model.getDistributionManagement(); if ( distMngt != null ) { relocation = distMngt.getRelocation(); } return relocation; }
private Relocation getRelocation( Model model ) { Relocation relocation = null; DistributionManagement distMngt = model.getDistributionManagement(); if ( distMngt != null ) { relocation = distMngt.getRelocation(); } return relocation; }
private static void setDistMgmntSiteUrl( Model model, String url ) { if ( model.getDistributionManagement() == null ) { model.setDistributionManagement( new DistributionManagement() ); } if ( model.getDistributionManagement().getSite() == null ) { model.getDistributionManagement().setSite( new Site() ); } model.getDistributionManagement().getSite().setUrl( url ); } }
void project(Model model) { String name = model.getName(); if (name == null) { name = model.getArtifactId(); } p.printStartBlock( "project", name, model.getUrl() ); p.println(); p.println( "model_version", model.getModelVersion() ); p.println( "inception_year", model.getInceptionYear() ); id(model); parent(model.getParent()); p.println("packaging", model.getPackaging()); p.println(); description(model.getDescription()); developers( model.getDevelopers() ); issueManagement( model.getIssueManagement() ); mailingLists( model.getMailingLists() ); repositories( toRepositoryArray( model.getRepositories() ) ); pluginRepositories( toRepositoryArray( model.getPluginRepositories() ) ); sourceControl( model.getScm() ); distribution( model.getDistributionManagement() ); properties( model.getProperties() ); dependencies( model.getDependencies() ); modules( model.getModules() ); managements( model.getDependencyManagement(), model.getBuild() ); build( model.getBuild(), model.getBuild() ); profiles( model.getProfiles() ); reporting( model.getReporting() ); p.printEndBlock(); }