Importing maven multi-module projects still seems messed up

Answered

I keep seeing this same topic popup over and over again but for the life of me I can't understand why this still doesn't seem to work correctly

Most of time after creating a new project based on a pom with several sub modules I need to go through and select each individual one and add as a `Maven Project` and even then it doesn't resolve all the dependencies correctly so I have areas of the code that are using Spring core functionality and it will ask me to add it to the classpath

I thought this was was supposed to be covered by auto importing, I don't even see this option anymore

----

IntelliJ IDEA 2020.2 EAP (Ultimate Edition)
Build #IU-202.4357.23, built on May 26, 2020
IntelliJ IDEA EAP User
Expiration date: June 25, 2020
Runtime version: 11.0.7+10-b912.1 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-33-generic

1
4 comments

It should work out of the box and does work in our tests. If it doesn't work for you, please file a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA and provide the sample project to reproduce with the IDE logs (Help | Collect Logs and Diagnostic Data).

0

Yeah I'm looking at it now purely from the mvn cli perspective , from the cli at least it is having an issue with snapshots where I need to explicitly pass the -U option

I don't even get to a point where I see this error in IntelliJ however

0

Even with the Always Update Snapshots and tests disabled I still get update errors related to the snapshots

When I run the corresponding mvn cli it works

mvn --update-snapshots install -Dmaven.test.skip=true

0

>Most of time after creating a new project based on a pom with several sub modules I need to go through and select each individual one and add as a `Maven Project`

Do you see these modules present in Maven tool window?

>from the cli at least it is having an issue with snapshots where I need to explicitly pass the -U option

>I don't even get to a point where I see this error in IntelliJ however

What exactly happen in IDE - any errors you see on Maven import?  Could you attach a screenshot of what you see (or a sample project if possible)? For uploading you can use ftp://ftp.intellij.net/.uploads / https://uploads.services.jetbrains.com or any file sharing service or attach files to new YouTrack issue (it can be attached with the restricted visibility).

 

0

Please sign in to leave a comment.