栀寒_信强 2018-10-27 09:59 采纳率: 0%
浏览 1596

jpress mvn package失败,求大神指导

报错代码如下:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:codegen:jar:1.0
[WARNING] 'version' contains an expression but should be a constant. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 10, column 14
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-commons:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-core:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:jpress-core:[unknown-version], D:\Program Files\jpress\jpress-core\pom.xml, line 55, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-web:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-service-api:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-service-provider:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-model:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-template:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-article-model:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-article-web:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-article-service-api:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-article-service-provider:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-article:pom:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-page-model:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-page-web:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-page-service-api:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-page-service-provider:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-page:pom:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:starter:jar:1.0
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-remote-resources-plugin @ io.jpress:starter:[unknown-version], D:\Program Files\jpress\starter\pom.xml, line 203, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:starter:[unknown-version], D:\Program Files\jpress\starter\pom.xml, line 142, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:starter-tomcat:war:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:starter-tomcat:[unknown-version], D:\Program Files\jpress\starter-tomcat\pom.xml, line 164, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ io.jpress:starter-tomcat:[unknown-version], D:\Program Files\jpress\starter-tomcat\pom.xml, line 221, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:parent:pom:1.0
[WARNING] 'version' contains an expression but should be a constant. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 10, column 14
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] parent [pom]
[INFO] codegen [jar]
[INFO] jpress-commons [jar]
[INFO] jpress-model [jar]
[INFO] jpress-service-api [jar]
[INFO] jpress-core [jar]
[INFO] jpress-web [jar]
[INFO] jpress-service-provider [jar]
[INFO] jpress-template [jar]
[INFO] module-article [pom]
[INFO] module-article-model [jar]
[INFO] module-article-service-api [jar]
[INFO] module-article-service-provider [jar]
[INFO] module-article-web [jar]
[INFO] module-page [pom]
[INFO] module-page-model [jar]
[INFO] module-page-service-api [jar]
[INFO] module-page-service-provider [jar]
[INFO] module-page-web [jar]
[INFO] starter [jar]
[INFO] starter-tomcat [war]
[INFO]
[INFO] --------------------------< io.jpress:parent >--------------------------
[INFO] Building parent 1.0 [1/21]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] -------------------------< io.jpress:codegen >--------------------------
[INFO] Building codegen 1.0 [2/21]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ codegen ---
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 9 resources
[INFO] skip non existing resourceDirectory D:\Program Files\jpress\codegen\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ codegen ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to D:\Program Files\jpress\codegen\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] parent 1.0 ......................................... SUCCESS [ 0.228 s]
[INFO] codegen ............................................ FAILURE [ 4.318 s]
[INFO] jpress-commons ..................................... SKIPPED
[INFO] jpress-model ....................................... SKIPPED
[INFO] jpress-service-api ................................. SKIPPED
[INFO] jpress-core ........................................ SKIPPED
[INFO] jpress-web ......................................... SKIPPED
[INFO] jpress-service-provider ............................ SKIPPED
[INFO] jpress-template .................................... SKIPPED
[INFO] module-article ..................................... SKIPPED
[INFO] module-article-model ............................... SKIPPED
[INFO] module-article-service-api ......................... SKIPPED
[INFO] module-article-service-provider .................... SKIPPED
[INFO] module-article-web ................................. SKIPPED
[INFO] module-page ........................................ SKIPPED
[INFO] module-page-model .................................. SKIPPED
[INFO] module-page-service-api ............................ SKIPPED
[INFO] module-page-service-provider ....................... SKIPPED
[INFO] module-page-web .................................... SKIPPED
[INFO] starter ............................................ SKIPPED
[INFO] starter-tomcat 1.0 ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.688 s
[INFO] Finished at: 2018-10-27T17:50:59+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project codegen: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :codegen

mvn -version运行正常:
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T02:33:14+08:00)
Maven home: D:\Program Files\Apache\maven3.5.4\bin..
Java version: 1.8.0_141, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jre1.8.0_141
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

阿里云镜像配置没问题:

<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|

mirrorId
repositoryId
Human Readable Name for this Mirror.
http://my.repository.com/repo/path

-->


alimaven

aliyun maven

http://maven.aliyun.com/nexus/content/groups/public/

central


  • 写回答

1条回答

  • devmiao 2018-10-27 12:08
    关注
    评论

报告相同问题?

悬赏问题

  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题