arrow: [Java] java-jars fails with "We have duplicated artifacts attached"

Describe the bug, including details regarding any error messages, version, and platform.

[INFO] <<< source:3.3.0:jar (default-cli) < generate-sources @ module-info-compiler-maven-plugin <<<
[INFO] 
[INFO] 
[INFO] --- source:3.3.0:jar (default-cli) @ module-info-compiler-maven-plugin ---
Error:  We have duplicated artifacts attached.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Apache Arrow Java Root POM 17.0.0-SNAPSHOT:
[INFO] 
[INFO] Arrow Maven Plugins ................................ SUCCESS [ 37.141 s]
[INFO] Module Info Compiler Maven Plugin .................. FAILURE [ 16.713 s]

https://github.com/ursacomputing/crossbow/actions/runs/8903205653/job/24451424677#step:6:16247

Component(s)

Java

About this issue

  • Original URL
  • State: open
  • Created 2 months ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

@vibhatha I don’t think that the plugin-plugin update is the root cause of the problem. IMHO, I’m suspecting more this commit 9090e679da91e0544171c2da9f2b9ce8ba23d389 as it updated to Apache POM 31.

Let me check locally.

That’s due to the source maven plugin update coming with new Apache POM. On some profile, the source and jar maven plugins are executed by the parent Apache POM and by the project pom. So we have a dual execution, so dual artifacts. It’s what I saw on Apache projects. I gonna take a look if it’s the same here in Arrow.