<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven_javadoc_version}</version>
<configuration>
<aggregate>true</aggregate>
<tags>
<tag>
<name>checkstyle</name>
<placement>a</placement>
<head>略过checkstyle规则</head>
</tag>
</tags>
</configuration>
<executions>
<execution>
<id>attach-javadoc</id>
<goals>
<goal>jar</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
</plugin>
tag
属性 | 说明 |
---|
name | 标签名 |
placement | 标签适用的位置 |
head | 前置提示 |
placement
取值 | 说明 |
---|
X | disable tag |
a | all |
o | overview |
p | packages |
t | types, that is classes and interfaces |
c | constructors |
m | methods |
f | fields |