RSS Feed Subscribe to RSS Feed

 

Intellij Maven folders

I haven’t been coding a lot recently, and when I spun up a new maven spring boot project and imported in to IntelliJ, I got confused about which folders are supposed to be marked as source (src, src/main or src/main/java?) and test (src/test or src/test/java?).

think the answer is:

  • src/main/java folder should be marked as Sources
  • src/test/java folder should be marked as Tests
  • src/main/resources folder should be marked as Resources

For example:

(I’m using IntelliJ 2018.2.6 CE, Java 1.8.0_181, Apache Maven 3.5.4)

Tags: , ,

Leave a Reply