forcing extension to "xml"
This commit is contained in:
@@ -73,7 +73,7 @@ public abstract class AbstractBanConfiguration implements BanConfiguration {
|
|||||||
downloader = new BanConfigurationDownloader(this.session, this.artifactResolver, url);
|
downloader = new BanConfigurationDownloader(this.session, this.artifactResolver, url);
|
||||||
} else if (child.getName().equals("artifact")) {
|
} else if (child.getName().equals("artifact")) {
|
||||||
Artifact artifact = new DefaultArtifact(child.getValue());
|
Artifact artifact = new DefaultArtifact(child.getValue());
|
||||||
if (artifact.getExtension() == null)
|
if (!"xml".equals(artifact.getExtension()))
|
||||||
artifact = new DefaultArtifact(artifact.getGroupId(), artifact.getArtifactId(), artifact.getClassifier(), "xml", artifact.getVersion());
|
artifact = new DefaultArtifact(artifact.getGroupId(), artifact.getArtifactId(), artifact.getClassifier(), "xml", artifact.getVersion());
|
||||||
ArtifactRequest request = new ArtifactRequest(artifact, this.session.getCurrentProject().getRemoteProjectRepositories(), null);
|
ArtifactRequest request = new ArtifactRequest(artifact, this.session.getCurrentProject().getRemoteProjectRepositories(), null);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user