protected void mergeDistributionManagement_Status( DistributionManagement target, DistributionManagement source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getStatus(); if ( src != null ) { if ( sourceDominant || target.getStatus() == null ) { target.setStatus( src ); target.setLocation( "status", source.getLocation( "status" ) ); } } }
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; }
public static DistributionManagement cloneDistributionManagement( DistributionManagement src ) { if ( src == null ) { return null; } DistributionManagement result = new DistributionManagement(); result.setDownloadUrl( src.getDownloadUrl() ); result.setRelocation( cloneRelocation( src.getRelocation() ) ); result.setRepository( cloneDeploymentRepository( src.getRepository() ) ); result.setSite( cloneSite( src.getSite() ) ); result.setSnapshotRepository( cloneDeploymentRepository( src.getSnapshotRepository() ) ); result.setStatus( src.getStatus() ); return result; }
distributionManagement.setStatus( interpolatedTrimmed( parser.nextText(), "status" ) );
distributionManagement.setStatus( interpolatedTrimmed( parser.nextText(), "status" ) );
/** * Set gives the status of this artifact in the remote * repository. This must not be set in your local project, as * it is updated by tools placing it in the repository. * Valid values are: <code>none</code> (default), * <code>converted</code> (repository manager converted this * from an Maven 1 POM), <code>partner</code> (directly synced * from a partner Maven 2 repository), <code>deployed</code> * (was deployed from a Maven 2 instance), <code>verified</code> * (has been hand verified as correct and final). * * @param status */ public FluentDistributionManagementBuilder withStatus(String status) { management.setStatus(status); return this; } }
distributionManagement.setStatus( getTrimmedValue( value ) );
/** * The status element of the distributionManagement section must not be * set in local projects. This method removes that element from the model. */ private void removeDistributionManagementStatus( Model v4Model ) { if ( v4Model.getDistributionManagement() != null ) { if ( "converted".equals( v4Model.getDistributionManagement().getStatus() ) ) { v4Model.getDistributionManagement().setStatus( null ); } } }
protected void mergeDistributionManagement_Status( DistributionManagement target, DistributionManagement source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getStatus(); if ( src != null ) { if ( sourceDominant || target.getStatus() == null ) { target.setStatus( src ); target.setLocation( "status", source.getLocation( "status" ) ); } } }
distributionManagement.setStatus( "converted" );
distributionManagement.setStatus( getTrimmedValue( parser.nextText() ) );
distributionManagement.setStatus( getTrimmedValue( parser.nextText() ) );