Maven Javadoc插件没有找到自定义标记

时间:2016-05-04 12:11:29

标签: java maven maven-javadoc-plugin taglet

我创建了一些自定义的JavaDoc Taglet,如下所述:

http://docs.oracle.com/javase/7/docs/technotes/guides/javadoc/taglet/overview.html

当我手动指定Taglets类时,它们与Maven Javadoc插件一起正常工作:

      <taglets>
        <taglet>
          <tagletClass>package.to.YourFirstTagletClass</tagletClass>
        </taglet>

        <taglet>
          <tagletClass>package.to.YourSecondTagletClass</tagletClass>
        </taglet>
        ...
      </taglets>

      <tagletArtifact>
        <groupId>group-Taglet</groupId>
        <artifactId>artifact-Taglet</artifactId>
        <version>version-Taglet</version>
      </tagletArtifact>

如此处所述:http://maven.apache.org/plugins/maven-javadoc-plugin/examples/taglet-configuration.html

但如果我有插件自动检测我的Taglet,如上面链接末尾所述,即:

      <tagletArtifacts>
        <tagletArtifact>
          <groupId>group-FirstTaglet</groupId>
          <artifactId>artifact-FirstTaglet</artifactId>
          <version>version-FirstTaglet</version>
        </tagletArtifact>
      </tagletArtifacts>

然后,在构建时,我收到以下错误:

[WARNING] Unable to auto-detect Taglet class names from '/path/to/jar.jar'. Try to specify them with <taglets/>.

有人建议检查什么?

谢谢!

0 个答案:

没有答案