Maven

Java · 13 of 17
On this page (6)
  1. Checkstyle
  2. PMD
  3. Launch options
  4. Resume a build from the microservice where it failed
  5. Build only two modules from the project
  6. Dependency version ranges

Checkstyle

To check all the errors in checkstyle and where they’re located:

  1. go to the project’s folder where the error triggers
  2. open target/checkstyle-result.xml
  3. search for ="error"
  4. there the classes’ name and the error line # can be seen

PMD

To find where the error is located. Search for the String priority="1". If nothing is found, search for prio 2, 3…

Launch options

Resume a build from the microservice where it failed

mvn -rf myproject clean install

Build only two modules from the project

mvn -pl module1,module2 clean install

Dependency version ranges

(work always with the latest version of a dependency)

<!--Specifies from 1.1.0 on. The latest one -->
<version>[1.1.0,)</version>
Found it useful? Share it
LinkedIn