[#ftl attributes={"generated.type":"features"}]
<?xml version="1.0" encoding="UTF-8"?>
<features name="[=repoName]"
          xmlns="http://karaf.apache.org/xmlns/features/v1.6.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.6.0 http://karaf.apache.org/xmlns/features/v1.6.0">

          <feature name="[=featureName]" version="[=featureVersion]">
          [#list descriptor.getConfigComponents() as config]
          	<configfile finalname="${karaf.etc}/[=config.targetLocation]"
                    override="true">
            	mvn:[=config.mavenLocation]
        	</configfile>
          [/#list]
          [#list descriptor.getBundleComponents() as bundle]
          	<bundle start-level="[=bundle.priority]">[=bundle.fullTargetLocation]</bundle>
          [/#list]
          
          [#if revisionNumber??]
          	[#assign finalRevision=revisionNumber]
          [#else]
          	[#assign finalRevision="0"]
          [/#if]
          
          	<capability>
          		entaxy.application;name=[=descriptor.name];version=[=descriptor.version];revision=[=finalRevision]
          	</capability>
          
          </feature>

          <feature name="[=featureName]-dev" version="[=featureVersion]">
          [#list descriptor.getConfigComponents() as config]
          	<configfile finalname="${karaf.etc}/[=config.targetLocation]"
                    override="true">
            	mvn:[=config.mavenLocation]
        	</configfile>
          [/#list]
          
          </feature>
                              
</features>