IntelliJ cannot resolve in-project Maven dependencies when using a property for the version

Answered

Hi, I have an IntelliJ project with several modules which are all Maven projects related to each other. This is NOT a multi-module Maven project. We use a property for the version of the POM in each project. When I Reload All Maven Projects, IntelliJ cannot resolve the dependencies (which are modules in the IntelliJ project). However if I instead "hard code" the versions, it works. I know it's not recommended to use a property for the version in a Maven POM, but we came from Eclipse and it was supported. It also doesn't work when using a supported property like ${revision}.

With property: 

Without property: 

Screenshots: Upload id: 2025_06_11_gwJMeGFLRESLH6VDrZoZrf (files: Capture d’écran du 2025-06-11 14-58-55.png, Capture d’écran du 2025-06-11 15-00-02.png)

Example project files:
Upload id: 2025_06_11_2AVUtEoE4Hsoto3FgPYHHM (file: intellij-version-property-issue.tar.xz)
https://www.swisstransfer.com/d/13e3ba02-88a9-405a-b41d-76973cc38997

 

0
1 comment

Hi, thank you for reaching out!

The situation you described sounds similar to an existing issue reported on YouTrack regarding the use of ${revision} in Maven projects: https://youtrack.jetbrains.com/issue/IDEA-373459

Could you please review the issue and confirm whether the description matches your case? If so, we encourage you to upvote and comment on the issue to help us prioritize fixing it.

0

Please sign in to leave a comment.