Have you tried with maven-site-plugin 3.0-beta-3 ?

Also I don't remember why exaclty, I've got
<executions>
                                        <execution>
                                                <id>attach-descriptor</id>
                                                <goals>
                                                        
<goal>attach-descriptor</goal>
                                                </goals>
                                        </execution>
                                </executions>

inside site <plugin>, maybe it is needed for something to work OK?

Em 27-04-2011 15:20, Leandro escreveu:
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: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to