[
https://issues.apache.org/jira/browse/KARAF-6170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Baptiste Onofré resolved KARAF-6170.
-----------------------------------------
Resolution: Fixed
> karaf-maven-plugin doesn't support "https" remoteRepos URI accembly
> -------------------------------------------------------------------
>
> Key: KARAF-6170
> URL: https://issues.apache.org/jira/browse/KARAF-6170
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.3
> Reporter: Xilai Dai
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: 4.3.0, 4.2.4
>
>
> When assemble a custom Karaf container using karaf-maven-plugin, it fails
> when execute the "features-add-to-repository" goal in case of the added
> feature has a remote repo start with "https:" protocal.
> {code}
> <feature name='camel-restlet' version='2.23.1' resolver='(obr)'
> start-level='50'>
> <feature version='2.23.1'>camel-core</feature>
> <bundle dependency='true'>mvn:commons-codec/commons-codec/1.11</bundle>
> <bundle
> dependency='true'>mvn:org.apache.httpcomponents/httpcore-osgi/4.4.10</bundle>
> <bundle
> dependency='true'>mvn:org.apache.httpcomponents/httpclient-osgi/4.5.6</bundle>
> <bundle
> dependency='true'>mvn:https://maven.restlet.com@id=restlet!org.restlet.osgi/org.restlet/2.3.12</bundle>
> <bundle
> dependency='true'>mvn:https://maven.restlet.com@id=restlet!org.restlet.osgi/org.restlet.ext.httpclient/2.3.12</bundle>
> <bundle
> dependency='true'>mvn:javax.servlet/javax.servlet-api/3.1.0</bundle>
> <bundle>mvn:org.apache.camel/camel-http-common/2.23.1</bundle>
> <bundle>mvn:org.apache.camel/camel-restlet/2.23.1</bundle>
> </feature>
> {code}
> {code}
> [ERROR] Failed to execute goal
> org.apache.karaf.tooling:karaf-maven-plugin:4.2.3:features-add-to-repository
> (add-features-to-repo) on project talend-esb: Error populating repository:
> Error resolving feature camel-restlet-jackson/2.23.1: Error resolving
> artifact
> mvn:https://maven.restlet.com@id=restlet!org.restlet.osgi/org.restlet.ext.jackson/2.3.12:
> Can't resolve artifact
> https:::org.restlet.ext.jackson:2.3.12:maven.restlet.com@id=restlet!org.restlet.osgi:
> artifactId can neither be null, empty nor blank -> [Help 1]
> {code}
> Analyzing the source, L278 of MojoSupport.java,
> https://github.com/apache/karaf/blob/master/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/MojoSupport.java#L278,
> it only check the resourceLocation start with "http://", but ignore the
> "https://"
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)