artifactReference.setVersion( version ); artifactReference.setClassifier( fileMetadata.getClassifier() ); artifactReference.setType( packaging );
artifactReference.setVersion( version ); artifactReference.setClassifier( fileMetadata.getClassifier() ); artifactReference.setType( packaging );
artifactReference.setVersion( version ); artifactReference.setClassifier( fileMetadata.getClassifier() ); artifactReference.setType( StringUtils.isEmpty( fileMetadata.getPackaging() ) ? packaging : fileMetadata.getPackaging() );
artifactReference.setVersion( version ); artifactReference.setClassifier( fileMetadata.getClassifier() ); artifactReference.setType( StringUtils.isEmpty( fileMetadata.getPackaging() ) ? packaging : fileMetadata.getPackaging() );
private ArtifactReference getNewArtifactReference( ArtifactReference reference, String version ) throws LayoutException { ArtifactReference artifact = new ArtifactReference( ); artifact.setGroupId( reference.getGroupId( ) ); artifact.setArtifactId( reference.getArtifactId( ) ); artifact.setVersion( version ); artifact.setClassifier( reference.getClassifier( ) ); artifact.setType( reference.getType( ) ); return artifact; } }
public static ArtifactReference clone( ArtifactReference artifactReference ) { if ( artifactReference == null ) { return null; } ArtifactReference cloned = new ArtifactReference(); cloned.setGroupId( artifactReference.getGroupId() ); cloned.setArtifactId( artifactReference.getArtifactId() ); cloned.setVersion( artifactReference.getVersion() ); cloned.setClassifier( artifactReference.getClassifier() ); cloned.setType( artifactReference.getType() ); return cloned; }
public static ArtifactReference clone( ArtifactReference artifactReference ) { if ( artifactReference == null ) { return null; } ArtifactReference cloned = new ArtifactReference(); cloned.setGroupId( artifactReference.getGroupId() ); cloned.setArtifactId( artifactReference.getArtifactId() ); cloned.setVersion( artifactReference.getVersion() ); cloned.setClassifier( artifactReference.getClassifier() ); cloned.setType( artifactReference.getType() ); return cloned; }
artifact.setType( facet.getType() );
artifact.setType( facet.getType() );
pomReference.setArtifactId( artifact.getArtifactId() ); pomReference.setVersion( artifact.getVersion() ); pomReference.setType( "pom" );
artifactReference.setClassifier( artifactTransferRequest.getClassifier() ); String packaging = StringUtils.trim( artifactTransferRequest.getPackaging() ); artifactReference.setType( StringUtils.isEmpty( packaging ) ? "jar" : packaging );
pomReference.setArtifactId( artifact.getArtifactId() ); pomReference.setVersion( artifact.getVersion() ); pomReference.setType( "pom" );
private void doPurgeAllRelated( ArtifactReference reference, String version ) throws LayoutException { ArtifactReference artifact = new ArtifactReference(); artifact.setGroupId( reference.getGroupId() ); artifact.setArtifactId( reference.getArtifactId() ); artifact.setVersion( version ); artifact.setClassifier( reference.getClassifier() ); artifact.setType( reference.getType() ); try { Set<ArtifactReference> related = repository.getRelatedArtifacts( artifact ); purge( related ); } catch ( ContentNotFoundException e ) { // Nothing to do here. // TODO: Log this? } } }
artifactReference.setClassifier( artifactTransferRequest.getClassifier() ); String packaging = StringUtils.trim( artifactTransferRequest.getPackaging() ); artifactReference.setType( StringUtils.isEmpty( packaging ) ? "jar" : packaging );
artifactReference.setVersion( artifact.getVersion() ); artifactReference.setClassifier( artifact.getClassifier() ); artifactReference.setType( artifact.getPackaging() );
ref.setType( type ); Path file = managedRepositoryContent.toFile( ref );
ref.setType( type ); File file = managedRepositoryContent.toFile( ref );
artifactReference.setVersion( artifact.getVersion() ); artifactReference.setClassifier( artifact.getClassifier() ); artifactReference.setType( artifact.getPackaging() );