-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]Mac和Linux上maven多模块编译顺序不同 #2114
Comments
Thanks for your report 这个是 另外你可以试试指定一下编译顺序, |
有些奇怪, 而且看到你的 hubble 编译顺序也倒置了, 似乎把所有 pom 的类型都放在了后面编译, 可以尝试以下:
我们这边之后尝试启动一个 docker 的 |
你们那边使用centos编译结果怎么样? |
mvn版本太低了吧,至少要求3.5+,我记得有些插件都不完全支持低版(包括jdk高版编译) 推荐应该是3.8+了,可以尝试更新一下mvn版本(并且确保新的环境没有额外配置),这边 centos 还没反馈 |
确实是版本的问题,只不过同样的mvn版本在0.12.0上没有出现这个问题。感谢! |
因为新版重构/升级了不少maven结构和插件版本,之后可以看看在编译检查那设置一下提醒/报错低于3.5版本的maven升级,也欢迎搜一下提示方案 pr |
例如可以加入一下这样的检查, 避免用户无感知 @z7658329 @wuchaojing <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-all</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<DependencyConvergence/>
<requireJavaVersion>
<version>[1.8,12)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[3.5.0,)</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin> |
Bug Type (问题类型)
None
Before submit
Environment (环境信息)
Expected & Actual behavior (期望与实际表现)
复现:下载release-1.0.0分支源码之后,执行
mvn clean package -Dmaven.test.skip=true
本地Mac的编译顺序为:

先编译父模块,再编译子模块,符合预期
Linux的编译顺序为:

先编译子模块,再编译父模块,不符合预期,这会导致最终生成的apache-hugegraph-incubating-1.0.0被delete
该问题未在之前版本出现,只在1.0.0版本出现。
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response
The text was updated successfully, but these errors were encountered: