What most annoying programmers besides reading someone else’s code? That’s right, formatting! In a large team it is difficult to impart to everyone the same requirements for the style of the program code. One way out of this situation is to automatically configure the code style check.
This can easily be configured with the help of a checkstyle.
Continue reading “Checkstyle configuration in maven”
Suppose you write a project that must have mandatory support for java 1.6 and higher, but you only have java 9 installed and also want the compiled classes to be compatible with JVM 1.8.
Continue reading “Set java compiler version in pom”
Very often, when working on projects, you need to get the version of the pom.xml application from the command line.
Here’s how you can do it:
Continue reading “Get maven project version from the terminal”
Today we will discuss working with pom.xml. Suppose you have a web application and you want to print its current version in some part of the page.
Of course you can save the version in a separate parameter and read from there. But there is an option better. We can determine the version by reading it directly from pom.xml.
Continue reading “Retrieve version from maven pom.xml in java”
In this article we will learn how to create a simple java project with Maven. We also review project structure and the commands for building the project.
Continue reading “How to create a simple Java project with Maven”