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 2017/10/03 11:20:00 UTC

[jira] [Resolved] (KARAF-3531) SimpleMavenResolver does not handle wrap: prefix in mvn urls

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

Jean-Baptiste Onofré resolved KARAF-3531.
-----------------------------------------
       Resolution: Fixed
    Fix Version/s: 4.0.11
                   4.1.3
                   4.2.0

> SimpleMavenResolver does not handle wrap: prefix in mvn urls
> ------------------------------------------------------------
>
>                 Key: KARAF-3531
>                 URL: https://issues.apache.org/jira/browse/KARAF-3531
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 3.0.3
>            Reporter: Ed Warnicke
>             Fix For: 4.2.0, 4.1.3, 4.0.11
>
>
> If you have a dependency on:
> <!-- karaf standard features -->
>     <dependency>
>       <groupId>org.apache.karaf.features</groupId>
>       <artifactId>standard</artifactId>
>       <version>${karaf.version}</version>
>       <type>xml</type>
>       <classifier>features</classifier>
>     </dependency>
> Note: compile scope... this will cause a radical overpopulation of startup.properties which will result in a listing with a wrap: prefix which will
> then cause a failure of karaf startup because the SimpleMavenResolver does not have any logic to deal with a wrap:mvn:<groupId>/<artifactId> (because it presumes all mvn urls are prefixed with mvn:).  As a result you will get a failure on first karaf startup, and on subsequent startups you will get a partial resolution case.
> Suggested solution: check for the wrap: prefix in SimpleMavenResolver and handle it correctly.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)