Maven is a Java build tool used for web, mobile and desktop application in the development process and it is declarative in the pom.xml. the configuration file contains all the dependencies and scm source.
use the following code via command line
use the following code via command line use install goal to create a war file
`mvn clean install`
There are different predefined available goals
remove all the files generated during the previous run under target folder
running unit and integration tests
compiles and run and generates war file in the target folder
the generated war file to the target server. You need to configure server details in pom.xml
Generates artifacts site documentation for maven project
pom.xml file is an important component of any maven project. It contains important information about your project and dependencies. POM abbreviated as Project object model which is XML file.
Maven has a predefined goal called compile which compiles all the java files and generates class files in the target folder
// compile source code
// compile test java files
Sometimes a developer needs to know project dependencies and transitive dependencies to resolve conflicts with different versions of artifacts.
You can compile the test code using the test goal. if you want to run it, You need maven surefire plugin dependency. You need configuration of test classes and resource files in pom.xml for generation of output
sometimes it is required to skip the test class running. there are many ways to skip running test classes. use -DskipTests or -Dmaven.test.skip=true options to maven command