You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Cetra Free (JIRA)" <ji...@apache.org> on 2016/10/11 06:55:20 UTC

[jira] [Updated] (KARAF-4756) Redeploying Features in the Deploy directory with install="auto" does not work for same feature versions

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

Cetra Free updated KARAF-4756:
------------------------------
    Description: 
If you add a {{-features.xml}} file to the deploy directory, and then make any changes to the file, except the name or version, then the feature will stay uninstalled.

You can manually install the feature with feature:install, but this defeats the purpose of having install="auto"

Here's a simple feature:

{code}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" name="example" >
  <repository>mvn:org.apache.camel.karaf/apache-camel/2.17.0/xml/features</repository>
  <feature name="example-feature" version="1.0.0" install="auto">
    <feature>camel-blueprint</feature>
  </feature>
</features>
{code}

Steps to Reproduce:

* Plop that example in the deploy directory
* Notice that the feature is loaded:
{{code}}
feature:list | grep example-feature
example-feature                         | 1.0.0            | x        | Started     | example                     |
{{code}}
* Change and update the file
* Notice that the feature stays uninstalled
{{code}}
karaf@root()> feature:list | grep example-feature
example-feature                         | 1.0.0            |          | Uninstalled | example                     |
{{code}}

  was:
If you add a `-features.xml` file to the deploy directory, and then make any changes to the file, except the name or version, then the feature will stay uninstalled.

You can manually install the feature with feature:install, but this defeats the purpose of having install="auto"

Here's a simple feature:

{code}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" name="example" >
  <repository>mvn:org.apache.camel.karaf/apache-camel/2.17.0/xml/features</repository>
  <feature name="example-feature" version="1.0.0" install="auto">
    <feature>camel-blueprint</feature>
  </feature>
</features>
{code}



> Redeploying Features in the Deploy directory with install="auto" does not work for same feature versions
> --------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-4756
>                 URL: https://issues.apache.org/jira/browse/KARAF-4756
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 4.0.6, 4.0.7
>            Reporter: Cetra Free
>
> If you add a {{-features.xml}} file to the deploy directory, and then make any changes to the file, except the name or version, then the feature will stay uninstalled.
> You can manually install the feature with feature:install, but this defeats the purpose of having install="auto"
> Here's a simple feature:
> {code}
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <features xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" name="example" >
>   <repository>mvn:org.apache.camel.karaf/apache-camel/2.17.0/xml/features</repository>
>   <feature name="example-feature" version="1.0.0" install="auto">
>     <feature>camel-blueprint</feature>
>   </feature>
> </features>
> {code}
> Steps to Reproduce:
> * Plop that example in the deploy directory
> * Notice that the feature is loaded:
> {{code}}
> feature:list | grep example-feature
> example-feature                         | 1.0.0            | x        | Started     | example                     |
> {{code}}
> * Change and update the file
> * Notice that the feature stays uninstalled
> {{code}}
> karaf@root()> feature:list | grep example-feature
> example-feature                         | 1.0.0            |          | Uninstalled | example                     |
> {{code}}



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