Skip to content

Commit

Permalink
Skip javadoc in starter and create empty -javadoc jar instead
Browse files Browse the repository at this point in the history
  • Loading branch information
neiser committed May 5, 2021
1 parent 48a3a64 commit 24dfa13
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 37 deletions.
2 changes: 2 additions & 0 deletions openapi-generator-for-spring-starter/javadoc/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module is a Spring Boot starter, it just depends on useful
modules so that a user needs only the starter to get started.
52 changes: 40 additions & 12 deletions openapi-generator-for-spring-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,44 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<!-- See https://issues.apache.org/jira/browse/MJAVADOC-274 -->
<failOnError>false</failOnError>
<quiet>true</quiet>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>deploy</id>
<activation>
<property>
<name>deploy</name>
</property>
</activation>
<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>
<build>
<plugins>
<plugin>
<!--
As SonaType requires a -javadoc.jar to be present for deployment,
we fake an empty one here.
See: https://vzurczak.wordpress.com/2014/08/01/generate-an-empty-javadoc-jar-file/
-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>empty-javadoc-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
<classesDirectory>${basedir}/javadoc</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

This file was deleted.

0 comments on commit 24dfa13

Please sign in to comment.