arch-unit-maven-plugin icon indicating copy to clipboard operation
arch-unit-maven-plugin copied to clipboard

Plugin error when updating from 4.0.0 to 4.0.1

Open wideberg opened this issue 1 year ago • 1 comments

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 :

  • [x] 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"

wideberg avatar Feb 05 '24 08:02 wideberg

thanks for reporting the issue, it was actually introduced by https://github.com/societe-generale/arch-unit-maven-plugin/commit/89c2de1321136ad50938f38b521050dfdef4248c , which will have to be reworked.

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

vincent-fuchs avatar Feb 06 '24 03:02 vincent-fuchs