Este é um repositório de testes.
- Clean:
$ mvn clean
- Compile:
$ mvn compile
- Compile + Test:
$ mvn test
- Compile + Test + Package:
$ mvn package
- Clean + Compile + Test + Package:
$ mvn clean package
- 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>
- Execute:
$ java -jar target/helloworld-<VERSION$-SNAPSHOT.jar [<parameters>]