--- /dev/null
+#!/bin/sh
+
+# Search for duplication of classes in classpath
+# This check can not be automated in build yet as current
+# conflicts must be fixed.
+
+mvn org.basepom.maven:duplicate-finder-maven-plugin:check
<suppressionFile>cve-false-positives.xml</suppressionFile>
</configuration>
</plugin>
-
+ <plugin>
+ <!--
+ Detection of conflicts in classpath.
+ Command line is: mvn org.basepom.maven:duplicate-finder-maven-plugin:check
+ See https://github.com/basepom/duplicate-finder-maven-plugin
+ -->
+ <groupId>org.basepom.maven</groupId>
+ <artifactId>duplicate-finder-maven-plugin</artifactId>
+ <version>1.1.0</version>
+ <configuration>
+ <printEqualFiles>true</printEqualFiles>
+ <!--
+ <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
+ <failBuildInCaseOfEqualContentConflict>true</failBuildInCaseOfEqualContentConflict>
+ <failBuildInCaseOfConflict>true</failBuildInCaseOfConflict>
+ -->
+ <checkCompileClasspath>true</checkCompileClasspath>
+ <checkRuntimeClasspath>true</checkRuntimeClasspath>
+ <checkTestClasspath>false</checkTestClasspath>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
+++ /dev/null
-#!/bin/sh
-
-if [[ "$OSTYPE" == "darwin"* ]]; then
- OS='macosx-universal-64'
-else
- OS='linux-x86-64'
-fi
-
-if ! ls sonar-application/target/sonarqube-*.zip &> /dev/null; then
- echo 'Sources are not built'
- ./build.sh
-fi
-
-cd sonar-application/target/
-if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then
- unzip sonarqube-*.zip
-fi
-cd sonarqube-*
-bin/$OS/sonar.sh restart
-echo "sonar.search.http.port=9200" >> conf/sonar.properties
-sleep 1
-tail -100f logs/sonar.log