qulice icon indicating copy to clipboard operation
qulice copied to clipboard

`mvn qulice:check` in a Maven project with submodules doesn't work

Open RoRoche opened this issue 4 years ago • 1 comments

Hi,

I'm trying to setup qulice in a Maven project using submodules, with the following tree view:

my_project/
├── common/
│   └── pom.xml
├── some_utils/
│   └── pom.xml
├── testing/
│   └── pom.xml
└── pom.xml
└── LICENSE.txt

I declare qulice in the my_project/pom.xml such as:

<project>
  ...
  <build>
    ...
    <plugins>
      ...
      <plugin>
        <groupId>com.qulice</groupId>
        <artifactId>qulice-maven-plugin</artifactId>
        <configuration>
          <license>file:${basedir}/LICENSE.txt</license>
        </configuration>
        <version>0.18.19</version>
        <executions>
          <execution>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>

While running the command:

mvn qulice:check

it ends with the following error message:

[ERROR] Failed to execute goal com.qulice:qulice-maven-plugin:0.18.19:check (default-cli) on project my_project: Execution default-cli of goal com.qulice:qulice-maven-plugin:0.18.19:check failed: org.apache.maven.plugin.MojoExecutionException: Found duplicate classes/resources
  • Are submodules supported by qulice Maven plugin, and do I miss some configuration?
  • Should I configure qulice for each submodule?

Thanks in advance. Regards. Romain.

RoRoche avatar Feb 23 '21 18:02 RoRoche

@RoRoche yes, they are supported. See how Qulice is used in itself :)

yegor256 avatar Jul 24 '22 12:07 yegor256