-
为了避免与来自maven中央仓库的Presto官方版本的maven坐标冲突,将presto-root
(presto项目的父模块和聚合模块)的version从0.240
更新为0.240-deploy-SNAPSHOT
<groupId>com.facebook.presto</groupId>
<artifactId>presto-root</artifactId>
<version>0.240-deploy-SNAPSHOT</version>
<packaging>pom</packaging>
-
使用如下命令进行部署
mvn clean deploy -DskipTests -Dmaven.compile.fork=true
-
执行过成功报错:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (checkstyle) on project presto-bm-functions:
Failed during checkstyle execution: Unable to find configuration file at location: src/checkstyle/presto-checks.xml:
Could not find resource 'src/checkstyle/presto-checks.xml'. -> [Help 1]
-
从报错信息看,在执行checkstyle时,presto-bm-functions
模块找不到checkstyle的配置文件presto-checks.xml
-
checkstyle的配置文件,位于presto-root
模块的src/checkstyle/presto-checks.xml
-
通过检查presto-bm-functions
模块的pom.xml文件发现,该模块指定的父模块presto-root的version还是0.240
<parent>
<groupId>com.facebook.presto</groupId>
<artifactId>presto-root</artifactId>
<version>0.240</version>
</parent>
-
错误的version,怎么可能找到父模块presto-root
呢?
-
解决办法: 将所有子模块中定义的presto-root的version都改为0.240-deploy-SNAPSHOT