瀏覽代碼

Add script find-classpath-conflicts.sh

tags/5.2-RC1
Simon Brandhof 9 年之前
父節點
當前提交
008f29b561
共有 3 個檔案被更改,包括 28 行新增23 行删除
  1. 7
    0
      find-classpath-conflicts.sh
  2. 21
    1
      pom.xml
  3. 0
    22
      run.sh

+ 7
- 0
find-classpath-conflicts.sh 查看文件

@@ -0,0 +1,7 @@
#!/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

+ 21
- 1
pom.xml 查看文件

@@ -297,7 +297,27 @@
<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>


+ 0
- 22
run.sh 查看文件

@@ -1,22 +0,0 @@
#!/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

Loading…
取消
儲存