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

Plugin error when updating from 4.0.0 to 4.0.1 #69

Open
1 of 3 tasks
wideberg opened this issue Feb 5, 2024 · 1 comment
Open
1 of 3 tasks

Plugin error when updating from 4.0.0 to 4.0.1 #69

wideberg opened this issue Feb 5, 2024 · 1 comment

Comments

@wideberg
Copy link

wideberg commented Feb 5, 2024

Summary

I've setup a configuration with plugin 4.0.0 that seems to works pretty well. However, I want the new feature fallbackToRootDirectoryso I updated to 4.0.1 but then the plugin fails.

Type of Issue

It is a :

  • bug
  • request
  • question regarding the documentation

Motivation

Current Behavior

mvn arch-unit:arch-test

Running the normal plugin and goal throws the following exception:

[ERROR] Failed to execute goal com.societegenerale.commons:arch-unit-maven-plugin:4.0.1:arch-test (default-cli) on project rider-parent: Unable to retrieve component configurator include-project-dependencies for configuration of mojo com.societegenerale.commons:arch-unit-maven-plugin:4.0.1:arch-test: java.util.NoSuchElementException
[ERROR]       role: org.codehaus.plexus.component.configurator.ComponentConfigurator
[ERROR]   roleHint: include-project-dependencies
[ERROR] -> [Help 1]

Expected Behavior

Steps to Reproduce (for bugs)

Check out this example repository and change the plugin version from 4.0.0 to 4.0.1. I was able to reproduce the issue with this simple project that basically contains nothing else.

https://github.com/moneaOrg/archunit-example

Run with mvn arch-unit:arch-test

Your Environment

  • Version used: 4.0.1
  • OS and version: Mac Sonora 14.2.1
  • Version of libs used:
mvn -version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /opt/homebrew/Cellar/maven/3.9.6/libexec
Java version: 21.0.1, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk/21.0.1/libexec/openjdk.jdk/Contents/Home
Default locale: en_SE, platform encoding: UTF-8
OS name: "mac os x", version: "14.2.1", arch: "aarch64", family: "mac"
@vincent-fuchs
Copy link
Contributor

thanks for reporting the issue, it was actually introduced by 89c2de1 , which will have to be reworked.

In the meantime, I rolled back the commit. fix is available in 4.0.2

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

2 participants