]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5117 fix compatibility of build with maven 3.0.x
authorSimon Brandhof <simon.brandhof@gmail.com>
Fri, 4 Apr 2014 08:08:27 +0000 (10:08 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Fri, 4 Apr 2014 08:08:40 +0000 (10:08 +0200)
sonar-server/pom.xml

index b5a47bdeb163ae164fb758989d5e97e70b9e286d..9563421b4e103874aea94695e96cf22804910de4 100644 (file)
       <version>${project.version}</version>
       <type>test-jar</type>
       <scope>test</scope>
+      <!--
+       bug of maven 3.0.x (maybe 3.1). Fixed in 3.2
+       Scope of transitive dependencies of sonar-core:test-jar is "compile"
+       but should be "test"
+      -->
+      <exclusions>
+        <exclusion>
+          <groupId>ch.qos.logback</groupId>
+          <artifactId>logback-classic</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>ch.qos.logback</groupId>
+          <artifactId>logback-core</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
+    <dependency>
+      <groupId>ch.qos.logback</groupId>
+      <artifactId>logback-classic</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>ch.qos.logback</groupId>
+      <artifactId>logback-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+
+
     <dependency>
       <groupId>org.mockito</groupId>
       <artifactId>mockito-all</artifactId>
     <profile>
       <id>js-tests</id>
       <activation>
-        <property><name>!skipTests</name></property>
+        <property>
+          <name>!skipTests</name>
+        </property>
       </activation>
       <build>
         <plugins>