Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
b6c7323203 | |||
9644bbe154 | |||
9a0b7207c0 |
2
pom.xml
2
pom.xml
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<groupId>com.inteligr8</groupId>
|
<groupId>com.inteligr8</groupId>
|
||||||
<artifactId>ban-maven-plugin</artifactId>
|
<artifactId>ban-maven-plugin</artifactId>
|
||||||
<version>1.2.2</version>
|
<version>1.2.3</version>
|
||||||
<packaging>maven-plugin</packaging>
|
<packaging>maven-plugin</packaging>
|
||||||
|
|
||||||
<name>Ban Dependencies Maven Plugin</name>
|
<name>Ban Dependencies Maven Plugin</name>
|
||||||
|
@@ -69,10 +69,12 @@ public abstract class AbstractBanConfiguration implements BanConfiguration {
|
|||||||
for (Xpp3Dom child : importDom.getChildren()) {
|
for (Xpp3Dom child : importDom.getChildren()) {
|
||||||
BanConfigurationDownloader downloader = null;
|
BanConfigurationDownloader downloader = null;
|
||||||
if (child.getName().equals("url")) {
|
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);
|
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)
|
||||||
|
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);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user