Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-504

Maven site fails to run due to non-report goals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-beta-2
    • 3.0-beta-3
    • None
    • None

    Description

      An user just reported me a curious bug when using flexmojos and maven 3....

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0-beta-2:site (default-cli) on project calculator-api: failed to get Reports: The parameters 'filesToTrust' for goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-SNAPSHOT:trust are missing or invalid -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0-beta-2:site (default-cli) on project calculator-api: failed to get Reports
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:88)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:80)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:87)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:315)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      Caused by: org.apache.maven.plugin.MojoExecutionException: failed to get Reports
      at org.apache.maven.plugins.site.DefaultMavenReportExecutor.buildMavenReports(DefaultMavenReportExecutor.java:264)
      at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports(AbstractSiteRenderingMojo.java:208)
      at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:105)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      ... 19 more
      Caused by: org.apache.maven.plugin.PluginParameterException: The parameters 'filesToTrust' for goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-SNAPSHOT:trust are missing or invalid
      at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:514)
      at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:467)
      at org.apache.maven.plugins.site.DefaultMavenReportExecutor.getConfiguredMavenReport(DefaultMavenReportExecutor.java:294)
      at org.apache.maven.plugins.site.DefaultMavenReportExecutor.buildMavenReports(DefaultMavenReportExecutor.java:234)
      ... 23 more

      This goal 'trust' is NOT a Maven report and this user never invokes it, but seems maven-site creeps out with this goal, seems maven is trying to configure it and fail because 'filesToTrust' is required but not configured.

      Since the goal is neither used nor a maven-report it shouldn't affect maven-site at all.

      I will create an IT for this in a few minutes

      Attachments

        Activity

          People

            olamy Olivier Lamy
            velo velo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: