NutzCN Logo
问答 项目根目录执行 mvn clean install -Dmaven.test.skip=true 报错
发布于 2175天前 作者 果粉 7473 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

E:\project\nutzwk5>mvn clean install -Dmaven.test.skip=true
[ERROR] Error executing Maven.
[ERROR] 1 problem was encountered while building the effective settings
[FATAL] Non-parseable settings C:\Users\stronger.m2\settings.xml: end tag name must be the same as start tag from line 46 (position: TEXT s
een ...\n -->\n ... @293:14) @ C:\Users\stronger.m2\settings.xml, line 293, column 14

7 回复

看起来是配置文件错了。

C:\Users\stronger.m2\settings.xml

你把东西改错了

已解决。。。。
问题在这里:C:\Users\stronger.m2\settings.xml, line 293, column 14

这是什么情况?
正在加载程序包cn.wizzer.framework.base.model的源文件...
正在加载程序包cn.wizzer.framework.base的源文件...
正在加载程序包cn.wizzer.framework.base.service的源文件...
正在加载程序包cn.wizzer.framework.page.datatable的源文件...
正在加载程序包cn.wizzer.framework.page的源文件...
正在构造 Javadoc 信息...
标准 Doclet 版本 1.8.0_101
正在构建所有程序包和类的树...
正在生成E:\project\nutzwk5\wk-framework\target\apidocs\cn\wizzer\framework\base\model\BaseModel.html...
1 个错误
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] [INFO] NutzWk-NB .......................................... SUCCESS [ 8.085 s] [INFO] wk-framework ....................................... FAILURE [ 23.071 s] [INFO] wk-app ............................................. SKIPPED
[INFO] wk-model ........................................... SKIPPED
[INFO] wk-common .......................................... SKIPPED
[INFO] wk-nb-service-sys .................................. SKIPPED
[INFO] wk-nb-service-cms .................................. SKIPPED
[INFO] wk-nb-service-wx ................................... SKIPPED
[INFO] wk-nb-web-platform ................................. SKIPPED
[INFO] wk-nb-web-api ...................................... SKIPPED
[INFO] wk-nb-task ......................................... SKIPPED
[INFO] wk-nb-web-vue ...................................... SKIPPED
[INFO] wk-wiki ............................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.864 s
[INFO] Finished at: 2018-12-27T10:18:21+08:00
[INFO] Final Memory: 31M/229M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar (attach-javadocs) on project wk-framework: MavenReportException: Error while
generating Javadoc:
[ERROR] Exit code: 1 - java.lang.IllegalArgumentException
[ERROR] at sun.net.www.ParseUtil.decode(ParseUtil.java:202)
[ERROR] at sun.misc.URLClassPath$FileLoader.(URLClassPath.java:1204)
[ERROR] at sun.misc.URLClassPath$3.run(URLClassPath.java:525)
[ERROR] at sun.misc.URLClassPath$3.run(URLClassPath.java:520)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at sun.misc.URLClassPath.getLoader(URLClassPath.java:519)
[ERROR] at sun.misc.URLClassPath.getLoader(URLClassPath.java:492)
[ERROR] at sun.misc.URLClassPath.getNextLoader(URLClassPath.java:457)
[ERROR] at sun.misc.URLClassPath.access$100(URLClassPath.java:64)
[ERROR] at sun.misc.URLClassPath$1.next(URLClassPath.java:239)
[ERROR] at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:250)
[ERROR] at java.net.URLClassLoader$3$1.run(URLClassLoader.java:601)
[ERROR] at java.net.URLClassLoader$3$1.run(URLClassLoader.java:599)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader$3.next(URLClassLoader.java:598)
[ERROR] at java.net.URLClassLoader$3.hasMoreElements(URLClassLoader.java:623)
[ERROR] at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45)
[ERROR] at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54)
[ERROR] at java.util.ServiceLoader$LazyIterator.hasNextService(ServiceLoader.java:354)
[ERROR] at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:393)
[ERROR] at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:474)
[ERROR] at javax.xml.parsers.FactoryFinder$1.run(FactoryFinder.java:293)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:289)
[ERROR] at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:267)
[ERROR] at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:127)
[ERROR] at com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(LayoutParser.java:89)
[ERROR] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:120)
[ERROR] at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:189)
[ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:192)
[ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:137)
[ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:82)
[ERROR] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:80)
[ERROR] at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:310)
[ERROR] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:189)
[ERROR] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:366)
[ERROR] at com.sun.tools.javadoc.Start.begin(Start.java:219)
[ERROR] at com.sun.tools.javadoc.Start.begin(Start.java:205)
[ERROR] at com.sun.tools.javadoc.Main.execute(Main.java:64)
[ERROR] at com.sun.tools.javadoc.Main.main(Main.java:54)
[ERROR] javadoc: 错误 - java.lang.IllegalArgumentException
[ERROR] [ERROR] Command line was: D:\Java\JDK\jdk1.8.0_101\jre..\bin\javadoc.exe @options @packages
[ERROR] [ERROR] Refer to the generated Javadoc files in 'E:\project\nutzwk5\wk-framework\target\apidocs' dir.
[ERROR] [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.
[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] [ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :wk-framework

你写的javadoc不合法吧

我下载下来就直接在 项目根目录执行 mvn clean install -Dmaven.test.skip=true
最终是jdk版本的问题 我换成了jdk9 执行成功了

@qq_05da7e3c jdk8 openjdk11 都OK,并不需要9(兼容)

添加回复
请先登陆
回到顶部