karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maciej Mraczek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-3344) Unable to define war as part of the feature
Date Fri, 07 Nov 2014 00:11:34 GMT

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

Maciej Mraczek commented on KARAF-3344:
---------------------------------------

The fix enables defining urls with war/webbundle protocol with options after "$" to be properly
processed by karaf-maven-plugin, so WARs are correctly put to target assembly.

The two problem still exist:
* It is not possible to install war/webbundle by feature:install - the result is: Error resolving
artifact - because URL option part is not ignored.
* In case when webbundle is part of boot feature - it is hard to set proper feature install
order - webbundle has to be installed after "war" feature, otherwise webbunde/war protocol
is not recognized and Karaf fails to start. If "war" is defined as depenency of boot feature,
karaf also fails to start.

> Unable to define war as part of the feature
> -------------------------------------------
>
>                 Key: KARAF-3344
>                 URL: https://issues.apache.org/jira/browse/KARAF-3344
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 3.0.2
>         Environment: Windows 7 64
>            Reporter: Maciej Mraczek
>            Assignee: Jean-Baptiste Onofré
>              Labels: feature, war
>             Fix For: 4.0.0, 3.0.3
>
>
> I'm trying to deploy WAR as part of Karaf startup feature inside my Karaf custom distribution.
> WAR definition inside <feature> tag in feature.xml:
> {quote}
> <bundle start-level="83">webbundle:mvn:org.karaf.abc/angular-frontend/$\{project.version\}/war?Web-ContextPath=/angular-frontend</bundle>
> {quote}
> Maven error:
> {quote}
> \[ERROR\] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:3.0.2:install-kars
(default-install-kars) on project abc-distribution: Can not install abc-full feature: Couldn't
resolve artifact org.karaf.abc:angular-frontend:war?Web-ContextPath=:angular-frontend:1.0-SNAPSHOT:
Could not find artifact org.karaf.abc:angular-frontend:war?Web-ContextPath=:angular-frontend:1.0-SNAPSHOT
-> \[Help 1\]
> {quote}
> The error is also reproduced when using karaf-maven-plugin 4.0.0.M1
> The custom distribution with WAR can be created using Karaf 2.x
> The WAR artifact can be installed inside Karaf by bundle:install -s without any problems.
> It looks like install-kars goal does not ignore install parameters after ? sign.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message