dubbo3 源码学习 编译报错的解决

 https://github.com/apache/dubbo

下载项目

然后安装 maven 要3.5 版本往上(必须,要不)

然后执行 mvn install -Dmaven.test.skip=true

然后 如果是要导入 idea 执行 mvn idea:idea

         如果是要导入 eclipse 执行 mvn eclipse:eclipse

然后最后一步 导入 eclipse之前 

进入eclipse 选择 windows -》 lifecycle mapping

打开 lifecycle-mapping-metadata.xml 文件

<?xml version="1.0" encoding="UTF-8"?>
<lifecycleMappingMetadata>
  <pluginExecutions>
    <pluginExecution>
      <pluginExecutionFilter>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <goals>
          <goal>check</goal>
        </goals>
        <versionRange>[0.0,)</versionRange>
      </pluginExecutionFilter>
      <action>
        <ignore/>
      </action>
    </pluginExecution>  

<pluginExecution>
      <pluginExecutionFilter>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <goals>
          <goal>flatten</goal>
<goal>process-resources</goal>
        </goals>
        <versionRange>[0.0,)</versionRange>
      </pluginExecutionFilter>
      <action>
        <ignore/>
      </action>
    </pluginExecution> 

    <pluginExecution>
      <pluginExecutionFilter>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <goals>
          <goal>parse-version</goal>
        </goals>
        <versionRange>[0.0,)</versionRange>
      </pluginExecutionFilter>
      <action>
        <ignore/>
      </action>
    </pluginExecution>
  </pluginExecutions>
</lifecycleMappingMetadata>

上一篇:maven


下一篇:一文搞懂Maven Wrapper