Code Monkey home page Code Monkey logo

Comments (4)

ysc avatar ysc commented on June 9, 2024

看看你的Java home: D:\idea\Java\jdkV7\jdk1.7.0_45\jre
你多了一个jre

------------------ 原始邮件 ------------------
发件人: "taolive";
发送时间: 2014年3月4日(星期二) 晚上10:34
收件人: "ysc/APDPlat";
主题: [APDPlat] APDPlat Install错误 (#53)

开发环境:
Maven home: E:\个人记录\open_source\maven\apache-maven-3.2.1\bin..
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: D:\idea\Java\jdkV7\jdk1.7.0_45\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

在命令行先mvn clean、mvn compile、mvn install
前面2步都操作成功,执行mvn install时,提示以下问题:

[INFO] APDPlat_Core ...................................... FAILURE [ 26.460 s]
[INFO] APDPlat_Module .................................... SKIPPED
[INFO] APDPlat_Web ....................................... SKIPPED
[INFO] APDPlat ........................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.797 s
[INFO] Finished at: 2014-03-04T22:22:53+08:00
[INFO] Final Memory: 56M/134M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
14:test (default-test) on project APDPlat_Core: Execution default-test of goal o
rg.apache.maven.plugins:maven-surefire-plugin:2.14:test failed: Unable to load t
he mojo 'test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin:2.1
4'. A required class is missing: org/apache/maven/plugin/surefire/SurefireReport
Parameters
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-surefire-plugin:2.14
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/D:/idea/maven/repository/org/apache/maven/plugins/maven-
surefire-plugin/2.14/maven-surefire-plugin-2.14.jar

注:都是使用命令行敲命令运行,不是依赖具体的IDEA编程工具


Reply to this email directly or view it on GitHub.

from apdplat.

taolive avatar taolive commented on June 9, 2024

使用mvn -v ,输出的java_home 确实多了个jre
但是使用set命令,看输出的java_home是正常的

在maven配置,没看到可以给它设置java_home的地方呀
帮忙指教下,谢谢!
------------------ 原始邮件 ------------------
发件人: "杨尚川";[email protected];
发送时间: 2014年3月5日(星期三) 中午11:02
收件人: "ysc/APDPlat"[email protected];
抄送: "拖拉机闯高速"[email protected];
主题: Re: [APDPlat] APDPlat Install错误 (#53)

Closed #53.


Reply to this email directly or view it on GitHub.

from apdplat.

ysc avatar ysc commented on June 9, 2024

给你参考一下我的输出,我是64位win7和jdk:
C:\Windows\System32>mvn -v
Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800)
Maven home: C:\apache-maven-3.0.4\bin..
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_51\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

from apdplat.

taolive avatar taolive commented on June 9, 2024

你的也是mvn -v 输出的JAVA_home 也是多了个jre,应该和这个无关才对,
哪应该是什么原因导致 mvn install 无法正常通过呢?

------------------ 原始邮件 ------------------
发件人: "杨尚川";[email protected];
发送时间: 2014年3月5日(星期三) 中午11:35
收件人: "ysc/APDPlat"[email protected];
抄送: "拖拉机闯高速"[email protected];
主题: Re: [APDPlat] APDPlat Install错误 (#53)

给你参考一下我的输出,我是64位win7和jdk:
C:\Windows\System32>mvn -v
Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800)
Maven home: C:\apache-maven-3.0.4\bin..
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_51\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"


Reply to this email directly or view it on GitHub.

from apdplat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.