运行Maven是报错:No goals have been specified for this build

 

pom.xml文件<build>标签后面加上<defaultGoal>compile</defaultGoal>即可

 

 

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.taobao</groupId>
    <artifactId>Platform</artifactId>
    <version>0.0.1-SNAPSHOT</version>
  </parent>
  <artifactId>taobao-musicxiami</artifactId>
  <packaging>war</packaging>
  <build>
      <defaultGoal>compile</defaultGoal>
   </build>
</project>

 

posted @ 2019-09-07 15:18  expworld  阅读(105)  评论(0编辑  收藏  举报