Skip to content

Commit bbe886d

Browse files
committed
allow picking the git provider
1 parent 8ca1394 commit bbe886d

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

pom.xml

+15-4
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
<project.build.outputEncoding>UTF-8</project.build.outputEncoding>
9090
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
9191
<sonatypeOssDistMgmtSnapshotsUrl>https://oss.sonatype.org/content/repositories/snapshots/</sonatypeOssDistMgmtSnapshotsUrl>
92+
<git.provider>git</git.provider>
9293
</properties>
9394

9495
<build>
@@ -149,9 +150,9 @@
149150
<configuration>
150151
<mavenExecutorId>forked-path</mavenExecutorId>
151152
<useReleaseProfile>false</useReleaseProfile>
152-
<arguments>-Pcloudbees-oss-release</arguments>
153+
<arguments>-P+cloudbees-oss-release ${arguments}</arguments>
153154
<providerImplementations>
154-
<git>jgit</git>
155+
<git>${git.provider}</git>
155156
</providerImplementations>
156157
</configuration>
157158
<dependencies>
@@ -160,14 +161,19 @@
160161
<artifactId>maven-scm-provider-jgit</artifactId>
161162
<version>1.9</version>
162163
</dependency>
163-
</dependencies>
164+
<dependency>
165+
<groupId>org.apache.maven.scm</groupId>
166+
<artifactId>maven-scm-provider-gitexe</artifactId>
167+
<version>1.9</version>
168+
</dependency>
169+
</dependencies>
164170
</plugin>
165171
<plugin>
166172
<artifactId>maven-scm-plugin</artifactId>
167173
<version>1.9</version>
168174
<configuration>
169175
<providerImplementations>
170-
<git>jgit</git>
176+
<git>${git.provider}</git>
171177
</providerImplementations>
172178
</configuration>
173179
<dependencies>
@@ -176,6 +182,11 @@
176182
<artifactId>maven-scm-provider-jgit</artifactId>
177183
<version>1.9</version>
178184
</dependency>
185+
<dependency>
186+
<groupId>org.apache.maven.scm</groupId>
187+
<artifactId>maven-scm-provider-gitexe</artifactId>
188+
<version>1.9</version>
189+
</dependency>
179190
</dependencies>
180191
</plugin>
181192
<plugin>

0 commit comments

Comments
 (0)