use of org.apache.archiva.repository.content.base.builder.ArtifactOptBuilder in project archiva by apache.
the class ManagedDefaultRepositoryContent method createArtifact.
public Artifact createArtifact(final StorageAsset artifactPath, final ItemSelector selector, final String classifier) {
Version version = getVersion(selector);
ArtifactOptBuilder builder = org.apache.archiva.repository.content.base.ArchivaArtifact.withAsset(artifactPath).withVersion(version).withId(selector.getArtifactId()).withArtifactVersion(mavenContentHelper.getArtifactVersion(artifactPath, selector)).withClassifier(classifier);
if (selector.hasType()) {
builder.withType(selector.getType());
}
return builder.build();
}
Aggregations