Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed path to settings.xml for #24

  • Loading branch information...
commit fb23c2a52b8d6fcdc218b1726bf3774bad5b93ce 1 parent f97ce1c
@FroMage FroMage authored
View
9 maven/src/main/java/com/redhat/ceylon/cmr/maven/AetherUtils.java
@@ -18,15 +18,16 @@
import java.io.File;
-import com.redhat.ceylon.cmr.api.ArtifactContext;
-import com.redhat.ceylon.cmr.api.Logger;
-import com.redhat.ceylon.cmr.spi.Node;
import org.jboss.shrinkwrap.resolver.api.ResolutionException;
import org.jboss.shrinkwrap.resolver.api.maven.Maven;
import org.jboss.shrinkwrap.resolver.api.maven.MavenFormatStage;
import org.jboss.shrinkwrap.resolver.api.maven.MavenResolverSystem;
import org.jboss.shrinkwrap.resolver.api.maven.MavenStrategyStage;
+import com.redhat.ceylon.cmr.api.ArtifactContext;
+import com.redhat.ceylon.cmr.api.Logger;
+import com.redhat.ceylon.cmr.spi.Node;
+
/**
* Aether utils.
* <p/>
@@ -108,6 +109,8 @@ public static String getDefaultMavenSettings() {
}
private MavenResolverSystem getResolver() {
+ if(settingsXml.startsWith("classpath:"))
+ return Maven.configureResolver().fromClassloaderResource(settingsXml.substring(10));
return Maven.configureResolver().fromFile(settingsXml);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.