Related
I already check the checkbox build project automatically in Build, Execution, Deployment > Compiler.
But in my class, even I random type some wrong keyword, no any error is shown in build output windows.
For example, I change the keyword
private Integer id
to
private2324234 Integerfdsfsfswerer id;
, press Ctrl + F9, still no any compile error is shown, why?
In auto-build window, it even show
No compilation problems found
My IntelliJ version is 2022.3.1 (Community Edition)
I have done many things and finally success, but I think the critical step is
Right-click on pom.xml and then click on "Add as Maven Project".
For more details of the origin problem, the problem occur when I select File > new > project from version control and then enter the git url.
the project is a maven project.
I am getting below errors:
Dependency 'org.seleniumhq.selenium:selenium-java:3.141.59' not found
Dependency 'org.seleniumhq.selenium:selenium-java:3.141.59' not found
Dependency 'org.seleniumhq.selenium:selenium-java:3.141.59' not foundenter image description here
Once any changes are made in pom.xml you must refresh it by clicking on following button (see screenshot).
It will trigger Maven to refresh and download needed dependencies/plugins according to pom.xml file.
Please reload the pom.xml by mentioned in the picture.
right click -> maven -> Reload Project
I've created a Kotlin project which uses a Gradle build system. Here's my problem:
When I click "reload gradle project" - nothing changes, I still get this mistake (project failed at...).
How can I solve this problem?
P.S: More detailed description of my problem:
When I click "reload gradle project" - it starts realoading like this:
But then it goes back to what is on the first picture (project failed at...).
I receive this error, after searching found suggestion: remove all maven*.lastUpdated from local repository.
So I did it. Nothing happen.
What else can be done?
Thanks.
I have the similar error while doing the maven project in eclipse. I solved the problem by doing following steps:
Right click the project
Goto Maven
Click the "Update Project"
In Maven First,you need to know below things are working are not.
Are you able to open the repository url which is in settings.xml on your browser.
Or Check are you able to download the jars from the repository url.
Or Right click on your project and click on Maven and click the Update Project.
When using Alt-Insert to insert a dependency into the POM, the Artifact Search is always completely blank regardless of what I search for.
I tried to add repo1 to Settings->Maven->Repository Services, it says "no repository found." I find that hard to believe.
I've also tried to "update" my local repository but that results in an error.
FYI I'm using Community Edition Snapshot.
Thanks!
If you have a brand new IntelliJ install and have never updated your Maven Repository, notice that there is a little "Update" button to the right that becomes clickable when you click on each repository.
Preferences > Build, Execution, Deployment > Build Tools > Maven >
Repositories
The important one is the https://repo.maven.apache.org/maven2/ remote repository, make sure you update it.
I used Artifactory to generate a settings.xml for me, and by default it pointed me to the "libs-releases" repository.
Instead want my "releases" repository to point to the much larger virtual repository "remote-repos."
All it took was a simple change to the options of the "Generate Settings" function.
Weird. The Artifact Search is working fine for me with IntelliJ Community Edition, at least for artifacts from the central repo that has been indexed:
And as you can see above, all repositories declared in POMs known by IntelliJ are listed.
There might be something wrong with your Maven settings. This is a wild guess but is your Maven home directory properly defined? Same for the user settings file? Is Maven actually working fine under IntelliJ?
Solved - by reinstalling Intellij Idea
Search for class tab in Maven Artifact Search popup was always empty
Solution in linux:
remove idea folder (for me it was ~/idea-YOUR_VERSION_HERE)
remove ~/.IntelliJIdeaYOUR_VERSION_HERE folder (settings)
download new version form jetbrains.com, unzip, run installer from bin
It appears to be a blocked port, as I am using my own artifactory repository. Of course, the port it is using looks to be completely undocumented, but WireShark shows it to be 58754. Sounds random, I hope it isn't!