]> source.dussan.org Git - sonarqube.git/commitdiff
Do not support maven 3.3.x (yet)
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 30 Mar 2015 21:01:42 +0000 (23:01 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 30 Mar 2015 21:02:01 +0000 (23:02 +0200)
Fail-fast instead of failing with strange message in NPM (frontend-m-p)

pom.xml

diff --git a/pom.xml b/pom.xml
index 055a984fbd38e4d73cb787b68ee2e7fc4ab56635..0a42ea7e83396480d7c2e1d055c5d259da00f289 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                   <version>${jdk.min.version}</version>
                 </requireJavaVersion>
                 <requireMavenVersion>
-                  <message>To build this project Maven ${maven.min.version} (or upper) is required. Please install it.
+                  <message>Maven ${maven.min.version} to 3.2.x is required.
                   </message>
-                  <version>${maven.min.version}</version>
+                  <!-- maven 3.3.1 is not supported because of frontend-maven-plugin :
+                  https://github.com/eirslett/frontend-maven-plugin/issues/184
+                  https://github.com/eirslett/frontend-maven-plugin/commit/c21b91cc91b8a4f329ad48f6fc1f6269ad0f1f5d
+                  Upgrading to frontend-m-p 0.0.23 drops support of maven 3.0, which is currently the reference version
+                  used at SonarSource.
+                  -->
+                  <version>[${maven.min.version},3.3)</version>
                 </requireMavenVersion>
                 <bannedDependencies>
                   <!-- See SONAR-2512 -->