Hi

Run the build with the -X command line option to get debugging output.
That should help you to find out which report is causing the problem.

Leandro skrev 2011-04-27 16:20:
> Hi,
> 
> I have a multi-project module with maven 3.0.2
> 
> I am trying to setup the site generation after all compile dependencies are
> now resolved and no compile error is caused during mvn compile or mvn
> install or mvn deploy.
> 
> When I do a mvn site or mvn site:stage I get a compile error, anyone has a
> clue what is going on ? Also a mvn clean install before site does not fix
> this problem
> 
> Besides I think is taking too much time, and I see the message "Forking
> ...." more than three times per project.
> 
> In my root pom I added the following code inside tag:
> 
> <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-site-plugin</artifactId>
>                 <version>3.0-beta-2</version>
>                 <configuration>
>                   <siteDirectory>${basedir}/site/</siteDirectory>
>               
>                 <reportPlugins>
>                       <plugin>
>                         <groupId>org.apache.maven.plugins</groupId>
>                         <artifactId>maven-javadoc-plugin</artifactId>
>                         <version>2.7</version>
>                       </plugin>
>                   <plugin>
>                           <groupId>org.apache.maven.plugins</groupId>
>                          
> <artifactId>maven-project-info-reports-plugin</artifactId>
>                           <version>2.2</version>
>                           <reportSets>
>                                 <reportSet>
>                                 <reports>
>                                   <report>dependencies</report>
>                                   <report>license</report>
>                                   <report>scm</report>
>                                   <report>project-team</report>
>                                 </reports>
>                                 </reportSet>
>                                 </reportSets>
>                      </plugin>
>                   </reportPlugins>
>                 </configuration>
>               </plugin>
> 
> I have a few doubts:
> 
> 1) Why am I getting a compilation error only when I use mvn site?
> 
> 2) Do I need to add the code below or similar to the subprojects as well?
> (or is enough in the root pom?)
> 
> 3) Do I need to add the true or the appropriate goal (aggregate) ?
> 
> 4) Would I get an error if I do not write the site descriptor in each
> subproject?
> 
> 5) Is it normal that I am getting more than three "Forking ...." messages?
> 
> Finally, the last error was:
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-site-plugin:3.0-beta-2:stage (default-cli) on
> project xstreamline3-viewers: Error during page generation: Error rendering
> Maven report:
> [ERROR] Exit code: 1 -
> com/fuseim/process/action/PollMessages.class(com/fuseim/process/action:PollMessages.class):
> warning: Cannot find annotation method 'value()' in type
> 'javax.ejb.TransactionAttribute': class file for
> javax.ejb.TransactionAttribute not found
> [ERROR]
> com/fuseim/process/action/PollMessages.class(com/fuseim/process/action:PollMessages.class):
> warning: Cannot find annotation method 'value()' in type
> 'javax.ejb.TransactionAttribute'
> [ERROR] error: in class file
> com/fuseim/process/action/PollMessages.class(com/fuseim/process/action:PollMessages.class):
> unknown enum constant javax.ejb.TransactionAttributeType.REQUIRES_NEW
> [ERROR]
> com/fuseim/process/action/CreateProcessListener.class(com/fuseim/process/action:CreateProcessListener.class):
> warning: Cannot find annotation method 'value()' in type
> 'javax.ejb.TransactionManagement': class file for
> javax.ejb.TransactionManagement not found
> 
> Please help me with this issue.
> 
> 
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/mvn-compile-works-mvn-site-deploy-causes-complation-error-tp4343797p4343797.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to