Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7584

The properties-maven-plugin fails to load project properties

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0-alpha-2
    • 4.0.0-alpha-3, 4.0.0
    • None
    • None

    Description

      The read-project-properties mojo fails with the following exception:

      [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
       

       

      The WrapperProperties do not support the load operation.

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              gnodet Guillaume Nodet
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: