Skip to content

Commit

Permalink
#288 add maven profile to attach sources and javadocs
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch.io>
  • Loading branch information
dguggemos committed Feb 4, 2021
1 parent 200de4e commit 5bac734
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,58 @@
</build>
</profile>

<profile>
<id>attachSources</id>
<activation>
<property>
<name>attachSources</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>attachJavadocs</id>
<activation>
<property>
<name>attachJavadocs</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>signArtifactsEclipse</id>
<activation>
Expand Down

0 comments on commit 5bac734

Please sign in to comment.