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

Verification fails for Maven project with multiple modules #601

Open
kaklakariada opened this issue Nov 15, 2024 · 0 comments
Open

Verification fails for Maven project with multiple modules #601

kaklakariada opened this issue Nov 15, 2024 · 0 comments
Labels
bug Unwanted / harmful behavior

Comments

@kaklakariada
Copy link
Collaborator

kaklakariada commented Nov 15, 2024

Running mvn verify on a multi-module maven project fails with the following error message:

E-PK-CORE-90: Could not find .git directory in project-root '/home/user/git/project/sub-module'.

Workarounds

Workaround 1

mvn verify --projects .

Workaround 2

  • Remove PK plugin from sub-modules
  • Add PK plugin only to root module
  • Exclude warning
    W-PK-CORE-151: Pom file '.*' contains no reference to project-keeper-maven-plugin.
    

Proposed fix

  • Require plugin project-keeper-maven-plugin only in pom.xml in root directory.
  • Fail if plugin is present in any other module
@kaklakariada kaklakariada added the bug Unwanted / harmful behavior label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unwanted / harmful behavior
Projects
None yet
Development

No branches or pull requests

1 participant