星空网 > 软件开发 > Java

maven 错误列表

1.编译错误

qcadoo-maven-plugin>mvn clean install

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

原因:JAVA_HOME配置错了,错配成了jre主目录,而应该配置成jdk主目录

解决:我的电脑--属性--高级系统设置--环境变量--系统变量—JAVA_HOME 的值填写 “jdk主目录”

 

 

2.缺少jar

问题定位的方法: ERROR的第一行或者第二行

[ERROR] can't determine annotations of missing type javax.persistence.Entity      

无法确定丢失的注解类型 javax.persistence.Entity    搜 javax.persistence

 

ERROR] The type javax.transaction.TransactionManager cannot be resolved. It is indirectly referenced from required .class files    UnscaledValueValidator.java  (no source information available)

javax.transaction.TransactionManager 无法被处理。 它间接的被 UnscaledValueValidator.java的class文件引用(无法获得源信息)

 

The type org.codehaus.jackson.JsonParser cannot be resolved. It is indirectly referenced from required .class files   ..../JsonMapperHttpMessageConverter.java:67

org.codehaus.jackson.JsonParser 无法被处理。它间接的被引用自必须的.class文件  ..../JsonMapperHttpMessageConverter.java的第67行

 

方法:在  http://mvnrepository.com/ 中搜索  groupId (一般为包名称),然后在其中选择一个版本的

maven 错误列表maven 错误列表maven 错误列表maven 错误列表

2.1、 javax.persistence

<dependency>  <groupId>javax.persistence</groupId>  <artifactId>persistence-api</artifactId>  <version>1.0.2</version></dependency>

2.2、javax.transaction
<dependency>  <groupId>javax.transaction</groupId>  <artifactId>jta</artifactId>  <version>1.1</version></dependency>

2.3、org.codehaus.jackson

<dependency>  <groupId>org.codehaus.jackson</groupId>  <artifactId>jackson-core-asl</artifactId>  <version>1.9.13</version></dependency>

2.4、org.powermock

<dependency>  <groupId>org.powermock</groupId>  <artifactId>powermock-module-junit4</artifactId>  <version>1.6.4</version></dependency>

 

3.执行maven命令时 目录不对

[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\Server\GitRepository\qcadoomes). Please verify you invoked Maven from the correct directory. -> [Help 1]

目标应当是你必须指定的一个用来执行maven的项目路径,但是没有POM文件在你指定的目录。  D:\Server\GitRepository\qcadoomes  请确认你在正确的目录执行了maven命令。

正确的路径是  D:\Server\GitRepository\qcadoomes\




原标题:maven 错误列表

关键词:maven

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

泰国快递电商小包:https://www.goluckyvip.com/tag/103746.html
快递到泰国快递公司:https://www.goluckyvip.com/tag/103747.html
泰国闪电快车快递公司:https://www.goluckyvip.com/tag/103748.html
寄快递到泰国要多久:https://www.goluckyvip.com/tag/103749.html
快递寄到泰国要多久:https://www.goluckyvip.com/tag/103750.html
泰国快递安全吗:https://www.goluckyvip.com/tag/103751.html
黄果树瀑布景区景点 - 黄果树瀑布景区景点分布图:https://www.vstour.cn/a/408258.html
延边酒店(附近旅馆住宿50元):https://www.vstour.cn/a/409226.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流