pom.xml is the main element of our project. In file are defined all of the dependencies for example:
a way of building a project
testing
running a project
generating documentation
creating a release
After generating project pom.xml file looks as follows:
It looks very raw. Only groupId, artifactId, modelVersion, version. This information on this step is not very important for us. First, change that we will make will be adding JUnit library.
Now we can compile our project:
As we can see project build successfully. For now, we should look at three commands:
mvn – this command runs maven and proper pom.xml file
clean – delete target catalog and old files version
compile – runs java compiler
My site is free of ads and trackers. Was this post helpful to you? Why not