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

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

Open
RoRoche opened this issue Feb 23, 2021 · 1 comment
Open

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

RoRoche opened this issue Feb 23, 2021 · 1 comment

Comments

@RoRoche
Copy link

RoRoche commented Feb 23, 2021

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.

@yegor256
Copy link
Owner

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

yegor256 added a commit that referenced this issue Jul 24, 2022
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