Skip to content

Commit a9de811

Browse files
author
Justin Jia
authored
Skip compilation when skip scoverage
1 parent e81c12d commit a9de811

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
@@ -212,6 +212,9 @@ public void execute() throws MojoExecutionException
212212

213213
Properties projectProperties = project.getProperties();
214214

215+
// for maven-compiler-plugin (compile), scala-maven-plugin (ompile)
216+
setProperty( projectProperties, "maven.main.skip", "true" );
217+
215218
// for maven-resources-plugin (testResources), maven-compiler-plugin (testCompile),
216219
// sbt-compiler-maven-plugin (testCompile), scala-maven-plugin (testCompile),
217220
// maven-surefire-plugin and scalatest-maven-plugin

0 commit comments

Comments
 (0)