Iqbal´s DLQ main Help

Maven Comands

Build command

This one is the ultimate maven command I am using now:

  1. clean install without failing on tests

  2. make a test report

  3. produce a dependency tree for debugging (tree.now file)

  4. produce a reference to the parent in same file (tree.now file)

  5. open test report in the default browser

mvn clean install surefire-report:report dependency:tree site -DgenerateReports=false -U -Dmaven.test.failure.ignore=true -Dmaven.plugin.validation=verbose -Dsonar.login=$SONAR_LOGIN && mvn dependency:tree >> tree.now && mvn dependency:display-ancestors >> tree.now && start target/site/surefire-report.html

Skip sonar and snyk:

mvn clean install surefire-report:report dependency:tree site -DgenerateReports=false -Dsonar.skip=true -Dsnyk.skip=true -U -Dmaven.test.failure.ignore=true -Dmaven.plugin.validation=verbose -Dsonar.login=$SONAR_LOGIN && mvn dependency:tree >> tree.now && mvn dependency:display-ancestors >> tree.now && start target/site/surefire-report.html

Maven formatter

mvn net.revelc.code.formatter:formatter-maven-plugin:format
Last modified: 12 March 2024