Hi

The standard feature doesn't exist anymore in Karaf 4.

You have to specify each atomic feature (shell, aries-blueprint, etc).

We already discussed about this with a couple of users on IRC. I'm planning to add some "meta-feature" (minimal, standard, net, etc) to simplify the way to create your custom distro.

Regards
JB

On 10/05/2015 03:01 PM, xlogger wrote:
I tried to made a custom distribution of Karaf 4.0.1 using maven plugin, and
included the following list as boot feature (${karaf.plugin.version} =
4.0.1):

<plugin>
                 <groupId>org.apache.karaf.tooling</groupId>
                 <artifactId>karaf-maven-plugin</artifactId>
                 <version>${karaf.plugin.version}</version>
                 <extensions>true</extensions>
                 <configuration>
                     <ignoreDependencyFlag>true</ignoreDependencyFlag>
                     <bootFeatures>
                         <feature>standard</feature>
                         <feature>config</feature>
                         <feature>package</feature>
                         <feature>kar</feature>
                         <feature>ssh</feature>
                         <feature>management</feature>
                         <feature>region</feature>
                         <feature>camel</feature>
                     </bootFeatures>
...
</plugin>

However, I got the following error during "mvn clean install"

[ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:4.0.1:assembly
(default-assembly) on project offline-karaf: Unable to build assembly: Could
not find matching feature for standard -> [Help 1]

If I update karaf.plugin.version to 3.0.4, the build can be completed
successfully without error

I tried to access
https://repo1.maven.org/maven2/org/apache/karaf/features/standard/4.0.1/standard-4.0.1-features.xml
and was able to find the 4.0.1 standard feature xml. Tried to compare it
with the 3.0.4 version
https://repo1.maven.org/maven2/org/apache/karaf/features/standard/3.0.4/standard-3.0.4-features.xml
and did see some differences in both versions of XMLs (e.g. there is an
dedicated element with feature name="standard" in 3.0.4 version but not
found in 4.0.1 version XML).

May I know how could I reference the "standard" feature in 4.0.1 with
similar method as in 3.0.4 version?








--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-4-0-1-Standard-feature-as-boot-feature-for-custom-distribution-tp4042884.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to