summaryrefslogtreecommitdiffstats
path: root/parent/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'parent/pom.xml')
-rw-r--r--parent/pom.xml30
1 files changed, 27 insertions, 3 deletions
diff --git a/parent/pom.xml b/parent/pom.xml
index ca61f6707e7..dd13971968d 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -315,11 +315,35 @@
</build>
</profile>
<profile>
+ <id>custom-javadoc</id>
+ <activation>
+ <file><exists>src/main/javadoc</exists></file>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ <configuration>
+ <classifier>javadoc</classifier>
+ <classesDirectory>${project.basedir}/src/main/javadoc</classesDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
<id>generate-javadoc</id>
<activation>
- <property>
- <name>!skipJavadoc</name>
- </property>
+ <file><missing>src/main/javadoc</missing></file>
</activation>
<build>
<plugins>