Commit 9a0b7207 authored by Brian Long's avatar Brian Long
Browse files

fixed import/url; added default artifact ext: xml

parent fee40322
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -69,10 +69,12 @@ public abstract class AbstractBanConfiguration implements BanConfiguration {
        for (Xpp3Dom child : importDom.getChildren()) {
            BanConfigurationDownloader downloader = null;
            if (child.getName().equals("url")) {
                String url = StringUtils.trimToNull(importDom.getValue());
                String url = StringUtils.trimToNull(child.getValue());
                downloader = new BanConfigurationDownloader(this.session, this.artifactResolver, url);
            } else if (child.getName().equals("artifact")) {
                Artifact artifact = new DefaultArtifact(child.getValue());
                if (artifact.getExtension() == null)
                    artifact = new DefaultArtifact(artifact.getGroupId(), artifact.getArtifactId(), artifact.getClassifier(), "xml", artifact.getVersion());
                ArtifactRequest request = new ArtifactRequest(artifact, this.session.getCurrentProject().getRemoteProjectRepositories(), null);
                
                try {