[
https://issues.apache.org/jira/browse/MNG-7584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17625330#comment-17625330
]
ASF GitHub Bot commented on MNG-7584:
-------------------------------------
gnodet commented on PR #856:
URL: https://github.com/apache/maven/pull/856#issuecomment-1294047030
> Do we have three the same or similar classes?
We have 3 copies of the `WrapperProperties`, `WrapperList`. Those are non
public classes used in the v3 models which wraps the new immutable v4 models.
I made copies in order to not add dependencies to some _utility_ module.
We also have 4 copies of `ImmutableCollections` (those are non public
classes used in the new v4 models).
I've created https://issues.apache.org/jira/browse/MNG-7585 to try to find a
way to get rid of those duplicates.
> The properties-maven-plugin fails to load project properties
> ------------------------------------------------------------
>
> Key: MNG-7584
> URL: https://issues.apache.org/jira/browse/MNG-7584
> Project: Maven
> Issue Type: Task
> Affects Versions: 4.0.0-alpha-2
> Reporter: Guillaume Nodet
> Assignee: Guillaume Nodet
> Priority: Major
> Fix For: 4.0.0-alpha-3
>
>
> The {{read-project-properties}} mojo fails with the following exception:
> {code:java}
> [ERROR] Failed to execute goal
> org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties
> (init-camel-schema-version-property-from-file) on project camel-spring-xml:
> Execution init-camel-schema-version-property-from-file of goal
> org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties
> failed.: UnsupportedOperationException -> [Help
> 1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal
> org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties
> (init-camel-schema-version-property-from-file) on project camel-spring-xml:
> Execution init-camel-schema-version-property-from-file of goal
> org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties
> failed. at
> org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:385)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:361)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:232)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:188)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.access$000(MojoExecutor.java:78)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor$1.run(MojoExecutor.java:179)
> at
> org.apache.maven.buildcache.BuildCacheMojosExecutionStrategy.execute(BuildCacheMojosExecutionStrategy.java:132)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:174)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:112)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:64)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:141)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:341)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:248) at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:158) at
> org.apache.maven.cli.DaemonMavenCli.execute(DaemonMavenCli.java:682) at
> org.apache.maven.cli.DaemonMavenCli.doMain(DaemonMavenCli.java:234) at
> org.apache.maven.cli.DaemonMavenCli.main(DaemonMavenCli.java:210) at
> org.mvndaemon.mvnd.daemon.Server.handle(Server.java:572) at
> org.mvndaemon.mvnd.daemon.Server.client(Server.java:256) at
> org.mvndaemon.mvnd.daemon.Server.accept(Server.java:224) at
> java.base/java.lang.Thread.run(Thread.java:833)Caused by:
> org.apache.maven.plugin.PluginExecutionException: Execution
> init-camel-schema-version-property-from-file of goal
> org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties
> failed. at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:165)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:380)
> ... 21 common frames omittedCaused by:
> java.lang.UnsupportedOperationException: null at
> org.apache.maven.model.WrapperProperties.load(WrapperProperties.java:318)
> at
> org.codehaus.mojo.properties.ReadPropertiesMojo.execute(ReadPropertiesMojo.java:87)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:155)
> ... 22 common frames omitted
> {code}
>
> The {{WrapperProperties}} do not support the {{load}} operation.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)