j2merr
j2merr
采纳率0%
2014-12-09 03:06 阅读 10.9k

maven 编译报错的问题

错误如下:

[root@node1-246 emm-trunk01]# mvn clean install
[INFO] Scanning for projects...
[ERROR] The build could not read 8 projects -> [Help 1]
[ERROR]

[ERROR] The project com.polysaas.emm:emm-device:0.0.1-SNAPSHOT (/opt/emm-trunk01/emm-device/pom.xml) has 5 errors
[ERROR] Non-parseable POM /root/.m2/repository/org/springframework/boot/spring-boot-starter-parent/1.0.1.RELEASE/spring-boot-starter-parent-1.0.1.RELEASE.pom: start tag unexpected character ; (position: TEXT seen ...,window.analytics}};for(var i=0;i [Help 2]
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. @ com.polysaas.emm:emm-device:[unknown-version], /opt/emm-trunk01/emm-device/pom.xml, line 50, column 15
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-jetty:jar is missing. @ com.polysaas.emm:emm-device:[unknown-version], /opt/emm-trunk01/emm-device/pom.xml, line 60, column 15
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-actuator:jar is missing. @ com.polysaas.emm:emm-device:[unknown-version], /opt/emm-trunk01/emm-device/pom.xml, line 64, column 15
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-test:jar is missing. @ com.polysaas.emm:emm-device:[unknown-version], /opt/emm-trunk01/emm-device/pom.xml, line 68, column 15
[ERROR]

[ERROR] The project com.polysaas.emm:emm-pms:0.0.1-SNAPSHOT (/opt/emm-trunk01/emm-pms/pom.xml) has 5 errors
[ERROR] Non-parseable POM /root/.m2/repository/org/springframework/boot/spring-boot-starter-parent/1.1.7.RELEASE/spring-boot-starter-parent-1.1.7.RELEASE.pom: start tag unexpected character ; (position: TEXT seen ...,window.analytics}};for(var i=0;i [Help 2]

代码是从svn上down下来的,在其他机器上编译没问题,新装的机器上 编译出错了,maven 用3.0.4 和 3.0.5 都是这个问题(maven是解压指定目录的),linux下maven的设置如下:
MAVEN_HOME=/opt/maven
PATH=$MAVEN_HOME/bin:$PATH
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL EMM_LOG_BASE EMM_LOG_BASE MAVEN_HOME

谢谢!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

3条回答 默认 最新

  • eagleyan Coursera 2014-12-09 04:51

    检查你的pom.xml, org.springframework.boot缺了version


    org.springframework.boot
    spring-boot-starter-tomcat
    1.1.9.RELEASE

    点赞 评论 复制链接分享
  • u013038643 张思思 2017-02-12 13:47

    是缺少吗?

    点赞 评论 复制链接分享
  • zzhao114 Z. ZHANG 2017-02-12 14:03

    ....好久远的帖子。。

    点赞 评论 复制链接分享

相关推荐