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 2019/03/12 07:20:46 UTC
[karaf] branch master updated: [KARAF-6170] Handle https URL in
features-add-to-repository goal
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/master by this push:
new 2a61911 [KARAF-6170] Handle https URL in features-add-to-repository goal
new 8240495 Merge pull request #777 from jbonofre/KARAF-6170
2a61911 is described below
commit 2a61911091934fdd47cdf5834b883840d165ed05
Author: Jean-Baptiste Onofré <jb...@nanthrax.net>
AuthorDate: Fri Mar 8 13:52:20 2019 +0100
[KARAF-6170] Handle https URL in features-add-to-repository goal
---
.../src/main/java/org/apache/karaf/tooling/utils/MojoSupport.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/MojoSupport.java b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/MojoSupport.java
index 3f0e06c..9293882 100644
--- a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/MojoSupport.java
+++ b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/MojoSupport.java
@@ -275,7 +275,7 @@ public abstract class MojoSupport extends AbstractMojo {
//check if the resourceLocation descriptor contains also remote repository information.
ArtifactRepository repo = null;
- if (resourceLocation.startsWith("http://")) {
+ if (resourceLocation.startsWith("http://") || resourceLocation.startsWith("https://")) {
final int repoDelimIndex = resourceLocation.indexOf('!');
String repoUrl = resourceLocation.substring(0, repoDelimIndex);
int paramIndex = repoUrl.indexOf("@");