summaryrefslogtreecommitdiffstats
path: root/parent
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@verizonmedia.com>2021-09-28 13:52:18 +0200
committerArnstein Ressem <aressem@verizonmedia.com>2021-09-28 13:52:18 +0200
commitd629b53a3abc474d93a72ae0bb6803ee66b37061 (patch)
treeb655c19a53f5d53230b1338dd1121da988c037db /parent
parent05f118fcca1dad818960248a4fe24c76f33f4bbb (diff)
Make it possible to deploy on Maven Central with maven.
Diffstat (limited to 'parent')
-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>