karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-6170) karaf-maven-plugin doesn't support "https" remoteRepos URI accembly
Date Tue, 12 Mar 2019 07:22:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-6170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16790303#comment-16790303
] 

ASF subversion and git services commented on KARAF-6170:
--------------------------------------------------------

Commit 69d3bf062b306dbc53f15cb160d9b720c8e20e48 in karaf's branch refs/heads/karaf-4.2.x from
Jean-Baptiste Onofré
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=69d3bf0 ]

[KARAF-6170] Handle https URL in features-add-to-repository goal


> 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)

Mime
View raw message