Apache Maven Tutorial | Maven Goals | Maven Compile Goal

Опубликовано: 23 Июль 2026
на канале: Harivardhan Technology Solutions
25
2

compile goal
================
it is used for compiling the source code of the project.
in java, source code files are having .java extension
after compilation, .java files will be converted into .class files
all the .class files and files from resource folder will be copied into target\class folder
all the test class .class files will be copied into target-testclasses folder

maven compile goal command is "mvn compile"
maven comile goal internally first it will perform "mvn validate" and then perform "mvn compile"

For Git Videos, please go through below Tutorial
   • Git Tutorial  

For Java Videos, Please go through below Tutorial
   • JAVA