
maven
柳鲲鹏
建立了编程学(编程基本功、平台化编程)、六石管理学等几个流派。
每涉及一个领域,都是顶级砖家。在这些领域中,如果遇到问题,最后肯定是搜索到本博客。
展开
-
全网首发:gpg: gpg-agent 在此次会话中无法使用的解决办法
mvn编译时出现的,具体错误:您需要输入密码,才能解开这个用户的私钥:“liu kunpeng (Taishan Office) <quantum6@yeah.net>”2048 位的 RSA 密钥,钥匙号 74C30931,建立于 2021-10-18请输入密码:gpg: gpg-agent 在此次会话中无法使用反复试了多次都不行。可能是吾KEY刚刚产生的原因?于是重启,再试,果然正常了:...原创 2021-10-18 15:44:17 · 1305 阅读 · 2 评论 -
gpg: no default secret key: 私钥不可用
具体错误:gpg: 已创建目录‘/home/tsit/.gnupg’gpg: 新的配置文件‘/home/tsit/.gnupg/gpg.conf’已建立gpg: 警告:在‘/home/tsit/.gnupg/gpg.conf’里的选项于此次运行期间未被使用gpg: 钥匙环‘/home/tsit/.gnupg/secring.gpg’已建立gpg: 钥匙环‘/home/tsit/.gnupg/pubring.gpg’已建立gpg: no default secret key: 私钥不可用gpg原创 2021-10-18 15:21:11 · 4167 阅读 · 0 评论 -
有效解决办法:marven:Fatal error compiling: 无效的目标发行版: 11
具体错误:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile (default-testCompile) on project teavm-tests: Fatal error compiling: 无效的目标发行版: 11 -> [Help 1][ERROR] [ERROR] To see the full stack trace of the err原创 2021-05-28 16:10:56 · 1416 阅读 · 0 评论 -
marven编译时:<pre>错误: 不允许使用自关闭元素</pre>
解决办法:https://blog.csdn.net/quantum7/article/details/114007031原创 2021-05-28 15:24:30 · 830 阅读 · 0 评论 -
maven只是经手,不是触发:org.apache.maven.lifecycle.LifecycleExecutionException
操作:代码本来是能编译通过的。后来吾试图加入公司整套代码时,编译出错。从报错流程来看,是TeaVM的问题,maven只是经手而已。注意其中的:Caused by: org.apache.maven.plugin.MojoExecutionException: Unexpected error occurred具体错误是:[ERROR] Failed to execute goal org.teavm:teavm-maven-plugin:0.7.0-SNAPSHOT:compile原创 2021-03-08 13:24:38 · 1406 阅读 · 2 评论 -
-source 1.6 中不支持 lambda 表达式 [ERROR] (请使用 -source 8 或更高版本以启用 lambda 表达式)
类似错误有: -source 1.6 中不支持 diamond 运算符[ERROR] (请使用 -source 7 或更高版本以启用 diamond 运算符)-source 1.6 中不支持方法引用[ERROR] (请使用 -source 8 或更高版本以启用方法引用) -source 1.6 中不支持 lambda 表达式[ERROR] (请使用 -source 8 或更高版本以启用 lambda 表达式)-source 1.6 中不支持转换中的交叉类型[ERROR]原创 2021-03-01 13:24:32 · 1963 阅读 · 0 评论 -
maven teavm-idea-artifacts: Command execution failed.: Process exited with an error: 1 Exit value: 1
具体错误:[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (copy-dependencies) on project teavm-idea-artifacts: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]具体来说,就是一个teavm-idea-artif原创 2021-02-27 12:58:29 · 3249 阅读 · 0 评论 -
maven打包,java内存竟然要设置16G(-Xmx16384m)
设置小了,一直报内存不够:https://quantum6.blog.csdn.net/article/details/114068114 于是一怒之下,设置为16G,终于可以顺利编译了。怎么设置?参考上文。原创 2021-02-26 08:39:53 · 1502 阅读 · 0 评论 -
maven内存不足:Unexpected error occurred: Not enough memory to allocate buffers for rehashing Java heap
具体错误:[ERROR] Failed to execute goal org.teavm:teavm-maven-plugin:0.6.0-SNAPSHOT:compile (wasm-client) on project teavm-samples-benchmark: Unexpected error occurred: Not enough memory to allocate buffers for rehashing: 0 -> 8,192: Java heap space ->原创 2021-02-25 15:10:41 · 2604 阅读 · 0 评论 -
未解决:maven:Fatal error compiling: 无效的标记: -arg
具体错误:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project teavm-samples-benchmark: Fatal error compiling: 无效的标记: -arg -> [Help 1]原创 2021-02-25 14:58:53 · 1038 阅读 · 4 评论 -
maven打包时加入依赖jar包
具体来说:<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> <compilerArguments原创 2021-02-25 14:43:22 · 824 阅读 · 0 评论 -
maven pom.xml中设置java编译参数
比如,编译东西太多,指定大内存:<plugin> <groupId>org.apache.maven.plugins</groupId>原创 2021-02-25 14:38:04 · 2065 阅读 · 0 评论 -
Child module pom.xml of pom.xml does not exist @
具体错误:[ERROR] The build could not read 1 project -> [Help 1]org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:[ERROR] Child module /home/uos/TeaVM/samples/benchmark/pom.xml of /home/uos/TeaVM原创 2021-02-24 10:51:03 · 2583 阅读 · 0 评论 -
mvn 错误: @param 未找到
代码是没问题的,处理的是注释(所以吾向来主张没事不要写这些应付的注释)。怎么办?加个参数:办法一(无效):mvn \ -Xdoclint:none会报错。办法二(有效):搜索pom.xml中的maven-javadoc-plugin,改成如下样子: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>mav原创 2021-02-24 08:27:41 · 1640 阅读 · 0 评论 -
No plugin found for prefix ‘doclint‘ in the current project
具体错误:[ERROR] No plugin found for prefix 'doclint' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/uos/.m2/repository), central (https://repo.maven.apache.org/mav原创 2021-02-24 08:22:42 · 1172 阅读 · 0 评论 -
全网首发:org.xml.sax.SAXNotRecognizedException: unrecognized features nonvalidating/load-external-dtd
具体错误:[INFO] Loading inherited module 'org.teavm.samples.benchmark.benchmark'[INFO] [ERROR] Failure while parsing XML[INFO] org.xml.sax.SAXNotRecognizedException: unrecognized feature http://apache.org/xml/features/nonvalidating/load-external-dtd[I原创 2021-02-22 15:12:44 · 2984 阅读 · 2 评论 -
maven指定JDK
指定环境变量就可以了:JAVA_HOME=${HOME}/tsjdk8-uos-64JRE_HOME=$JAVA_HOME/jrePATH=$PATH:${JAVA_HOME}/bin:${JRE_HOME}/binCLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/libexport JAVA_HOME JRE_HOME PATH CLASSPATH原创 2021-02-22 14:46:09 · 1047 阅读 · 1 评论 -
无法访问com.sun.xml.internal.stream.XMLBufferListener
使用marven时,一直报这个错误。[ERROR] /home/tsit/TeaVM/samples/benchmark/src/main/java/org/html/HTMLScanner.java:[2695,56] 无法访问com.sun.xml.internal.stream.XMLBufferListener[ERROR] 找不到com.sun.xml.internal.stream.XMLBufferListener的类文件有点奇怪,怎么缺少这个包?下载之:https://原创 2021-02-22 10:42:53 · 597 阅读 · 0 评论 -
mvn执行编译时使用lib下的jar包
办法问题有的。复制把lib目录复制到src/main/webapp/WEB-INF下或者把jar复制到src/main/webapp/WEB-INF/lib下编辑web.xml原创 2021-02-22 09:09:00 · 482 阅读 · 0 评论 -
mvn Failed during checkstyle execution: There are errors reported by Checkstyle 6.2
具体错误:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check (validate) on project teavm-samples-benchmark: Failed during checkstyle execution: There are 716134 errors reported by Checkstyle 6.2 with ../../checkstyle.x原创 2021-02-20 16:47:29 · 2631 阅读 · 0 评论 -
No compiler is provided in this environment. Perhaps you are running on a JRE
错误如下[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project teavm-metaprogramming-api: Compilation failure[ERROR] No compiler is provided in this environment. Perhaps you are running on a原创 2021-02-19 13:36:03 · 2879 阅读 · 1 评论 -
LINUX下载maven/mvn
下载https://maven.apache.org/download.cgi原创 2021-02-19 11:58:01 · 389 阅读 · 0 评论