通过maven打nar报错问题

通过maven打nar包报错问题记录

 进入项目目录,输入mvn clean install

报错信息如下:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:testCompile (default-testCompile) on project nifi-demo-processors: Compilation failure -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :nifi-demo-processors

 因为之前一直是可以打包且没有报错的,换了一台电脑,打包就发生了错误。误以为是JAVA_HOME没有配置对,倒腾了很久,差点重装jdk。后来经过多番百度,发现是插件没有下载成功。使用命令mvn clean install -Dmaven.test.skip=true 跳过test步骤,运行成功。也可以直接将插件的jar包放到maven的本地资源库中。

发布了26 篇原创文章 · 获赞 1 · 访问量 6967

猜你喜欢

转载自blog.csdn.net/qq_39800434/article/details/86621314