From 185f88e19bed36dd40c47169b03f761964324d68 Mon Sep 17 00:00:00 2001 From: Peter Vigier Date: Tue, 5 Mar 2019 17:49:10 +0100 Subject: [PATCH] Added `/target/generated-sources/apt` to resources for maven and m2e (#802) * Added `/target/generated-sources/apt` to resources for maven and m2e Additionally it was needed to use the `build-helper-maven-plugin`, as m2e would otherwise exclude by default all sources from the additional source folder (s. https://stackoverflow.com/a/7759911 ) Signed-off-by: Peter Vigier * Removed resource plugin configuration For adding the apt "source" folders the build-helper plugin is enough. Signed-off-by: Peter Vigier --- .../hawkbit-repository-jpa/pom.xml | 33 +++++++++++++++---- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/hawkbit-repository/hawkbit-repository-jpa/pom.xml b/hawkbit-repository/hawkbit-repository-jpa/pom.xml index ae690a44e..86e543cee 100644 --- a/hawkbit-repository/hawkbit-repository-jpa/pom.xml +++ b/hawkbit-repository/hawkbit-repository-jpa/pom.xml @@ -23,8 +23,9 @@ 3.20.0-GA 2.3.0 1.3.1 + ${project.build.directory}/generated-sources/apt/ - + @@ -61,7 +62,7 @@ cz.jirutka.rsql rsql-parser - + com.google.guava guava @@ -117,9 +118,9 @@ - javax.xml.bind - jaxb-api - ${jaxb.api.version} + javax.xml.bind + jaxb-api + ${jaxb.api.version} org.eclipse.persistence @@ -138,7 +139,27 @@ + + + + org.codehaus.mojo + build-helper-maven-plugin + + + add-source + generate-sources + + add-source + + + + ${apt.source.dir} + + + + + - +