Add Maven profile to skip Javadoc generation for local builds (#1878)
* #1877 Add Maven profile to skip Javadoc generation for local builds * Make it nicer
This commit is contained in:
parent
7bede2528f
commit
ae68667f5e
26
pom.xml
26
pom.xml
@ -105,6 +105,21 @@
|
|||||||
<project.skipExtendedHashTests>true</project.skipExtendedHashTests>
|
<project.skipExtendedHashTests>true</project.skipExtendedHashTests>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
<!-- Skip javadoc generation for faster local build -->
|
||||||
|
<profile>
|
||||||
|
<id>skipJavadocGeneration</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@ -131,6 +146,16 @@
|
|||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>3.1.1</version>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- Enforce build environment -->
|
<!-- Enforce build environment -->
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -222,7 +247,6 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
<version>3.1.1</version>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<finalName>${project.finalNameBase}</finalName>
|
<finalName>${project.finalNameBase}</finalName>
|
||||||
<!-- In sync with the source/target properties of the maven-compiler-plugin -->
|
<!-- In sync with the source/target properties of the maven-compiler-plugin -->
|
||||||
|
|||||||
@ -1,6 +0,0 @@
|
|||||||
: Analyze the project with Sonar (requires you install SonarQube)
|
|
||||||
if "%jarfile%" == "" (
|
|
||||||
call setvars.bat
|
|
||||||
)
|
|
||||||
|
|
||||||
mvn clean verify sonar:sonar -f "%pomfile%"
|
|
||||||
@ -3,4 +3,4 @@ if "%jarfile%" == "" (
|
|||||||
call setvars.bat
|
call setvars.bat
|
||||||
)
|
)
|
||||||
|
|
||||||
mvn install -o -f "%pomfile%" -Dmaven.test.skip
|
mvn install -o -f "%pomfile%" -Dmaven.test.skip -PskipJavadocGeneration
|
||||||
|
|||||||
@ -1,11 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# Usage: ./analyze_project.sh
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ -z $jarfile ];
|
|
||||||
then
|
|
||||||
./setvars.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
mvn clean verify sonar:sonar -f $pomfile
|
|
||||||
@ -8,4 +8,4 @@ if [ -z $jarfile ];
|
|||||||
./setvars.sh
|
./setvars.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mvn install -f $pomfile -Dmaven.test.skip
|
mvn install -f $pomfile -Dmaven.test.skip -PskipJavadocGeneration
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user