]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/maven/ImportMavenDependencies.java
Improve import maven dependencies
[gpl/argeo-slc.git] / runtime / org.argeo.slc.repo / src / main / java / org / argeo / slc / repo / maven / ImportMavenDependencies.java
index 962e429ea0dafc5d0a382ada39a880d666461810..2ad3e7b5a42fe90e1c4fbaf9d56fe60077b8fa48 100644 (file)
@@ -57,7 +57,7 @@ public class ImportMavenDependencies implements Runnable {
 
        private Session jcrSession;
        private String artifactBasePath = RepoConstants.ARTIFACTS_BASE_PATH;
-       private String distributionsBasePath = "/slc/repo/distributions";
+       private String distributionsBasePath = RepoConstants.DISTRIBUTIONS_BASE_PATH;
        private String distributionName;
 
        private ArtifactIndexer artifactIndexer = new ArtifactIndexer();
@@ -141,7 +141,8 @@ public class ImportMavenDependencies implements Runnable {
                                }
 
                                try {
-                                       String parentPath = artifactBasePath + '/'
+                                       String parentPath = artifactBasePath
+                                                       + (artifactBasePath.endsWith("/") ? "" : "/")
                                                        + artifactParentPath(artifact);
                                        Node parentNode;
                                        if (!jcrSession.itemExists(parentPath)) {