use of org.apache.archiva.converter.artifact.ArtifactConversionException in project archiva by apache.
the class LegacyConverterArtifactConsumer method processFile.
@Override
public void processFile(String path) throws ConsumerException {
try {
ArtifactReference reference = managedRepository.toArtifactReference(path);
Artifact artifact = artifactFactory.createArtifact(reference.getGroupId(), reference.getArtifactId(), reference.getVersion(), reference.getClassifier(), reference.getType());
artifactConverter.convert(artifact, destinationRepository);
} catch (LayoutException e) {
log.warn("Unable to convert artifact: {} : {}", path, e.getMessage(), e);
} catch (ArtifactConversionException e) {
log.warn("Unable to convert artifact: {} : {}", path, e.getMessage(), e);
}
}
Aggregations