I\'m trying to use the barbecue barcode printing library. I have successfully added the library to IntelliJ through project structure add library. Then I imported the packa
None of the 13 existing answers worked for me. However, I could resolve the issue by first removing all modules:
File
> Project Structure...
,Modules
tab,then removing all remaining Maven modules from Maven
tool window:
Remove projects
,and then adding them again in Project
tool window:
pom.xml
,Add as Maven project
,now unignoring any ignored modules from Maven
tool window:
Unignore
,and finally rebuilding using Build
> Rebuild project
. This assumes that a mvn clean install
already happened.
I had the same problem and it was fixed for me by changing the "Maven home directory" in Settings from "Bundled" to my locally installed maven. Perhaps this triggered some kind of refresh somewhere since I had not changed this setting for months without any issue.
I tried all appreciated answers and none of them solve my problem!
According to Intellij community, there is a bug with Maven builds in 2020.1 and 2020.1.1 versions: https://youtrack.jetbrains.com/issue/IDEA-237320?_ga=2.235486722.203129946.1591253608-322129264.1584010541
Please try to run on 2019.3.4 version (Its worked for me from the first time)
You can download from here
https://www.jetbrains.com/idea/download/previous.html?_ga=2.190043688.203129946.1591253608-322129264.1584010541
Here is a solution worked for me:
Disable the "Use --release option for cross-compilation like the following in intellij idea:
got Settings
-> Build,Execution,Deployment
-> Compiler
-> Java Compiler
and disable:
Use '--release' option for cross compilation(java 9 and later)
I tried to "Maven > Reimport" but the only thing that actually fixed it was to close the project, delete the .idea directory, and reopen the project.
Just reimport didn't work. Following worked for me.
File -> Invalidate Caches /Restart
Then
Build -> Rebuild Project
That will reimport maven project.