After update to 2017.2 Maven dependencies gone

Answered

Hello,

I've updated to 2017.2 today and my project stopped compile in IDE.

It is fine on Maven command line. Also Maven build works fine in IDE. But IDE is not recognizing any Maven related dependencies.

Target directories include all dependencies.

Rebuilding, cleaning, reimporting do not help.

IntelliJ is recognizing only JDK dependencies.

Any idea how to help IDEA? :P

Thanks.

Kind Regards.

0
20 comments

Thanks, but I have already tried this. Doesn't help neither.

Things are getting worse as I just noticed that also language level is not taken from POM files and defaults to level 5.0. :(

Naaah... :/

0

Fixed. Finally. :/

Upgrade to 2017.2 corrupted my project files somehow and on diff I noticed that .idea/libraries/ directory has gone as well as few more files/directories related with project configuration. I deleted .idea/ and all *.iml files and imported project again from Maven model. Tricky 2017.2. ;)

1
Avatar
Permanently deleted user

Having a similar problem with the new version. Deleting the mentioned files and directories and reimporting did not help.

This bubble shows up when i hover over one of the maven modules.

The project is a multi-module maven project with 16 modules

0

Same here only just updated with a full download this morning as the updater just crashes (https://youtrack.jetbrains.com/issue/IDEA-122925).

Tried forcing 'reimport all' and maven reimport just the project and neither's working? doesn't appear to do anything at all?

When I open the maven sidebar the project name has a wavy red unline - like there's a problem, but no info pops up on hover and nothing in the event log? 

How do I fix this and get on with my job?

 

 

0

Same here only just updated with a full download this morning as the updater just crashes (https://youtrack.jetbrains.com/issue/IDEA-122925).

Tried forcing 'reimport all' and maven reimport just the project and neither's working? doesn't appear to do anything at all?

When I open the maven sidebar the project name has a wavy red unline - like there's a problem, but no info pops up on hover and nothing in the event log? 

How do I fix this and get on with my job? no dependencies are getting resolved.

 

 

0

The first line of the POM is also marked as an error, but similarly there's no message, if I hover it just says more... and clicking more shows less... the message is absent.

The POM builds OK from command line and built OK from 2017.1 yesterday and it hasn't changed.

0

Don't want to create a new project as I have a lot of configured data sources, execution configs and a lot of patches on the shelf which I can't migrate? or can I?

0

I was considering getting back on 2017.1 yesterday. But I had gave a try to get rid of Intellij project meta data. Helped me. Yes, this is true, you will lose a lot of configuration. But if you have the same what I had, these files seem to be already corrupted (their structure). So downgrading IDE may also not help you anymore.

Regarding the patches on the shelf... Isn't it VCS stuff? If you are on SVN it is probably stored in .svn meta data directory I guess. Which you do not need to touch in terms of 2017.2 mess fixing. I would backup entire project folder and give some tries different solutions.

0

With the shelf its not in svn the patches seem to be in the .idea/shelf dir and if you copy the files to the new project they are not picked up by the UI.

I think the datasource config files can be copied across, but not the execution configs, not the packaging configs.

I think the .idea lib missing libraries is because maven is borked for some reason.

 

0

OK for me its a known bug with maven and 2017.2 https://youtrack.jetbrains.com/issue/IDEA-176117 unfortunately I can't update maven its a company standard and its a standard because we have old modules that won't build/test on any version higher.

So I'll have to revert to 2017.1 at least unless 2017.2.1 is released and pray its not made any incompatible changes to my project files already. This is exactly the kind of half-tested bullshit I was worried about with the subscription model that's 3 hours lost.

0

@Richard, yeah, you are right with shelf stuff. I do not use this feature as my commits are quite often, and no interfering parallel changes rather. I am using just changelists feature.

Fortunately it works with more recent Maven releases, but still, I hope it will be fixed. Unfortunately the same with 3.0.3 on my side too. ;)

0
Avatar
Permanently deleted user

Have the same issue but with Maven 3.5.0. Where can I see, when 2017.2.1 is released?

0
Avatar
Permanently deleted user

OK, just to let people know (I already posted in the Bug Ticket  (https://youtrack.jetbrains.com/issue/IDEA-176117):

Updating to Maven 3.5.0 did not solve the problem for me, I already had a newer version than 3.0.x. After installing the EAP version from IntelliJ https://confluence.jetbrains.com/display/IDEADEV/IDEA+2017.2+EAP (2017.2.1) the bug is gone!

 

0
Avatar
Permanently deleted user

OK, just to let people know (I already posted in the Bug Ticket  (https://youtrack.jetbrains.com/issue/IDEA-176117):

Updating to Maven 3.5.0 did not solve the problem for me, I already had a newer version than 3.0.x. After installing the EAP version from IntelliJ https://confluence.jetbrains.com/display/IDEADEV/IDEA+2017.2+EAP (2017.2.1) the bug is gone!

 

0
Avatar
Permanently deleted user

The problem is not gone in IntelliJ 2017.2.5.

- Removed all of *.iml & .idea & try re-importing from scratch ==> still not not re-import the Maven libraries.

- Full preference & cache reset (rm -rf Library/Cache/IDEA* Library/Preferences/IDEA*) ==> still not re-import the Maven libraries

Any clue on how to downgrade to 2017.1 (it was working fine)?

0
Avatar
Permanently deleted user

Well, I have something seriously busted on my machine... not only 2017.1 no longer works (Maven projects import does not import dependencies either), but:

- typing ";" in a Java editor **after a word** produces "$"

- "." produces "/"

- "," produces "?"

Anyone has anything close, or should I open a new defect? I am using IDEA 2017.1 (or 2017.3 FWIW) on macOS 10.12.6. I will test on Linux tomorrow.

0

How about keyboard settings? As I live in Brussels I know issues related with French-English keyboards hahaha. Hopefully that's just it... :)

0
Avatar
Permanently deleted user

Indeed, that was it: I was using "US International" keyboard... with the issues described above. Switching to "US" fixes this weird problem. Thanks!

0

Please sign in to leave a comment.