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

Can't run dspot-maven version 2.1.1 on Maven Multimodule project #829

Closed
nicolabertazzo opened this issue Jul 11, 2019 · 5 comments
Closed
Assignees
Labels
bug maven-plugin This issue is related to the module DSpot - Maven

Comments

@nicolabertazzo
Copy link
Contributor

nicolabertazzo commented Jul 11, 2019

Characteristics

  • Issue Type: bug
  • Reproducibility: always
  • Severity: major,crash
  • Tool/Service/Component: dspot-maven, >2.1.0
  • Execution Environment: linux, ubuntu
  • Reporter: @nicolabertazzo

Description

My goal is to execute dspot in all the module of a Multimodule Maven project.
I configure the parent pom.xml and execute dspot on it.
If i use dspot 2.0.0 or 2.1.0 it works.
If i use dspot 2.1.1 it fails with these error:

[ERROR] Failed to execute goal eu.stamp-project:dspot-maven:2.1.1:amplify-unit-tests (default-cli) on project parent: Execution default-cli of goal eu.stamp-project:dspot-maven:2.1.2-SNAPSHOT:amplify-unit-tests failed: eu.stamp_project.utils.options.check.InputErrorException: Error in the provided input. Please check your properties file and your command-line options. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

Steps to reproduce

cd joram mvn clean eu.stamp-project:dspot-maven:amplify-unit-tests

if you change dspot version to 2.0.0 or 2.1.0 it works (joram/pom.xml row 204).

Help on issue template

Preview to follow the link or open file .github/ISSUE_DOC.md

@nicolabertazzo nicolabertazzo added bug maven-plugin This issue is related to the module DSpot - Maven labels Jul 11, 2019
@nicolabertazzo nicolabertazzo changed the title Can't run dspot-maven version 2.1.1 on Maven Multimodule project Can't run dspot-maven version 2.1.0 on Maven Multimodule project Jul 11, 2019
@nicolabertazzo nicolabertazzo changed the title Can't run dspot-maven version 2.1.0 on Maven Multimodule project Can't run dspot-maven version 2.1.1 on Maven Multimodule project Jul 11, 2019
@danglotb
Copy link
Member

It is because DSpot has been developed in a way that it targets one module at the time.

I'm gonna add a command-line option that specifies that you want to run DSpot on all modules.

But I'm kind of confused. I'm not sure it is the best way to use DSpot.

I did run it on all the modules of Joram, but you have a lot of errors that come up because of modules without any test.

There is some issue with the way that DSpot checks the input.

I'm gonna work on that, at the same time than #826

@danglotb danglotb self-assigned this Jul 11, 2019
@danglotb
Copy link
Member

I just opened #831 that add new command line option for the maven plugin:

-Drun-on-all-modules: DSpot will be executed on all modules that he found.

However, some errors will appear.

The other way to do it, he to specify a properties file and the property targetModule.

@nicolabertazzo
Copy link
Contributor Author

Ok I'll try it.

Nicola

@danglotb
Copy link
Member

Hi @nicolabertazzo

Any news about this issue?

@nicolabertazzo
Copy link
Contributor Author

I execute some tests on joram project and it looks like they are ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug maven-plugin This issue is related to the module DSpot - Maven
Projects
None yet
Development

No branches or pull requests

2 participants