Skip to content

Commit 0706a66

Browse files
Justin Jiajustinplus
Justin Jia
authored andcommitted
Skip compilation when skip scoverage
1 parent b35549d commit 0706a66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/scoverage/plugin/SCoveragePreCompileMojo.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ public void execute() throws MojoExecutionException
219219

220220
Properties projectProperties = project.getProperties();
221221

222+
// for maven-compiler-plugin (compile), scala-maven-plugin (ompile)
223+
setProperty( projectProperties, "maven.main.skip", "true" );
224+
222225
// for maven-resources-plugin (testResources), maven-compiler-plugin (testCompile),
223226
// sbt-compiler-maven-plugin (testCompile), scala-maven-plugin (testCompile),
224227
// maven-surefire-plugin and scalatest-maven-plugin

0 commit comments

Comments
 (0)