I'm new to Maven and not quite sure what it's for but I thought it was for importing external libraries so that they are available while coding. I have imported the dependency and there's no error on it as can be seen here:
But when typing the import it all just comes up in red as if it's not found. It's not finding anything.
And if I paste the whole import line in it gets deleted automatically.
Is this not what Maven is supposed to do or is there something else to do before it will work? I also have it set to import Maven projects automatically.
EDIT: Just for clarity, of course it's in my pom.xml file otherwise it wouldn't be showing up in the external libraries in the screenshot above:
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>11</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>11</version>
</dependency>
<dependency>
<groupId>uk.co.caprica</groupId>
<artifactId>vlcj</artifactId>
<version>4.5.0</version>
</dependency>
<dependency>
<groupId>uk.co.caprica</groupId>
<artifactId>vlcj-javafx</artifactId>
<version>1.0.2</version>
</dependency>
</dependencies>
Additional EDIT: Some screenshots to show that typing the classes directly does not work any better. Intellij is just not finding anything:



