Skip to content

Commit

Permalink
Add a profile to generate and attach javadoc artifacts
Browse files Browse the repository at this point in the history
When deploying artifacts to maven it is common to provide also javadoc
artifacts. This adds a profile that could be used in sub-projects to
accomplish this.
  • Loading branch information
laeubi authored and akurtakov committed Oct 7, 2022
1 parent be74207 commit b949532
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions eclipse-platform-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,50 @@
<surefire.moduleProperties>--add-modules=ALL-SYSTEM</surefire.moduleProperties>
</properties>
</profile>
<profile>
<id>javadoc</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<!-- Must use older version see https://issues.apache.org/jira/projects/MJAVADOC/issues/MJAVADOC-707 -->
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<source>${java.version}</source>
<failOnError>false</failOnError>
<!-- These are provided by PDE/Tycho by default but javadoc do not know that ... -->
<additionalDependencies>
<additionalDependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.annotation.bundle</artifactId>
<version>2.0.0</version>
</additionalDependency>
<additionalDependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.annotation.versioning</artifactId>
<version>1.1.2</version>
</additionalDependency>
<additionalDependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.component.annotations</artifactId>
<version>1.5.0</version>
</additionalDependency>
</additionalDependencies>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<scm>
<connection>scm:git:https://github.com/eclipse-platform/eclipse.platform.releng.aggregator.git</connection>
Expand Down

0 comments on commit b949532

Please sign in to comment.