Java Maven站点错误:找不到org.jaxen.VariableContext的类文件
我正在努力使我的maven项目的JavaDoc。因此,我将插件添加到我的父项目中,默认情况下,所有子项目都具有相同的配置。但不幸的是,我有一个大问题。当我在项目中运行maven站点时,它会抛出以下错误: 我没有在项目中使用jaxen依赖项,因此我不理解这个错误。Java Maven站点错误:找不到org.jaxen.VariableContext的类文件,java,maven,pom.xml,Java,Maven,Pom.xml,我正在努力使我的maven项目的JavaDoc。因此,我将插件添加到我的父项目中,默认情况下,所有子项目都具有相同的配置。但不幸的是,我有一个大问题。当我在项目中运行maven站点时,它会抛出以下错误: 我没有在项目中使用jaxen依赖项,因此我不理解这个错误。 用谷歌搜索,我什么也没找到 以下是部分错误消息: [INFO] ------------------------------------------------------------------------ [IN
用谷歌搜索,我什么也没找到 以下是部分错误消息:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] empresa Corporativo Root ............................. FAILURE [1:43.624s]
[INFO] empresa Generico ..................................... SKIPPED
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:44.255s
[INFO] Finished at: Fri Sep 12 15:17:34 BRT 2014
[INFO] Final Memory: 49M/237M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "template-config-empresa" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on project empresa-corporativo-root: Error during page generation: Error rendering Maven r
eport:
[ERROR] Exit code: 1 - Errors happened while accessing the package-list file at ../apidocs/
[ERROR] Unable to access the package-list file at D:/Desenvolvimento/Repositorios/empresa-corporativo/trunk/target/javadoc-bundle-options/
[ERROR] Errors happened while accessing the package-list file at ../apidocs/
[ERROR] Unable to access the package-list file at D:/Desenvolvimento/Repositorios/empresa-corporativo/trunk/target/javadoc-bundle-options/
[ERROR] Errors happened while accessing the package-list file at ../apidocs/
[ERROR] Unable to access the package-list file at D:/Desenvolvimento/Repositorios/empresa-corporativo/trunk/target/javadoc-bundle-options/
[ERROR] javadoc: warning - Error!
[ERROR] javadoc: warning - com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.jaxen.VariableContext not found
[ERROR] com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.jaxen.VariableContext not found
[ERROR]
[ERROR] Command line was: "C:\Program Files\Java\jdk1.7.0_55\jre\..\bin\javadoc.exe" @options @packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in 'D:\Desenvolvimento\Repositorios\empresa-corporativo\trunk\target\site\testapidocs' dir.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
请在问题本身中包含错误信息。我没有投反对票。您的问题现在更好了,因为您包含了错误消息。您是否尝试添加jaxen依赖项。看起来需要jaxen为一些DOM操纵器api(dom4j)提供支持。看看这里,我已经将它作为maven dpendency添加到我的项目中,甚至手动添加,但它不起作用……我遇到了同样的问题,将jaxen添加为maven依赖项解决了我的问题