File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed
src/main/java/org/scalatest/tools/maven Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 11
11
<groupId >org.scalatest</groupId >
12
12
<artifactId >scalatest-maven-plugin</artifactId >
13
13
<packaging >maven-plugin</packaging >
14
- <version >2.0.2 </version >
14
+ <version >2.0.3 </version >
15
15
<name >ScalaTest Maven Plugin</name >
16
16
<description >Integrates ScalaTest into Maven</description >
17
17
73
73
</developer >
74
74
</developers >
75
75
76
+ <distributionManagement >
77
+ <repository >
78
+ <id >central</id >
79
+ <name >AppsFlyer Artifactory-releases</name >
80
+ <url >https://artifactory.appsflyer.com:443/artifactory/maven</url >
81
+ </repository >
82
+ <snapshotRepository >
83
+ <id >snapshots</id >
84
+ <name >AppsFlyer Artifactory-snapshots</name >
85
+ <url >https://artifactory.appsflyer.com/artifactory/maven-snapshots/</url >
86
+ </snapshotRepository >
87
+ </distributionManagement >
88
+
76
89
<dependencies >
77
90
<dependency >
78
91
<groupId >org.apache.maven</groupId >
215
228
<execution >
216
229
<id >sign-artifacts</id >
217
230
<phase >verify</phase >
231
+ <configuration >
232
+ <skip >true</skip >
233
+ </configuration >
218
234
<goals >
219
235
<goal >sign</goal >
220
236
</goals >
Original file line number Diff line number Diff line change @@ -224,6 +224,13 @@ abstract class AbstractScalaTestMojo extends AbstractMojo {
224
224
*/
225
225
double spanScaleFactor = 1.0 ;
226
226
227
+ /**
228
+ * The current working directory for forked process. Optional. If not specified, basedir will be used.
229
+ *
230
+ * @parameter property="workingDirectory"
231
+ */
232
+ String workingDirectory ;
233
+
227
234
// runScalaTest is called by the concrete mojo subclasses TODO: make it protected and others too
228
235
// Returns true if all tests pass
229
236
boolean runScalaTest (String [] args ) throws MojoFailureException {
@@ -259,7 +266,11 @@ private boolean runWithoutForking(String[] args) {
259
266
private boolean runForkingOnce (String [] args ) throws MojoFailureException {
260
267
261
268
final Commandline cli = new Commandline ();
262
- cli .setWorkingDirectory (project .getBasedir ());
269
+ if ((this .workingDirectory == null || this .workingDirectory .isEmpty ())) {
270
+ cli .setWorkingDirectory (project .getBasedir ());
271
+ } else {
272
+ cli .setWorkingDirectory (workingDirectory );
273
+ }
263
274
cli .setExecutable (getJvm ());
264
275
265
276
// Set up environment
You can’t perform that action at this time.
0 commit comments