Skip to content

Commit

Permalink
build section notes
Browse files Browse the repository at this point in the history
  • Loading branch information
nirmalchandra committed Mar 24, 2024
1 parent 2c03198 commit dd87d9b
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,89 @@
</dependencies>
</dependencyManagement>

<!--
- Commented to avoid javadoc error during maven release to Nexus central.
- Uncomment this only when needed or if any other module dependent on this section
- Check, if the CI build is fine, no need to uncomment this section.
-
- How to check or reproduce this javadoc error?
- From your local laptop
- Option-1 : Run a maven "dry run" <- Results in error e.g. javadoc error due to JAVA_HOME not set
- Option-2 : Run a maven "prepare" run <- Results in error e.g. javadoc error due to JAVA_HOME not set
-
- Note: Remove the build section completely and try, if "commenting out" has issues
-->
<!--
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${java-compiler-source.version}</source>
<target>${java-compiler-target.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
// Uncomment this for uber jar
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
-->
</project>

0 comments on commit dd87d9b

Please sign in to comment.