[
https://issues.apache.org/jira/browse/MSHADE-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17290665#comment-17290665
]
Zhengqi Zhang commented on MSHADE-384:
--------------------------------------
I compiled the latest code from the master branch of the maven-shade-plugin,
i.e. 3.3.0-snapshot, installed it to the local repository, and then introduced
it in my project. But this time a new problem appeared. The log is as follows:
[ERROR] Failed to execute goal
org.commonjava.maven.plugins:directory-maven-plugin:0.4-SNAPSHOT:highest-basedir
(directories) on project flink-table: Cannot find a single highest directory
for this project set. First two candidates directories don't share a common
root. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.commonjava.maven.plugins:directory-maven-plugin:0.4-SNAPSHOT:highest-basedir
(directories) on project flink-table: Cannot find a single highest directory
for this project set. First two candidates directories don't share a common
root.
After searching, I found that mavenSession in 3.3.0-snapshot incorrectly
identified my top-level directory. My project is a multi-module project. In
3.2.1, the top-level project was identified as *_MavenProject:
org.apache.flink:flink-parent:1.12-SNAPSHOT @
/Users/zhangzhengqi5/IdeaProjects/flink/pom.xml,_* that's true, but in 3.3.0 -
the SNAPSHOT, the top-level project is identified as *_MavenProject:
org.apache.flink:flink-parent:1.12-SNAPSHOT @
/Users/zhangzhengqi5/IdeaProjects/flink/target/dependency-reduced-pom.xml_*. I
think the 3.3.0-snapshot version has a problem with initializing mavenSession.
I think this is a different problem from the multithreaded compilation failure
mentioned above。
> maven building hang when using multithread on jdk 11
> ----------------------------------------------------
>
> Key: MSHADE-384
> URL: https://issues.apache.org/jira/browse/MSHADE-384
> Project: Maven Shade Plugin
> Issue Type: Bug
> Affects Versions: 3.2.1, 3.2.4
> Environment: macos 10.15.7
> jdk 11.0.9
> maven 3.6.3
> Reporter: Zhengqi Zhang
> Priority: Major
> Labels: build
> Attachments: image-2021-02-24-20-04-58-353.png,
> image-2021-02-24-20-06-47-076.png
>
>
> When I use mvn clean package and add -T to the command, the console log stops
> on a certain line. then I use -X to start the debug log, and I find that I
> have been looping through something, as follows.{color:#172b4d}*When I get
> rid of the -T parameter, everything is fine.When I switched to JDK8, it was
> fine to use multithreaded packaging*{color}
> !image-2021-02-24-20-04-58-353.png|width=943,height=574!
> I get the thread stack, as shown in the figure below.
> !image-2021-02-24-20-06-47-076.png|width=838,height=388!
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)