aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/sonar-dev-maven-plugin/src
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/sonar-dev-maven-plugin/src')
-rw-r--r--subprojects/sonar-dev-maven-plugin/src/main/scripts/dev.build.xml12
-rw-r--r--subprojects/sonar-dev-maven-plugin/src/main/scripts/dev.mojos.xml9
2 files changed, 15 insertions, 6 deletions
diff --git a/subprojects/sonar-dev-maven-plugin/src/main/scripts/dev.build.xml b/subprojects/sonar-dev-maven-plugin/src/main/scripts/dev.build.xml
index 9114df8bcff..5709daeb7b6 100644
--- a/subprojects/sonar-dev-maven-plugin/src/main/scripts/dev.build.xml
+++ b/subprojects/sonar-dev-maven-plugin/src/main/scripts/dev.build.xml
@@ -392,11 +392,11 @@
<attribute name="args" default=""/>
<sequential>
- <exec failonerror="@{failonerror}" executable="${maven.home}/bin/mvn.bat" osfamily="Windows">
+ <exec failonerror="@{failonerror}" executable="${mavenHome}/bin/mvn.bat" osfamily="Windows">
<arg line="-f @{pom}"/>
<arg line="@{args}"/>
</exec>
- <exec failonerror="@{failonerror}" executable="${maven.home}/bin/mvn" osfamily="unix">
+ <exec failonerror="@{failonerror}" executable="${mavenHome}/bin/mvn" osfamily="unix">
<arg line="-f @{pom}"/>
<arg line="@{args} "/>
</exec>
@@ -409,7 +409,7 @@
<attribute name="pom"/>
<sequential>
- <exec failonerror="@{failonerror}" executable="${maven.home}/bin/mvn.bat" osfamily="Windows">
+ <exec failonerror="@{failonerror}" executable="${mavenHome}/bin/mvn.bat" osfamily="Windows">
<arg line="org.codehaus.mojo:sonar-maven-plugin:1.0-beta-2:sonar @{args} -B -e"/>
<arg line="-f @{pom}"/>
<arg value='-Dsonar.jdbc.url="${jdbcUrl}"'/>
@@ -418,7 +418,7 @@
<arg value="-Dsonar.jdbc.username=${jdbcUsername}"/>
<arg value="-Dsonar.jdbc.password=${jdbcPassword}"/>
</exec>
- <exec failonerror="@{failonerror}" executable="${maven.home}/bin/mvn" osfamily="unix">
+ <exec failonerror="@{failonerror}" executable="${mavenHome}/bin/mvn" osfamily="unix">
<arg line="org.codehaus.mojo:sonar-maven-plugin:1.0-beta-2:sonar @{args} -B -e"/>
<arg line="-f @{pom}"/>
<arg value='-Dsonar.jdbc.url=${jdbcUrl}'/>
@@ -438,11 +438,11 @@
<attribute name="file"/>
<sequential>
- <exec failonerror="@{failonerror}" executable="${maven.home}/bin/mvn.bat" osfamily="Windows">
+ <exec failonerror="@{failonerror}" executable="${mavenHome}/bin/mvn.bat" osfamily="Windows">
<arg
line="install:install-file -DgroupId=@{groupId} -DartifactId=@{artifactId} -Dversion=@{version} -Dpackaging=@{packaging} -Dfile=@{file}"/>
</exec>
- <exec failonerror="@{failonerror}" executable="${maven.home}/bin/mvn" osfamily="unix">
+ <exec failonerror="@{failonerror}" executable="${mavenHome}/bin/mvn" osfamily="unix">
<arg
line="install:install-file -DgroupId=@{groupId} -DartifactId=@{artifactId} -Dversion=@{version} -Dpackaging=@{packaging} -Dfile=@{file}"/>
</exec>
diff --git a/subprojects/sonar-dev-maven-plugin/src/main/scripts/dev.mojos.xml b/subprojects/sonar-dev-maven-plugin/src/main/scripts/dev.mojos.xml
index 2b74f4d76ad..01fa1ba7844 100644
--- a/subprojects/sonar-dev-maven-plugin/src/main/scripts/dev.mojos.xml
+++ b/subprojects/sonar-dev-maven-plugin/src/main/scripts/dev.mojos.xml
@@ -383,6 +383,15 @@
<type>java.lang.File</type>
<defaultValue>${basedir}</defaultValue>
</parameter>
+ <parameter>
+ <name>mavenHome</name>
+ <description>Maven home directory.</description>
+ <property>mavenHome</property>
+ <required>true</required>
+ <expression>${sonar.mavenHome}</expression>
+ <type>java.lang.File</type>
+ <defaultValue>${maven.home}</defaultValue>
+ </parameter>
</parameters>
</mojo>