admin管理员组

文章数量:1026989

Using VS Code I am trying to access the file application.conf located in the resources folder of a java maven project:

In the projects setting I have src/main/resources in the classpath:

Unfortunately running maven lifecyles the resources folder is not available in the target/classes folder:

Hence the java program with VS Code cannot access any file in the resources folder, how can I add src/main/resources to the class path? (right click folder -> add "Add Folder to Java Source Path" does not work with maven in VS Code)

Using VS Code I am trying to access the file application.conf located in the resources folder of a java maven project:

In the projects setting I have src/main/resources in the classpath:

Unfortunately running maven lifecyles the resources folder is not available in the target/classes folder:

Hence the java program with VS Code cannot access any file in the resources folder, how can I add src/main/resources to the class path? (right click folder -> add "Add Folder to Java Source Path" does not work with maven in VS Code)

本文标签: javaVS Code srcmainresources not included in the class pathStack Overflow