无效的任务'ľf':您必须在格式插件中指定有效的生命周期阶段或目标:goal或pluginGroupId:pluginArtifactId:pluginVersion:goal

时间:2015-10-01 13:22:51

标签: maven install pom.xml build-error

当我尝试执行以下命令时,我遇到了图片中描述的错误:

mvn clean install

请你帮我解决一下吗?

在pom.xml中我有:

 <build>
    <plugins>
      <plugin>
        <!-- Skip tests at build time -->
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
      <plugin>
        <!-- we target Java 7.0 -->
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <compilerVersion>1.7</compilerVersion>
          <source>1.7</source>
          <target>1.7</target>
        </configuration>
      </plugin>
      <plugin>
        <!-- projects should be modified one at a time in eclipse
          we therefore don't use project references -->
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <configuration>
          <useProjectReferences>false</useProjectReferences>
        </configuration>
      </plugin>
    </plugins>
  </build>

0 个答案:

没有答案
相关问题