Skip to content

Commit

Permalink
Remove overview.html file from source jar (#745)
Browse files Browse the repository at this point in the history
Don't declare overview.html as a project resource. Instead have a
separate copy-resources execution to copy and filter it.
  • Loading branch information
Azquelt authored Jan 30, 2024
1 parent 4c4a6ce commit e75103d
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,6 @@
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/javadoc</directory>
<filtering>true</filtering>
<includes>
<include>overview.html</include>
</includes>
<targetPath>${project.build.directory}/javadoc</targetPath>
</resource>
</resources>
<testResources>
<testResource>
Expand Down Expand Up @@ -387,6 +379,29 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>filter-overview</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>src/main/javadoc</directory>
<include>overview.html</include>
<filtering>true</filtering>
</resource>
</resources>
<outputDirectory>${project.build.directory}/javadoc</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand Down

0 comments on commit e75103d

Please sign in to comment.