You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2011/04/28 09:15:22 UTC

svn commit: r1097337 - /karaf/branches/karaf-2.2.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java

Author: jbonofre
Date: Thu Apr 28 07:15:21 2011
New Revision: 1097337

URL: http://svn.apache.org/viewvc?rev=1097337&view=rev
Log:
[KARAF-497] Resolve mvn URLs in <descriptor/> element for features-maven-plugin:add-features-to-repo.

Modified:
    karaf/branches/karaf-2.2.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java

Modified: karaf/branches/karaf-2.2.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java?rev=1097337&r1=1097336&r2=1097337&view=diff
==============================================================================
--- karaf/branches/karaf-2.2.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java (original)
+++ karaf/branches/karaf-2.2.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java Thu Apr 28 07:15:21 2011
@@ -109,6 +109,11 @@ public class AddFeaturesToRepoMojo exten
             Set<String> bundles = new HashSet<String>();
             Map<String, Feature> featuresMap = new HashMap<String, Feature>();
             for (String uri : descriptors) {
+                // let's ensure a mvn: based url is sitting in the local repo before we try reading it
+                Artifact descriptor = bundleToArtifact(uri, true);
+                if (descriptor != null) {
+                    resolveBundle(descriptor, remoteRepos);
+                }
                 if (includeMvnBasedDescriptors) {
                     bundles.add(uri);
                 }