In particular, pay attention to the section. The pom example is intentionally sparse and is for demonstration purposes only. Therefore, using our example above, the parent-proj/pom.xml should look something like the pom example below. On the other hand, if the sub-modules are not included in the parent pom then you might see the red symbol that indicates Java class located out of the source root. If your contains your sub-modules (such as module-a-proj and module-b-proj in our example above) then IntelliJ will properly add their src directories as content roots. If you look in the parent-proj/pom.xml you should see a section. How do I add Java 1. This Mac 911 article is in response to a question submitted by Macworld reader Karen. In other words, you have a directory structure with sub-modules as shown below: parent-proj/ Intellij IDEA does not import dependencies from gradle and dont mark src dirs Using a Scala library for an Android application. The question mark shows up if you click the file or folder and it can’t be found. However, it is possible that you imported a maven project that contains modules. I then went into IntelliJ's Settings > Maven > Repository Services and Updated my local repository (so that IntelliJ would reindex the repository contents).
Also, learn how to debug Selenium WebDriver in Eclipse and IntelliJ, the two popular IDEs for Selenium Java development. mvn install:install-file -Dfilejmime.jar -DgroupIdjmime \ -DartifactIdjmime -Dversion3.1.1e -Dpackagingjar Maven installed the jar file just fine into my local repository. Both methods work but I like this better as it keeps your code separate from 3rd party JAR files. In this blog, we deep dive into the essentials of debugging in Selenium WebDriver from a test automation point of view.
This is slightly different from how Eclipse does it where all JARs are extracted into a single runnable JAR. You can create additional (and remove) content roots as explained in IntelliJ's Configuring Content Roots documentation. These JAR files will now be present in the same directory as the compiled output of your code. When you create a module, typically it has one content root.