karaf-issues mailing list archives

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

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

ASF GitHub Bot commented on KARAF-6170:
---------------------------------------

jbonofre commented on pull request #777: [KARAF-6170] Handle https URL in features-add-to-repository
goal
URL: https://github.com/apache/karaf/pull/777
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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