Skip to content

marceloavilaoliveira/helloworld

Repository files navigation

sandbox/helloworld

Este é um repositório de testes.

BUILD

  • Clean:
$ mvn clean
  • Compile:
$ mvn compile
  • Compile + Test:
$ mvn test
  • Compile + Test + Package:
$ mvn package
  • Clean + Compile + Test + Package:
$ mvn clean package

SONARQUBE

  • Download and install SonarScanner:

SonarQube/SonarScanner latest documentation

  • Copy the sonar-scanner.properties global settings file to the SonarScanner location
$ cp sonar-scanner.properties <SONARSCANNER-PATH>/conf/.
  • Run cppcheck analysis (C code):
$ mkdir -p target/cppcheck-reports
$ cppcheck --xml --enable=all src/main/. 2> target/cppcheck-reports/cppcheck-report.xml
  • Run analysis:
$ sonar-scanner -Dsonar.branch.name=<YOUR-BRANCH-NAME>

EXECUTION

  • Execute:
$ java -jar target/helloworld-<VERSION$-SNAPSHOT.jar [<parameters>]