You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2019/03/06 15:11:00 UTC

[jira] [Resolved] (KARAF-6184) karaf-maven-plugin : ability to use feature having https schema

     [ https://issues.apache.org/jira/browse/KARAF-6184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-6184.
-----------------------------------------
    Resolution: Duplicate

Yup and I already fixed it ;) Just have to create the PR.

> karaf-maven-plugin : ability to use feature having https schema
> ---------------------------------------------------------------
>
>                 Key: KARAF-6184
>                 URL: https://issues.apache.org/jira/browse/KARAF-6184
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.3
>            Reporter: Julien Greffe
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> Hello,
> not sure if this a KARAF or CAMEL issue.
> when using karaf-maven-plugin like this, there's an issue when resolving features having bundle with an https schema.
> pom example :
> {code:xml}
> <plugin>
> 	<groupId>org.apache.karaf.tooling</groupId>
> 	<artifactId>karaf-maven-plugin</artifactId>
> 	<version>4.2.3</version>
> 	<executions>
> 		<execution>
> 			<id>add-features-to-repo</id>
> 			<phase>process-resources</phase>
> 			<goals>
> 				<goal>features-add-to-repository</goal>
> 			</goals>
> 			<configuration>
> 				<descriptors>
> 					<descriptor>mvn:org.apache.camel.karaf/apache-camel/2.23.1/xml/features</descriptor>
> 				</descriptors>
> 				<features>
> 					<feature>camel-restlet-jackson</feature>
> 				</features>
> 				<repository>target/features-repo</repository>
> 			</configuration>
> 		</execution>
> 	</executions>
> </plugin>
> {code}
> The feature XML : https://github.com/apache/camel/blob/release/2.23.1/platforms/karaf/features/src/main/resources/features.xml#L1913
> {code:xml}
> <bundle>mvn:https://maven.restlet.com@id=restlet!org.restlet.osgi/org.restlet.ext.jackson/${restlet-version}</bundle>
> {code}
> Building maven result in this error :
> {noformat}
> Caused by: java.lang.RuntimeException: Can't resolve artifact https:::org.restlet.ext.jackson:2.3.12:maven.restlet.com@id=restlet!org.restlet.osgi
>     at org.apache.karaf.tooling.features.AbstractFeatureMojo.resolveArtifact (AbstractFeatureMojo.java:158)
> {noformat}
> This seems linked to this part in karaf-maven-plugin :
> https://github.com/apache/karaf/blob/karaf-4.2.3/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/MojoSupport.java#L278
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)