Skip to content

maven-scala-plugin not supported #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
goal1860 opened this issue Mar 9, 2023 · 2 comments
Closed

maven-scala-plugin not supported #123

goal1860 opened this issue Mar 9, 2023 · 2 comments

Comments

@goal1860
Copy link

goal1860 commented Mar 9, 2023

After hours of trial and err I found it will skip report generation if maven-scala plugin is used to compile scala code:

<plugin>
        <groupId>org.scala-tools</groupId>
        <artifactId>maven-scala-plugin</artifactId>
        <version>2.15.2</version>
        <executions>
          <execution>
            <goals>
              <goal>compile</goal>
              <goal>testCompile</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <scalaVersion>${scala.version}</scalaVersion>
          <!--args>
            <arg>-target:jvm-1.8</arg>
          </args-->
        </configuration>
      </plugin>

I had to use alchim31 maven plugin to make it work:

<plugin>
        <groupId>net.alchim31.maven</groupId>
        <artifactId>scala-maven-plugin</artifactId>
        <version>3.2.2</version>
        <executions>
          <execution>
            <id>default-sbt-compile</id>
            <goals>
              <goal>compile</goal>
              <goal>testCompile</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

Is this documented somewhere I missed or actually a bug?
I posted more details on stackoverflow:
https://stackoverflow.com/questions/75681259/scoverage-maven-plugin-does-not-generate-html-report/75682545#75682545

@jozic
Copy link
Collaborator

jozic commented Oct 28, 2023

just curious, is this some kind of legacy project you were trying to add scoverage to? as the latest version of maven-scala-plugin is from 2011. Can it compile Scala versions supported by this plugin?

@jozic
Copy link
Collaborator

jozic commented Oct 28, 2023

btw, README has this documented here, so I will close this. Please send a PR to update documentation if you think it can be better. Thanks.

@jozic jozic closed this as not planned Won't fix, can't repro, duplicate, stale Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants