eclipse 运行Maven时报错总结
来源:互联网 发布:网络高清电视在线直播 编辑:程序博客网 时间:2024/05/17 04:28
Non-resolvable parent POM
复制代码
[INFO] Scanning for projects…
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.iflytek.ossp:ossp-resserver-service:1.0.0-SNAPSHOT (C:\Users\moon\Desktop\ossp-resservice-maven\ossp-resserver-service\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact com.iflytek.ossp:ossp-resserver-all:pom:1.0.0-SNAPSHOT and ‘parent.relativePath’ points at wrong local POM @ line 11, column 10 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
复制代码
无法解析父级的POM文件,应该是是POM文件中使用了继承。
com.iflytek.ossp
ossp-resserver-all
1.0.0-SNAPSHOT
可以尝试加入
com.iflytek.ossp
ossp-resserver-all
1.0.0-SNAPSHOT
../ossp-resserver-all/pom.xml
Unable to locate the Javac Compiler in
复制代码
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project ossp-resserver-service: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Java\jre6..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[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
复制代码
出现类似的错误应该是Jre配置问题:
右击项目->Java Buid Path->Libraries->JRE->Edit->Install JREs…->Edit->JRE system libraries->Add External JREs..->找到缺少的jar(toos.jar)添加进去。
No goals have been specified for this build.
Maven Buid时出现下面这个错误:
复制代码
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/NoGoalSpecifiedException
复制代码
是因为没有指定buid goal,在POM文件中的buid节中加入默认值就行了。
compile
将第三方jar包发布到私服
1、首先要修改eclipse中的Maven配置。
不要使用内嵌的默认配置。
指向Maven的安装目录。
2、配置Maven的setting.xml
复制代码
- eclipse 运行Maven时报错总结
- eclipse 运行Maven时报错总结
- eclipse运行maven项目时报错
- eclipse运行项目时报错
- eclipse开发时报错总结
- maven web项目创建运行时报错
- 关于使用eclipse maven UpdateProject时报错
- Eclipse创建Maven项目时报错记录
- 运行maven项目时报ProjectBuildingException
- maven eclipse 运行报错
- 运行maven工程时报错:公共的properties变量找不到
- windows安装maven,eclipse配置maven,运行spark程序总结
- Eclipse开发基于maven的android项目时报错
- Eclipse向SVN提交maven项目时报错
- 在eclipse运行maven命令时报在jre里找不到jar包
- eclipse中项目运行时报错之 Compilation error解决方法
- Android studio 导入eclipse项目 运行时报错
- Eclipse不能创建Maven webapp项目/Eclipse创建Maven工程的webapp项目时报错
- std::vector的简单实验
- HBase新版本与MapReduce集成
- 键约束和唯一性约束的区别
- redis学习之redis的安装,类库及demo
- Android的布局文件的文件名不能包含任何大写字母
- eclipse 运行Maven时报错总结
- 从头开始,学习Java Web
- kali arp欺骗嗅探局域网中所有数据包
- Java并发编程:Callable、Future和FutureTask
- Log4j分层次记录到MySQL数据库和HTML等文件
- JDBC的介绍
- 前端面试问题大全
- 雷达扫描之自定义view,打造最简单的自定义View
- nyoj 881 小M的区间公约数