The hint may in the plural scope_s_ and the fact that an array of string is expected instead of a single string. The ignoredScopes may expect nested tags such as <scope>... </scope> for each element or scope.
Op di 27 dec. 2022 12:13 schreef Andreas Reichel < andr...@manticore-projects.com>: > Greetings. > > Please, I need help since I am stuck: I have a Maven Build which uses the > Enforcer Plugin and runs completely fine, when starting "mvn clean package" > from command line. > However, in Netbeans 16 I can't run that Build (even when using the local > Maven, same as on the command line). I get a strange Maven Enforcer related > error message: > > Failed to execute goal > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce (default) > on project presto-coresql: Unable to parse configuration of mojo > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce for > parameter ignoredScopes: Cannot assign configuration entry 'ignoredScopes' > with value 'test' of type java.lang.String to property of type > java.lang.String[] -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce > (default) on project presto-coresql: Unable to parse configuration of mojo > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce for > parameter ignoredScopes: Cannot assign configuration entry 'ignoredScopes' > with value 'test' of type java.lang.String to property of type > java.lang.String[] > > Unfortunately, I can't switch the Enforcer Plugin off because the POM is > based on Airlift and so out of reach. > > I have attached the full maven output below. > Please how can I work around this? I only want to debug some stuff in the > IDE. > > Thank you a lot in advance. > Cheers > Andreas > > -- > > --- maven-enforcer-plugin:3.0.0-M2:enforce (default) @ presto-coresql --- > > Dependency collection stats: {ConflictMarker.analyzeTime=1, > ConflictMarker.markTime=0, ConflictMarker.nodeCount=173, > ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0, > ConflictIdSorter.conflictIdCount=41, ConflictIdSorter.conflictIdCycleCount=0, > ConflictResolver.totalTime=3, ConflictResolver.conflictItemCount=105, > DefaultDependencyCollector.collectTime=94, > DefaultDependencyCollector.transformTime=4} > > org.apache.maven.plugins:maven-enforcer-plugin:jar:3.0.0-M2: > > org.codehaus.mojo:extra-enforcer-rules:jar:1.1:runtime > > org.apache.maven.shared:maven-dependency-tree:jar:2.2:compile > > org.eclipse.aether:aether-util:jar:0.9.0.M2:compile > > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:compile > > junit:junit:jar:4.11:compile > > org.hamcrest:hamcrest-core:jar:1.3:compile > > classworlds:classworlds:jar:1.1-alpha-2:compile > > commons-codec:commons-codec:jar:1.6:compile > > org.apache.maven.shared:maven-common-artifact-filters:jar:3.0.1:compile > > org.apache.maven.shared:maven-shared-utils:jar:3.1.0:compile > > commons-io:commons-io:jar:2.5:compile > > com.ibm.icu:icu4j:jar:56.1:runtime > > org.apache.maven:maven-artifact:jar:3.0:compile > > org.apache.maven:maven-plugin-api:jar:3.0:compile > > org.apache.maven:maven-model:jar:3.0:compile > > org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile > > org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile > > org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile > > org.apache.maven:maven-core:jar:3.0:compile > > org.apache.maven:maven-settings:jar:3.0:compile > > org.apache.maven:maven-settings-builder:jar:3.0:compile > > org.apache.maven:maven-repository-metadata:jar:3.0:compile > > org.apache.maven:maven-model-builder:jar:3.0:compile > > org.apache.maven:maven-aether-provider:jar:3.0:runtime > > org.sonatype.aether:aether-impl:jar:1.7:compile > > org.sonatype.aether:aether-spi:jar:1.7:compile > > org.sonatype.aether:aether-api:jar:1.7:compile > > org.sonatype.aether:aether-util:jar:1.7:compile > > org.codehaus.plexus:plexus-interpolation:jar:1.14:compile > > org.codehaus.plexus:plexus-classworlds:jar:2.2.3:compile > > org.codehaus.plexus:plexus-component-annotations:jar:1.7.1:compile > > org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile > > org.sonatype.plexus:plexus-cipher:jar:1.4:compile > > org.codehaus.plexus:plexus-utils:jar:3.1.0:compile > > org.apache.maven.enforcer:enforcer-api:jar:3.0.0-M2:compile > > org.apache.maven.enforcer:enforcer-rules:jar:3.0.0-M2:compile > > org.apache.commons:commons-lang3:jar:3.5:compile > > org.beanshell:bsh:jar:2.0b4:compile > > org.apache.maven:maven-compat:jar:3.0:compile > > org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:compile > > Created new class realm > plugin>org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2 > > Importing foreign packages into class realm > plugin>org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2 > > Imported: < project>com.facebook.presto:presto-coresql:0.2-SNAPSHOT > > Populating class realm > plugin>org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2 > > Included: org.apache.maven.plugins:maven-enforcer-plugin:jar:3.0.0-M2 > > Included: org.codehaus.mojo:extra-enforcer-rules:jar:1.1 > > Included: org.apache.maven.shared:maven-dependency-tree:jar:2.2 > > Included: org.eclipse.aether:aether-util:jar:0.9.0.M2 > > Included: junit:junit:jar:4.11 > > Included: org.hamcrest:hamcrest-core:jar:1.3 > > Included: commons-codec:commons-codec:jar:1.6 > > Included: org.apache.maven.shared:maven-common-artifact-filters:jar:3.0.1 > > Included: org.apache.maven.shared:maven-shared-utils:jar:3.1.0 > > Included: commons-io:commons-io:jar:2.5 > > Included: com.ibm.icu:icu4j:jar:56.1 > > Included: org.sonatype.sisu:sisu-inject-bean:jar:1.4.2 > > Included: org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7 > > Included: org.sonatype.aether:aether-util:jar:1.7 > > Included: org.codehaus.plexus:plexus-interpolation:jar:1.14 > > Included: org.codehaus.plexus:plexus-component-annotations:jar:1.7.1 > > Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 > > Included: org.sonatype.plexus:plexus-cipher:jar:1.4 > > Included: org.codehaus.plexus:plexus-utils:jar:3.1.0 > > Included: org.apache.maven.enforcer:enforcer-api:jar:3.0.0-M2 > > Included: org.apache.maven.enforcer:enforcer-rules:jar:3.0.0-M2 > > Included: org.apache.commons:commons-lang3:jar:3.5 > > Included: org.beanshell:bsh:jar:2.0b4 > > Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9 > > Excluded: classworlds:classworlds:jar:1.1-alpha-2 > > Excluded: org.apache.maven:maven-artifact:jar:3.0 > > Excluded: org.apache.maven:maven-plugin-api:jar:3.0 > > Excluded: org.apache.maven:maven-model:jar:3.0 > > Excluded: org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2 > > Excluded: org.apache.maven:maven-core:jar:3.0 > > Excluded: org.apache.maven:maven-settings:jar:3.0 > > Excluded: org.apache.maven:maven-settings-builder:jar:3.0 > > Excluded: org.apache.maven:maven-repository-metadata:jar:3.0 > > Excluded: org.apache.maven:maven-model-builder:jar:3.0 > > Excluded: org.apache.maven:maven-aether-provider:jar:3.0 > > Excluded: org.sonatype.aether:aether-impl:jar:1.7 > > Excluded: org.sonatype.aether:aether-spi:jar:1.7 > > Excluded: org.sonatype.aether:aether-api:jar:1.7 > > Excluded: org.codehaus.plexus:plexus-classworlds:jar:2.2.3 > > Excluded: org.apache.maven:maven-compat:jar:3.0 > > Excluded: org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6 > > Configuring mojo > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce from plugin > realm > ClassRealm[plugin>org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2, > parent: jdk.internal.loader.ClassLoaders$AppClassLoader@277050dc] > > Configuring mojo > 'org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce' with basic > configurator --> > > (s) fail = true > > (s) failFast = false > > (f) ignoreCache = false > > (f) mojoExecution = > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce {execution: > default} > > (s) project = MavenProject: com.facebook.presto:presto-coresql:0.2-SNAPSHOT > @ /home/are/Documents/src/sql/pom.xml > > (s) excludes = [commons-logging:commons-logging-api, cglib:cglib, > junit:junit, com.google.collections:google-collections, > com.google.guava:guava, com.google.code.findbugs:annotations, > org.eclipse.jetty.orbit:javax.servlet, > com.facebook.airlift:discovery-experimental, > com.facebook.airlift:event-experimental, > com.facebook.airlift:http-client-experimental, > com.facebook.airlift:jmx-http-experimental, > com.facebook.airlift:jmx-http-rpc-experimental, > com.facebook.airlift:rack-experimental, > com.facebook.airlift:rack-launcher-experimental, > com.facebook.airlift:rack-packaging-experimental, > com.facebook.airlift:rack-server-base-experimental] > > (s) includes = [com.google.guava:guava:[10.0.1,), junit:junit:[4.11,)] > > (s) version = 3.2.3 > > (s) version = 1.8 > > (f) maxJdkVersion = 1.8 > > (s) excludes = [commons-logging:commons-logging-api, cglib:cglib, > junit:junit, com.google.collections:google-collections, > com.google.guava:guava, com.google.code.findbugs:annotations, > org.eclipse.jetty.orbit:javax.servlet, > com.facebook.airlift:discovery-experimental, > com.facebook.airlift:event-experimental, > com.facebook.airlift:http-client-experimental, > com.facebook.airlift:jmx-http-experimental, > com.facebook.airlift:jmx-http-rpc-experimental, > com.facebook.airlift:rack-experimental, > com.facebook.airlift:rack-launcher-experimental, > com.facebook.airlift:rack-packaging-experimental, > com.facebook.airlift:rack-server-base-experimental] > > (s) includes = [com.google.guava:guava:[10.0.1,), junit:junit:[4.11,)] > > (s) version = 3.2.3 > > (s) version = 1.8 > > (f) maxJdkVersion = 1.8 > > ------------------------------------------------------------------------ > > Reactor Summary: > > > presto-coresql ..................................... FAILURE [ 0.238 s] > > presto-coresql-parser .............................. SKIPPED > > presto-coresql-linter .............................. SKIPPED > > presto-coresql-rewriter ............................ SKIPPED > > ------------------------------------------------------------------------ > > BUILD FAILURE > > ------------------------------------------------------------------------ > > Total time: 0.512 s > > Finished at: 2022-12-27T17:56:32+07:00 > > Final Memory: 12M/50M > > ------------------------------------------------------------------------ > > Failed to execute goal > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce (default) on > project presto-coresql: Unable to parse configuration of mojo > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce for parameter > ignoredScopes: Cannot assign configuration entry 'ignoredScopes' with value > 'test' of type java.lang.String to property of type java.lang.String[] -> > [Help 1] > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce > (default) on project presto-coresql: Unable to parse configuration of mojo > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce for parameter > ignoredScopes: Cannot assign configuration entry 'ignoredScopes' with value > 'test' of type java.lang.String to property of type java.lang.String[] > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:220) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) > > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) > > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154) > > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582) > > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:158) > > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.base/java.lang.reflect.Method.invoke(Method.java:566) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) > > Caused by: org.apache.maven.plugin.PluginConfigurationException: Unable to > parse configuration of mojo > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce for parameter > ignoredScopes: Cannot assign configuration entry 'ignoredScopes' with value > 'test' of type java.lang.String to property of type java.lang.String[] > > at > org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:605) > > at > org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:537) > > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:119) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > > ... 19 more > > Caused by: > org.codehaus.plexus.component.configurator.ComponentConfigurationException: > Cannot assign configuration entry 'ignoredScopes' with value 'test' of type > java.lang.String to property of type java.lang.String[] > > at > org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.failIfNotTypeCompatible(AbstractConfigurationConverter.java:100) > > at > org.codehaus.plexus.component.configurator.converters.composite.ArrayConverter.fromConfiguration(ArrayConverter.java:65) > > at > org.eclipse.sisu.plexus.CompositeBeanHelper.convertProperty(CompositeBeanHelper.java:273) > > at > org.eclipse.sisu.plexus.CompositeBeanHelper.setProperty(CompositeBeanHelper.java:210) > > at > org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:101) > > at > org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:57) > > at > org.codehaus.plexus.component.configurator.converters.composite.AbstractCollectionConverter.fromChildren(AbstractCollectionConverter.java:54) > > at > org.codehaus.plexus.component.configurator.converters.composite.ArrayConverter.fromConfiguration(ArrayConverter.java:52) > > at > org.eclipse.sisu.plexus.CompositeBeanHelper.convertProperty(CompositeBeanHelper.java:273) > > at > org.eclipse.sisu.plexus.CompositeBeanHelper.setProperty(CompositeBeanHelper.java:174) > > at > org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:101) > > at > org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:32) > > at > org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:575) > > ... 22 more > > > > For more information about the errors and possible solutions, please read the > following articles: > > [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/PluginConfigurationException > > > > > > > >