Skip to content
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

Scoverage-maven no longer works with Scala-maven-plugin version 4+ #68

Closed
aseigneurin opened this issue Mar 29, 2019 · 5 comments
Closed

Comments

@aseigneurin
Copy link

The following error appears:

Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:4.0.1:compile failed: A required class was missing while executing net.alchim31.maven:scala-maven-plugin:4.0.1:compile: scala/xml/NamespaceBinding

This is when using:

  • scoverage-maven-plugin version 1.3.0
  • scala-maven-plugin version 4.0.1

It appears to me that scala-maven-plugin no longer depends on scala-xml (I read something along these lines in scoverage/scalac-scoverage-plugin#225.

Let me know if I can provide additional information to help fix this issue.

@gslowikowski
Copy link
Member

Hi @aseigneurin

Quick workaround is to use latest (1.4.0-M5 now) scalac plugin version, e.g.:

            <plugin>
                <groupId>org.scoverage</groupId>
                <artifactId>scoverage-maven-plugin</artifactId>
                <version>${scoverage.plugin.version}</version>
                <configuration>
                    <scalacPluginVersion>1.4.0-M5</scalacPluginVersion>
                    <highlighting>true</highlighting>
                </configuration>
            </plugin>

Proper solution would be to release Maven plugin version 1.4.0-M5 (using this version of scalac plugin internally).

@gslowikowski
Copy link
Member

Sorry, unfortunately the workaround does not work. Report is not generated.

@gslowikowski
Copy link
Member

1.4.0-SNAPSHOT snapshot deployed. Please verify if it works for you with new scala-maven-plugin versions.

@gslowikowski
Copy link
Member

Version 1.4.0-M5 released. M5, because it supports Scala 2.13.0-M5.

@aseigneurin
Copy link
Author

Sorry for the delay. I can confirm the issue is resolved with 1.4.0-M5.

Thanks for your help.

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