Intellij is unable to detect compile time errors - maven

This is how it should beIt should be showing the highlighted line as error.I tried to configure the intellij platform plugin sdk for my maven project, but it did not fix rhe problem.
I checked the jdk path and it's pointing to the right place.
I am completely lost on how to resolve this and any help would be appreciated

Related

Intellij complaining about JDK location

First Image
Second Image
As I attached 2 images, I am having trouble running my spring boot gradle project written in groovy.
As soon as I open the project, intellij tries to build the project and it fails saying Gradle Sync failed.
Since it is complaining about java home in the jdk setting, I was trying to change the path as my intellij expects. but as soon as I change it, it tells me that it cannot find android sdk location. and I have no idea why it cares about android sdk. This project is about spring batch job using gradle and groovy.
I have been searching why it happens for days now and online is talking about ardroid studio solution. and those solution do not apply to my problem.
Can someone help me with this issue please?
Thank you in advance.
It looks like you are running Android Studio instead of IntelliJ IDEA.
The former doesn't support projects other than targeted for Android, so your project will not work there.
Make sure you run IntelliJ IDEA. You can get it at https://www.jetbrains.com/idea/download/index.html.

Intellij gradle import Issue

I'm having a lot of issues w/ my intellij project to recognize 3rd party libraries I've imported with gradle. Let me outline some steps I've tried.
The code compiles properly in the terminal.
Invalidating and restarting intellij does nothing.
The import, seems to be in the project dependency folder.
I've tried removing the import and resyncing gradle, then adding it back in.
Tried deleting the intellij app and re-installing (I think I may have done this wrong given my configurations were saved upon re-download).
I've tried unticking offline mode, and doing all this in gradlew preferences.
I've tried increasing memory allocation in both intellij and for gradle.
No one else on my team seems to be having this issue.
I have no idea what else to try or where to look. Would LOVE some pointers. Happy to edit. Thanks!
Intellij Version: 2019.1.3

IntelliJ Idea doesn't place dependencies in External Libraries Folder

Currently have a hard times working on one project. While building with maven I'm getting success but when I open the project all classes are red with unresolved dependencies and folder "External Libraries" contains only JDK classes.
Does anyone know what might be the reason of this?
Thanks in advance.
I'm using Intellij Idea 14.0.2 and Maven version 3.2.5
Enable auto reload for your pom file(s). intelliji doesn't do it automatcally unless you enable it.
To do so, just open a pom file and you'll see a popup that asks you if you to enable auto relaod.

Project import error when using Eclipse

I am getting the following error when trying to import some existing project (couple of years old project).
"No marketplace entries found to handle maven-antrun-plugin:1.3:run in Eclipse. Please see Help for more information."
I have tried to read information on this error.. but can't find anything that tell what's wrong, and how to fix it.
Help? I have Eclipse Indigo, and M2E Eclipse Plugin
Update - Looks like this is related to Eclipse Indigo having Maven 3, and my pom xml files being old (maven2). I am reverting back to Eclipse Ganymede... :(
This probably relates to a M2E connector not existing for the "run" goal of the maven-antrun-plugin. See http://objectledge.org/confluence/display/TOOLS/M2E+Connectors for more information.
Eclipse is only able to perform a subset of Maven build functions, and the M2E Eclipse plugin helps expand Eclipse's repertoire using its "Connectors", which are available for download in the Marketplace.

Springsourcetoolsuite sample project throwing maven dependency issues

I am new to STS and installed the latest version yesterday. Once installed I went to New->Spring Template Project->Simple Spring Batch Project and followed the instructions like giving a project name, specifying a package name and clicked finish.
The project is showing a lot of errors. I tried updating maven dependencies and clicked almost all logical options in maven. I even see that org.springframework is not resolved. I see "Failed to read artificat descriptor errors".
Can anybody guide me here? Since this is a sample project I expected it to compile and run straight away. Am i missing something?
My STS version is 2.7.2 and maven is 4.0
Unfortunately, some of the template projects are a bit out of date. I'd recommend posting on the STS forum for a bit of help on getting them working.
http://forum.springsource.org/forumdisplay.php?32-SpringSource-Tool-Suite

Resources