Skip to content

Fail on java 8 mix scala2.11 project #91

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
shadowinlife opened this issue Apr 6, 2021 · 3 comments
Closed

Fail on java 8 mix scala2.11 project #91

shadowinlife opened this issue Apr 6, 2021 · 3 comments

Comments

@shadowinlife
Copy link

Failed to execute goal org.scoverage:scoverage-maven-plugin:1.4.1:report (default-cli) on project dla-spark-repl: An error has occurred in SCoverage report generation: Report generation exception: No source root found for '/xxx/dla-spark-plugins/dla-spark-repl/src/main/scala/com/aliyun/dla/repl/package.scala' (source roots: '/xxx/dla-spark-plugins/dla-spark-repl/src/main/java/') -> [Help 1]

In the project, there is java source directory and scala source directory. But it seems that scoverage can't find the right way

 <plugin>
                <groupId>org.scoverage</groupId>
                <artifactId>scoverage-maven-plugin</artifactId>
                <version>1.4.1</version>
                <configuration>
                    <scalaVersion>2.11.12</scalaVersion>
                    <aggregate>true</aggregate>
                </configuration>
            </plugin>
@Quentame
Copy link

Quentame commented Aug 19, 2021

Hi @shadowinlife !

How did you solve the issue ?

I am getting almost the same:

[ERROR] Failed to execute goal org.scoverage:scoverage-maven-plugin:1.4.1.:report (default-cli) on project core: An error has occurred in SCoverage report generation: Report generation exception: No source root found for 'C:\XXX\project-src\core\src\test\scala\com\XXX\XXX\configuration\ElasticSearchConfTest.scala' (source roots: 'C:\XXX\project-src\core\src\main\scala\') -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.scoverage:scoverage-maven-plugin:1.4.1:report (default-cli) on project core: An error has occurred in SCoverage report generation: Report generation exception 

Versions:
lib: 1.4.1
Java: 8
Scala: 2.11

Thanks !

@steinhae
Copy link

steinhae commented Aug 5, 2022

This solved it for me.
#38 (comment)

@shadowinlife
Copy link
Author

I

Hi, sorry for reply this message so late

I have not resolved this issue, but changed to sbt and it seems that sbt can find right root source when use java mix scala source folder

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

3 participants