Skip to content

Commit

Permalink
move maven-javadoc-plugin and maven-source-plugin to release profile
Browse files Browse the repository at this point in the history
They are usually not needed for local development.
  • Loading branch information
Locke committed Jan 10, 2022
1 parent bd9aa43 commit cbdbbe6
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -292,25 +292,18 @@
<artifactId>flatten-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>

</plugins>
</build>

<profiles>
<profile>
<!-- This release profile can be activated automatically via the maven-release-plugin or manually with `-P release` -->

<id>release</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>

<!-- requires the following entries in your maven setting.xml:
* ossrh account with access to https://issues.sonatype.org/browse/OSSRH-11541 (CoreASM at osshr)
* gpg2 / pgp signing information for ossrh maven central repository (default key of the system is used)
Expand Down Expand Up @@ -338,6 +331,21 @@
<build>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
Expand All @@ -364,11 +372,6 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>

</plugins>
</build>
</profile>
Expand Down

0 comments on commit cbdbbe6

Please sign in to comment.