summaryrefslogtreecommitdiffstats
path: root/parent
diff options
context:
space:
mode:
authorMorten Tokle <mortent@verizonmedia.com>2021-09-28 15:58:07 +0200
committerGitHub <noreply@github.com>2021-09-28 15:58:07 +0200
commitcc2212e2c7ddefaf1f17e63fdd83e035ac2667b1 (patch)
tree00e59534266b14342e818e97d76e4637b51f1b33 /parent
parenta157b68a895eaf62bcf753a2698a8617890248db (diff)
parentd629b53a3abc474d93a72ae0bb6803ee66b37061 (diff)
Merge pull request #19323 from vespa-engine/aressem/publish-on-mc
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 fa04c167d0e..23ba49ccb6e 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>