Fix pom.xml so generated package-info.java files are added to build

This was done automatically by Eclipse but didn't happen with
stand-alone Maven building.
This commit is contained in:
catbref
2018-12-13 17:52:34 +00:00
parent 3ec3c69447
commit e6acc92ed0
2 changed files with 32 additions and 2 deletions

25
pom.xml
View File

@@ -137,6 +137,25 @@
</execution>
</executions>
</plugin>
<!-- Include generated package-info.java sources in build -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/package-info</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
@@ -205,6 +224,12 @@
</repository>
</repositories>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.codehaus.mojo/build-helper-maven-plugin -->
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.github.bohnman/package-info-maven-plugin -->
<dependency>
<groupId>com.github.bohnman</groupId>