All Maven projects have a standard directory structure.
/src/main/java --> this folder contains all the source code, i.e. all the *.java files
/src/main/resources --> this folder contains all the *.properties files, any *.xml configuration files, and other non-source files required by the application
/src/test/java --> this folder contains all the test source code, typically *.java files containing junit tests
/src/test/resources --> this folder contains all the *.properties files, any *.xml configuration files, and other non-source files, required by the tests
/target --> this is the folder where Maven puts the final output of the build (*.jar, *.war, ..)
/target/classes --> this is where Maven puts the compiled java classes
There might be other folders under /target depending on the build process.
The pom.xml is always in the root folder of the project.
No comments:
Post a Comment