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 <Peter.Vigier@bosch-si.com> * Removed resource plugin configuration For adding the apt "source" folders the build-helper plugin is enough. Signed-off-by: Peter Vigier <Peter.Vigier@bosch-si.com>
This commit is contained in:
committed by
Dominic Schabel
parent
e8e203b69a
commit
185f88e19b
@@ -23,6 +23,7 @@
|
||||
<javassist.version>3.20.0-GA</javassist.version>
|
||||
<jaxb.api.version>2.3.0</jaxb.api.version>
|
||||
<javax.annotation.version>1.3.1</javax.annotation.version>
|
||||
<apt.source.dir>${project.build.directory}/generated-sources/apt/</apt.source.dir>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -138,6 +139,26 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<!-- Should be placed here below 'eclipselink-maven-plugin' as the plugin should be executed -->
|
||||
<!-- after the code generation and the order of the plugins in the pom is relevant for maven -->
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>add-source</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>add-source</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<sources>
|
||||
<source>${apt.source.dir}</source>
|
||||
</sources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user