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 2016/11/13 06:56:59 UTC

[jira] [Commented] (KARAF-4817) karaf-maven-plugin startupFeatures does not work.

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

Jean-Baptiste Onofré commented on KARAF-4817:
---------------------------------------------

It's normal: a startup feature goes into the {{etc/startup.properties}} directly as a bundle (not as a feature. As your requirements is based on a feature, startup feature doesn't help.

> karaf-maven-plugin startupFeatures does not work. 
> --------------------------------------------------
>
>                 Key: KARAF-4817
>                 URL: https://issues.apache.org/jira/browse/KARAF-4817
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>         Environment: Apache Karaf 4.0.7 on Windows 8.1  
>            Reporter: Ygor Castor
>
> At the "Custom Distributions" chapter at the Karaf Manual we have the following informations. 
> {quote}
>     feature scope
> runtime: feature installation is controlled by <startupFeature>, <bootFeature>, and
> <installedFeature> elements in the karaf-maven-plugin configuration. The feature repo
> uri is listed in the features service configuration file.
> {quote} 
> {quote}
> <startupFeature>foo</startupFeature> This will result in the feature bundles
> being listed in startup.properties at the appropriate start level and the bundles
> being copied into the "system" internal repository. You can use feature_name
> or feature_name/feature_version formats.
> {quote} 
> I have a runtime-scoped feature which i need to be a Startup feature, but not a boot feature, it seems that the startup tag should do what i need, but i stumbled in two problems.
> 1. When i register the feature as a "startupFeature", the plugin does not copy the bundles to the system repository, with the following error
> {quote}
> [ ERROR ] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.7:assembly (default-assembly) on project winthor-karaf: Unable to build assembly: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=winthor-core-servico; type=karaf.feature; filter:="(&(osgi.identity=winthor-core-servico)(type=karaf.feature))" -> [Help 1]
> {quote}
> 2. When i register the feature as a installedFeature before the startupFeature tag, the error goes away, but the feature bundles can't be found at the startup.properties file. 
> So, it seems that the functionality is broken.



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