From d9fe30081d7f3c0c4c1f0e6ed20e5dce7f03d74c Mon Sep 17 00:00:00 2001 From: Stefan Triller Date: Tue, 15 Aug 2017 16:13:06 +0200 Subject: [PATCH] Generate DS annotations in maven (#193) Signed-off-by: Stefan Triller --- poms/pom.xml | 11 +++++++++++ poms/tycho/pom.xml | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/poms/pom.xml b/poms/pom.xml index c72fdd057..dc6b6a92e 100644 --- a/poms/pom.xml +++ b/poms/pom.xml @@ -69,6 +69,7 @@ 1.0.0 org.eclipse.tycho 2.1.0 + 1.2.8 This is the open Home Automation Bus (openHAB) @@ -143,6 +144,16 @@ + + org.apache.felix + maven-scr-plugin + 1.24.0 + + + eclipse-plugin + + + diff --git a/poms/tycho/pom.xml b/poms/tycho/pom.xml index 62c926175..3e48bdb77 100644 --- a/poms/tycho/pom.xml +++ b/poms/tycho/pom.xml @@ -23,6 +23,12 @@ 3.4.0 provided + + org.apache.felix + org.apache.felix.scr.ds-annotations + ${ds-annotations.version} + true + @@ -82,6 +88,18 @@ maven-compiler-plugin + + org.apache.felix + maven-scr-plugin + + + generate-scr-scrdescriptor + + scr + + + + @@ -101,6 +119,11 @@ org.eclipse.jdt.annotation ${jdt-annotations.version} + + org.apache.felix + org.apache.felix.scr.ds-annotations + ${ds-annotations.version} + -err:+nullAnnot(org.eclipse.jdt.annotation.Nullable|org.eclipse.jdt.annotation.NonNull|org.eclipse.jdt.annotation.NonNullByDefault),+inheritNullAnnot