Dependency Not Found ( Maven ) #421
Comments
sridhar-vadlamani-ck commented Sep 21, 2017 •
arturbosch-code-analysis arturbosch-code-analysis (for detekt) https://dl.bintray.com/arturbosch/code-analysis/ default true never false never
The error I get follows:
The text was updated successfully, but these errors were encountered:
snowe2010 commented Sep 21, 2017
I asked about this in the gitter.im channel and I’m waiting for a reply. I also mentioned it in issue #420
arturbosch commented Sep 27, 2017
Have you tried mvn install on the cli? I just created a plain mvn project from intellij starter and just copied everything from readme and it worked! Maven downloaded kotlin-compiler-embeddable etc and even when I cleaned my m2 repo for detekt.
Are you new to bintray? Have you read how to setup Bintray for maven projects?
false bintray-arturbosch-generic bintray http://dl.bintray.com/arturbosch/generic
false bintray-arturbosch-generic bintray-plugins http://dl.bintray.com/arturbosch/generic
snowe2010 commented Sep 27, 2017
hmm. this might be due to using artifactory or nexus as a middle repo. We have nexus as our go-through so that all artifacts need to resolve through it. It probably doesn’t know how to look at bintray.
arturbosch commented Sep 28, 2017
Nexus can also manage maven projects, so I guess the settings.xml need an update too ^^
sridhar-vadlamani-ck commented Sep 28, 2017
@arturbosch I am now a Maven expert. mvn install worked. Not sure why IntelliJ didn’t resolve this dependency. I didn’t think of the command line because it resolved everything else.
snowe2010 commented Sep 29, 2017
@arturbosch yes nexus can resolve any artifacts the world over, but to do so it has to know about the repository. It does not know about bintray and I currently don’t have access to add bintray to its list of repositories. This would be resolved very easily for corporate environments if it was available on maven central.
arturbosch commented Sep 30, 2017
Yeah, there is an issue for that. It should not be that hard to add detekt to maven central as Bintray offers the sync-to-maven-central option.
Maven Plugin not found in IntelliJ IDE
I have a new error in my project that is in the pom.xml file. How can I fix it?
The error below shown in IntelliJ idea:
9 Answers 9
From the Preferences in Intelli J, navigate to «Build, Execution, Deployment > Build Tools > Maven», check the «Use plugin registry», and click «OK».
Then «File > Invalidate Caches / Restart» to reload Intelli J. The error will go away automatically.
I had the same problem. This summer Intellij suddenly started throwing this error but build went through. I just had to specify version of plugin and it stopped throwing this error.
I had the same problem using IntelliJ version 2020.2.4. The solution was to edit the pom.xml file and specify the version of the Spring-Boot Maven plugin, with the following syntax:
This Intelli-J release does not recognize the «RELEASE» keyword after the version number, as suggested in the previous answer.
Add following code
and then click on the icon as shown in screenshot, to load Maven changes in pom.xml file
What worked for me after long tries is updating the indices of the remote maven repository:
Settings > Build, Execution, Deployment > Build Tools > Maven > Repositories.
Then select the remote repository and then update.
If you try to update your IDE. It will fix the issue permanently. As, Apparently there was some bug in the IDE which got fixed in build No: Build #IU-211.7142.45, built on April 30, 2021.
This error comes when you are using a milestone or snapshot release. It will be resolved after adding appropriate pluginRepository elements.
PS: Above answers worked because they explicitly mentioned a different version, which is not milestone or snapshot. IMO that’s not the ideal solution.
By default my configured snapshot project inherited from the spring-boot-starter-parent and set the parent. I added version number and it now as follows:
As docs suggests: «You should need to specify only the Spring Boot version number on this dependency. If you import additional starters, you can safely omit the version number. » https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/
I had the same problem too. When I used the default project directory (C:\Users\NAME\IdeaProjects) to create the project there was no errors. I got the error when I change the location.
Not the answer you’re looking for? Browse other questions tagged spring-boot maven intellij-idea or ask your own question.
Linked
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.11.8.40681
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.












