Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
doxygen maven插件没有';不要使用我自己的doxygen配置文件_Maven_Pom.xml_Doxygen_Maven Plugin - Fatal编程技术网

doxygen maven插件没有';不要使用我自己的doxygen配置文件

doxygen maven插件没有';不要使用我自己的doxygen配置文件,maven,pom.xml,doxygen,maven-plugin,Maven,Pom.xml,Doxygen,Maven Plugin,我尝试将的doxygen maven插件与我自己的doxygen配置文件一起使用。但是插件只是不断生成一个默认的doxygen配置,并使用它来调用doxygen。你们中有人成功使用过这个doxygen maven插件吗?你能告诉我怎么解决这个问题吗 这是我的pom: <?xml version="1.0"?> <project> <modelVersion>4.0.0</modelVersion> <groupId

我尝试将的doxygen maven插件与我自己的doxygen配置文件一起使用。但是插件只是不断生成一个默认的doxygen配置,并使用它来调用doxygen。你们中有人成功使用过这个doxygen maven插件吗?你能告诉我怎么解决这个问题吗

这是我的pom:

<?xml version="1.0"?>
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.mycompany.test</groupId>
  <artifactId>doxygen_tst</artifactId>
  <version>1.0</version>
  <packaging>nar</packaging>

  <properties>
    <doxygen.configurationFile>Doxyfile</doxygen.configurationFile>
  </properties>

  <build>
    <pluginManagement>
      <plugins>
        <plugin> ... </plugin> <!-- nar plugin -->

        <plugin>
          <groupId>com.soebes.maven.plugins</groupId>
          <artifactId>doxygen-maven-plugin</artifactId>
          <version>1.1.0</version>
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
       <plugin> ... </plugin> <!-- nar plugin -->

       <plugin>
        <groupId>com.soebes.maven.plugins</groupId>
        <artifactId>doxygen-maven-plugin</artifactId>
        <version>1.1.0</version>
      </plugin>
    </plugins>
  </build>

  <reporting>
    <plugins>
      <plugin>
        <groupId>com.soebes.maven.plugins</groupId>
        <artifactId>doxygen-maven-plugin</artifactId>
        <version>1.1.0</version>
      </plugin>
    </plugins>
  </reporting>
</project>

4.0.0
com.mycompany.test
强氧剂
1
纳尔
Doxyfile
...  
com.soebes.maven.plugins
doxygenmaven插件
1.1.0
...  
com.soebes.maven.plugins
doxygenmaven插件
1.1.0
com.soebes.maven.plugins
doxygenmaven插件
1.1.0
doxygen配置文件Doxyfile位于pom文件的旁边。 我试着用目标“site”和目标“doxygen:report”运行。尽管这两个选项都会生成doxygen输出文件,但这两个选项都不使用我自己的doxygen文件。 我还尝试设置属性${doxygen.projectName},这是可行的。我在生成的index.html上看到所选的项目名称

欢迎提出任何建议。
提前非常感谢。

我在属性中添加了“${project.basedir}/”,现在它可以工作了。因此,整个属性现在是:${project.basedir}/DoxyfileWhy不归档?除此之外,如果您已经在pluginManagement中定义了插件版本,您可以在通常的构建区域以及报告区域中忽略它(Maven 3.0.5除外),您将得到一个警告。如果我确信我正确配置了它,那么您在提交问题时是正确的。因为它现在起作用了,我想我在某个时候犯了一个错误。我会再调查一遍。谢谢你在版本标签上的评论。我在属性中添加了“${project.basedir}/”,现在它可以工作了。因此,整个属性现在是:${project.basedir}/DoxyfileWhy不归档?除此之外,如果您已经在pluginManagement中定义了插件版本,您可以在通常的构建区域以及报告区域中忽略它(Maven 3.0.5除外),您将得到一个警告。如果我确信我正确配置了它,那么您在提交问题时是正确的。因为它现在起作用了,我想我在某个时候犯了一个错误。我会再调查一遍。谢谢你在版本标签上的评论。