]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.factory/src/org/argeo/slc/factory/m2/MavenConventionsUtils.java
Add OSGi category
[gpl/argeo-slc.git] / org.argeo.slc.factory / src / org / argeo / slc / factory / m2 / MavenConventionsUtils.java
index 3b7ebbb45f7929bcde79df2241491b5de5e8192a..b6cc34a41a54c08ed87aeb94b2c805c3e7ed423b 100644 (file)
@@ -58,8 +58,13 @@ public class MavenConventionsUtils {
        }
 
        /** Absolute path to the file */
-       public static URL mavenCentralUrl(Artifact artifact) {
-               String url = artifactUrl(MAVEN_CENTRAL_BASE_URL, artifact);
+//     public static URL mavenCentralUrl(Artifact artifact) {
+//             return mavenRepoUrl(MAVEN_CENTRAL_BASE_URL, artifact);
+//     }
+
+       /** Absolute path to the file */
+       public static URL mavenRepoUrl(String repoBase, Artifact artifact) {
+               String url = artifactUrl(repoBase == null ? MAVEN_CENTRAL_BASE_URL : repoBase, artifact);
                try {
                        return new URL(url);
                } catch (MalformedURLException e) {