Ygor Castor created KARAF-4817:
----------------------------------

             Summary: 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)

Reply via email to