[ 
http://jira.codehaus.org/browse/MSITE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235649#action_235649
 ] 

Marvin Froeder commented on MSITE-504:
--------------------------------------

Test case for the problem:
{code}
Index: pom.xml
===================================================================
--- pom.xml     (revision 998149)
+++ pom.xml     (working copy)
@@ -145,6 +145,13 @@
         <role>Lithuanian translator</role>
       </roles>
     </contributor>
+    <contributor>
+      <name>Marvin Froeder</name>
+      <email>velo...@gmail.com</email>
+      <roles>
+        <role>msite-504</role>
+      </roles>
+    </contributor>
   </contributors>
 
   <prerequisites>
Index: src/it/MSITE-504/maven-plugin/pom.xml
===================================================================
--- src/it/MSITE-504/maven-plugin/pom.xml       (revision 0)
+++ src/it/MSITE-504/maven-plugin/pom.xml       (revision 0)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>msite-504</groupId>
+    <artifactId>parent</artifactId>
+    <version>1.0</version>
+    <relativePath>../pom.xml</relativePath>
+  </parent>
+
+  <artifactId>maven-plugin</artifactId>
+
+  <packaging>maven-plugin</packaging>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>3.0-beta-3</version>
+    </dependency>
+  </dependencies>
+</project>
\ No newline at end of file

Property changes on: src\it\MSITE-504\maven-plugin\pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: 
src/it/MSITE-504/maven-plugin/src/main/java/msite504/mavenplugin/MyMojo.java
===================================================================
--- 
src/it/MSITE-504/maven-plugin/src/main/java/msite504/mavenplugin/MyMojo.java    
    (revision 0)
+++ 
src/it/MSITE-504/maven-plugin/src/main/java/msite504/mavenplugin/MyMojo.java    
    (revision 0)
@@ -0,0 +1,48 @@
+package msite504.mavenplugin;
+
+/*
+ * Copyright 2001-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+
+/**
+ * Goal which touches a timestamp file.
+ * 
+ * @goal touch
+ * @phase process-sources
+ */
+public class MyMojo
+    extends AbstractMojo
+{
+    /**
+     * Location of the file.
+     * 
+     * @parameter
+     * @required
+     */
+    private File outputDirectory;
+
+    public void execute()
+        throws MojoExecutionException
+    {
+        // do nothing
+    }
+}

Property changes on: 
src\it\MSITE-504\maven-plugin\src\main\java\msite504\mavenplugin\MyMojo.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: src/it/MSITE-504/pom.xml
===================================================================
--- src/it/MSITE-504/pom.xml    (revision 0)
+++ src/it/MSITE-504/pom.xml    (revision 0)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>msite-504</groupId>
+  <artifactId>parent</artifactId>
+  <version>1.0</version>
+  <packaging>pom</packaging>
+
+  <modules>
+    <module>maven-plugin</module>
+    <module>maven-plugin-consumer</module>
+  </modules>
+
+  <prerequisites>
+    <maven>3.0</maven>
+  </prerequisites>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-site-plugin</artifactId>
+          <version>@project.version@</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-project-info-reports-plugin</artifactId>
+          <version>@projectInfoReportsPluginVersion@</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+
+</project>
\ No newline at end of file

Property changes on: src\it\MSITE-504\pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: src/it/MSITE-504/maven-plugin-consumer/pom.xml
===================================================================
--- src/it/MSITE-504/maven-plugin-consumer/pom.xml      (revision 0)
+++ src/it/MSITE-504/maven-plugin-consumer/pom.xml      (revision 0)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>msite-504</groupId>
+    <artifactId>parent</artifactId>
+    <version>1.0</version>
+    <relativePath>../pom.xml</relativePath>
+  </parent>
+
+  <artifactId>maven-plugin-consumer</artifactId>
+
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>msite-504</groupId>
+        <artifactId>maven-plugin</artifactId>
+        <version>1.0</version>
+      </plugin>
+    </plugins>
+  </reporting>
+
+</project>
\ No newline at end of file

Property changes on: src\it\MSITE-504\maven-plugin-consumer\pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: src/it/MSITE-504/invoker.properties
===================================================================
--- src/it/MSITE-504/invoker.properties (revision 0)
+++ src/it/MSITE-504/invoker.properties (revision 0)
@@ -0,0 +1 @@
+invoker.goals=install site
\ No newline at end of file

Property changes on: src\it\MSITE-504\invoker.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain


{code}

This plugin has no maven-report, but reproduces quite well my problem.

VELO

> Maven site fails to run due to non-report goals
> -----------------------------------------------
>
>                 Key: MSITE-504
>                 URL: http://jira.codehaus.org/browse/MSITE-504
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0-beta-2
>            Reporter: Marvin Froeder
>
> An user just reported me a curious bug when using flexmojos and maven 3.... 
> {quote}
> [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
> {quote}
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to