You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two classes inside target/generated-sources/api/src/main/java matching my ArchUnitRul that I'd like to filter.
In my multi-module project, I used this in the parent-pom as well as the sub-module pom.xml:
[ERROR] Failed to execute goal com.societegenerale.commons:arch-unit-maven-plugin:2.9.2:arch-test (arch-test) on project foo: String index out of range: -1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.societegenerale.commons:arch-unit-maven-plugin:2.9.2:arch-test (arch-test) on project foo: String index out of range: -1
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:274)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:196)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:160)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.mvndaemon.mvnd.builder.SmartBuilderImpl.buildProject(SmartBuilderImpl.java:178)
at org.mvndaemon.mvnd.builder.SmartBuilderImpl$ProjectBuildTask.run(SmartBuilderImpl.java:198)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.maven.plugin.MojoFailureException: String index out of range: -1
at com.societegenerale.commons.plugin.maven.ArchUnitMojo.execute(ArchUnitMojo.java:98)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:271)
... 11 common frames omitted
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.base/java.lang.String.substring(String.java:1837)
at com.societegenerale.commons.plugin.service.JavaFileParser.extractClassName(JavaFileParser.java:124)
at com.societegenerale.commons.plugin.service.JavaFileParser.parse(JavaFileParser.java:44)
at com.societegenerale.commons.plugin.service.ExcludedPathsPreProcessor.determineClassNames(ExcludedPathsPreProcessor.java:194)
at com.societegenerale.commons.plugin.service.ExcludedPathsPreProcessor.processExcludedPaths(ExcludedPathsPreProcessor.java:65)
at com.societegenerale.commons.plugin.service.RuleInvokerService.<init>(RuleInvokerService.java:49)
at com.societegenerale.commons.plugin.maven.ArchUnitMojo.execute(ArchUnitMojo.java:94)
... 13 common frames omitted
Summary
There are two classes inside
target/generated-sources/api/src/main/java
matching my ArchUnitRul that I'd like to filter.In my multi-module project, I used this in the parent-pom as well as the sub-module pom.xml:
But I get below error. Unfortunately, I cannot tell which of my classes causes the exception.
Type of Issue
It is a :
Motivation
Current Behavior
Expected Behavior
See: #44
No exception, and generated code filtered.
Steps to Reproduce (for bugs)
See above
Your Environment
The text was updated successfully, but these errors were encountered: