Move all doc checks into the profile "generate-rule-docs"

This commit is contained in:
Andreas Dangel 2019-09-20 15:15:53 +02:00 committed by Andreas Dangel
parent 4ee8e65417
commit c134f23d7c
2 changed files with 27 additions and 39 deletions

View File

@ -17,7 +17,7 @@ fi
# First step: build pmd with profile "generate-rule-docs"
# The docs should appear under "docs/pages/rules/..." for each language
#
./mvnw clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -P generate-rule-docs
./mvnw clean verify -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -P generate-rule-docs

View File

@ -41,6 +41,32 @@
</arguments>
</configuration>
</execution>
<execution>
<id>check-dead-links</id>
<goals>
<goal>java</goal>
</goals>
<phase>verify</phase>
<configuration>
<mainClass>net.sourceforge.pmd.docs.DeadLinksChecker</mainClass>
<arguments>
<argument>${project.basedir}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>check-rule-tags</id>
<goals>
<goal>java</goal>
</goals>
<phase>verify</phase>
<configuration>
<mainClass>net.sourceforge.pmd.docs.RuleTagChecker</mainClass>
<arguments>
<argument>${project.basedir}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
@ -48,44 +74,6 @@
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>check-dead-links</id>
<goals>
<goal>java</goal>
</goals>
<phase>verify</phase>
<configuration>
<mainClass>net.sourceforge.pmd.docs.DeadLinksChecker</mainClass>
<arguments>
<argument>${project.basedir}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>check-rule-tags</id>
<goals>
<goal>java</goal>
</goals>
<phase>verify</phase>
<configuration>
<mainClass>net.sourceforge.pmd.docs.RuleTagChecker</mainClass>
<arguments>
<argument>${project.basedir}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>net.sourceforge.pmd</groupId>