Permalink
Browse files

Fixed path to settings.xml for #24

  • Loading branch information...
FroMage committed Oct 26, 2012
1 parent f97ce1c commit fb23c2a52b8d6fcdc218b1726bf3774bad5b93ce
Showing with 6 additions and 3 deletions.
  1. +6 −3 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);
}
}

0 comments on commit fb23c2a

Please sign in to comment.