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 ) ); } } }
new RelocatedArtifact( a, relocation.getGroupId(), relocation.getArtifactId(), relocation.getVersion() ); result.setArtifact( a );
private void setArtifactProperties( ArtifactDescriptorResult result, Model model ) { String downloadUrl = null; DistributionManagement distMngt = model.getDistributionManagement(); if ( distMngt != null ) { downloadUrl = distMngt.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 void setArtifactProperties( ArtifactDescriptorResult result, Model model ) { String downloadUrl = null; DistributionManagement distMngt = model.getDistributionManagement(); if ( distMngt != null ) { downloadUrl = distMngt.getDownloadUrl(); } if ( downloadUrl != null && downloadUrl.length() > 0 ) { Artifact artifact = result.getArtifact(); Map<String, String> props = new HashMap<String, String>( artifact.getProperties() ); props.put( ArtifactProperties.DOWNLOAD_URL, downloadUrl ); result.setArtifact( artifact.setProperties( props ) ); } }
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 ) ); } } }
public ArtifactDescriptorResult toResult( ArtifactDescriptorRequest request ) { ArtifactDescriptorResult result = new ArtifactDescriptorResult( request ); result.setArtifact( artifact ); result.setRelocations( relocations ); result.setAliases( aliases ); result.setDependencies( dependencies ); result.setManagedDependencies( managedDependencies ); result.setRepositories( repositories ); return result; }
public ArtifactDescriptorResult toResult( ArtifactDescriptorRequest request ) { ArtifactDescriptorResult result = new ArtifactDescriptorResult( request ); result.setArtifact( artifact ); result.setRelocations( relocations ); result.setAliases( aliases ); result.setDependencies( dependencies ); result.setManagedDependencies( managedDependencies ); result.setRepositories( repositories ); return result; }
result.setArtifact(artifactResult);
result.setArtifact( artifact ); result.setDependencies( data.getDependencies() ); result.setManagedDependencies( data.getManagedDependencies() );
new RelocatedArtifact( artifact, relocation.getGroupId(), relocation.getArtifactId(), relocation.getVersion() ); result.setArtifact( artifact );
new RelocatedArtifact( artifact, relocation.getGroupId(), relocation.getArtifactId(), relocation.getVersion() ); result.setArtifact( artifact );
new RelocatedArtifact( a, relocation.getGroupId(), relocation.getArtifactId(), relocation.getVersion() ); result.setArtifact( a );
new RelocatedArtifact( a, relocation.getGroupId(), relocation.getArtifactId(), relocation.getVersion() ); result.setArtifact( a );