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主目录”
问题定位的方法: 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 (一般为包名称),然后在其中选择一个版本的
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