Skip to content

Instantly share code, notes, and snippets.

@carrot-garden
carrot-garden / !features.md
Last active December 12, 2015 08:58
features missing in features

features missing in features

1. build feature for a bundle

example: pom-A.xml

currently there is no way build both bundle.jar and feature.xml in one step: karaf-maven-plugin is including all scopes, so resulting feature.xml is useless.

workaround: duplicate efforts and setup separate project

@carrot-garden
carrot-garden / .classpath
Created September 16, 2012 20:11
OSGI-151 / config-admin based component factory
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
@carrot-garden
carrot-garden / Comp.java
Created September 3, 2012 11:53
112.2.4 Factory Component: "The service properties of the Component Factory service must not include the component properties"
package bench.question;
public interface Comp {
}