Declaring the Service via SCR annotation
diff --git a/src/main/java/org/apache/sling/feature/inventoryservice/impl/BaseFeature2CurrentRuntimePrinter.java b/src/main/java/org/apache/sling/feature/inventoryservice/impl/BaseFeature2CurrentRuntimePrinter.java
index 90a40f4..9730e8a 100644
--- a/src/main/java/org/apache/sling/feature/inventoryservice/impl/BaseFeature2CurrentRuntimePrinter.java
+++ b/src/main/java/org/apache/sling/feature/inventoryservice/impl/BaseFeature2CurrentRuntimePrinter.java
@@ -21,12 +21,14 @@
import static org.apache.felix.inventory.InventoryPrinter.TITLE;
import static org.apache.sling.feature.diff.FeatureDiff.compareFeatures;
+import org.apache.felix.inventory.InventoryPrinter;
import org.apache.sling.feature.ArtifactId;
import org.apache.sling.feature.Feature;
import org.apache.sling.feature.diff.DefaultDiffRequest;
import org.osgi.service.component.annotations.Component;
@Component(
+ service = InventoryPrinter.class,
property = {
NAME + "=r2f_base2runtime",
TITLE + "=Apache Sling Runtime Environment to Feature Model converter - Base 2 Runtime diff Generator",
diff --git a/src/main/java/org/apache/sling/feature/inventoryservice/impl/FeaturesInventoryPrinter.java b/src/main/java/org/apache/sling/feature/inventoryservice/impl/FeaturesInventoryPrinter.java
index 76bff52..a706046 100644
--- a/src/main/java/org/apache/sling/feature/inventoryservice/impl/FeaturesInventoryPrinter.java
+++ b/src/main/java/org/apache/sling/feature/inventoryservice/impl/FeaturesInventoryPrinter.java
@@ -25,9 +25,11 @@
import java.io.BufferedReader;
import java.io.PrintWriter;
+import org.apache.felix.inventory.InventoryPrinter;
import org.osgi.service.component.annotations.Component;
@Component(
+ service = InventoryPrinter.class,
property = {
NAME + "=launch_feature",
TITLE + "=Launch Feature",
diff --git a/src/main/java/org/apache/sling/feature/inventoryservice/impl/RuntimeEnvironment2FeatureModelPrinter.java b/src/main/java/org/apache/sling/feature/inventoryservice/impl/RuntimeEnvironment2FeatureModelPrinter.java
index b86134b..ca6147b 100644
--- a/src/main/java/org/apache/sling/feature/inventoryservice/impl/RuntimeEnvironment2FeatureModelPrinter.java
+++ b/src/main/java/org/apache/sling/feature/inventoryservice/impl/RuntimeEnvironment2FeatureModelPrinter.java
@@ -20,10 +20,12 @@
import static org.apache.felix.inventory.InventoryPrinter.NAME;
import static org.apache.felix.inventory.InventoryPrinter.TITLE;
+import org.apache.felix.inventory.InventoryPrinter;
import org.apache.sling.feature.Feature;
import org.osgi.service.component.annotations.Component;
@Component(
+ service = InventoryPrinter.class,
property = {
NAME + "=r2f_runtime",
TITLE + "=Apache Sling Runtime Environment to Feature Model converter - Runtime Generator",