Skip to content

targetModules tag is not working but command line is working fine #50

@ashisjena

Description

@ashisjena

Characteristic

Issue Type: bug
Reproducibility: always
Severity: major
Tool/Service/Component: 1.3.7
Execution Environment: mac
Reporter: Ashis, ashisjena.talk2u@gmail.com

Description

<plugin>
  <groupId>eu.stamp-project</groupId> 
  <artifactId>pitmp-maven-plugin</artifactId> 
  <version>${pitmp-maven-plugin-version}</version> 
  <configuration> 
    <mutationEngine>descartes</mutationEngine> 
    <targetModules> 
      <param>module-name</param> 
    </targetModules> 
    <avoidCallsTo> 
      <avoidCallsTo>java.util.logging</avoidCallsTo> 
      <avoidCallsTo>org.apache.log4j</avoidCallsTo> 
      <avoidCallsTo>org.slf4j</avoidCallsTo> 
      <avoidCallsTo>org.apache.commons.logging</avoidCallsTo> 
    </avoidCallsTo> 
  </configuration> 
</plugin>

The above is my plugin config.

While running mvn eu.stamp-project:pitmp-maven-plugin:descartes with the tag, the pitmp is trying to run every module in the project.

but mentioning the targetModules as in the below command line it's working as intended and picking only the mentioned modules in the command line.
mvn "-DtargetModules=module-name" eu.stamp-project:pitmp-maven-plugin:descartes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions