I've resolved ZZ-536 applying Florent's patch. At least now the site can be generated with maven 2, any idea on how to fix things for maven 3?
Cheers, Reto On Wed, Jan 25, 2012 at 10:29 PM, Reto Bachmann-Gmür <[email protected]>wrote: > Hi Florent! > > Event with your patch maven 3.0.3 doesn't generate a site. It says the > build was successful, But no html was genearted: > > reto@reto-UX31E:~/projects/apache/clerezza/parent$ ls target/site/ > css images > > Otherwise the patch seems to do two things: > - make slf4j-scala-api a part of clerezza as it hasn't yet been made part > of slf4j > - not having slf4j-scala-api be a default dependency of all clerezza > modules > > I'm a bit less enthusiastic about the latter as it requires adding more > dependencies and there is no longer a single place to change if and when > sfl4j-scala becames part of slf4j. On the other hand the current approach > brings an indirect dependency to scala even for project that do not need > it. Maybe this could be solved by declaring the scala dependencies of > slf4-sj as provided or as optional. > > Anyway, the site generation problem is not solved yet. Trying the older > maven version now. > > Cheers, > Reto > > > On Wed, Jan 25, 2012 at 11:59 AM, florent andré < > [email protected]> wrote: > >> Reto ! >> This patch >> https://issues.apache.org/**jira/browse/CLEREZZA-536<https://issues.apache.org/jira/browse/CLEREZZA-536>will >> generate the site (at least @rev when created). >> >> ++ >> >> >> >> >> On 01/25/2012 09:35 AM, Reto Bachmann-Gmür wrote: >> >>> The clerezza site build is failing on hudson. The latest created site for >>> the parent dates 2011-08-05. Locally using mvn 3.0.3 it doesn't generate >>> the html pages while with maven 2.2.1 I'm getting the following error: >>> >>> [INFO] [site:site {execution: default-site}] >>> [INFO] Parent project loaded from repository. >>> [INFO] Parent project loaded from repository. >>> [INFO] Generating "Clirr" report. >>> [INFO] Comparing to version: 1.5.6 >>> Downloading: >>> http://repo1.maven.org/maven2/**org/apache/clerezza/ext/slf4j-** >>> scala-api/1.5.6/slf4j-scala-**api-1.5.6.jar<http://repo1.maven.org/maven2/org/apache/clerezza/ext/slf4j-scala-api/1.5.6/slf4j-scala-api-1.5.6.jar> >>> [INFO] Unable to find resource >>> 'org.apache.clerezza.ext:**slf4j-scala-api:bundle:1.5.6' in repository >>> central (http://repo1.maven.org/maven2**) >>> [WARNING] Impossible to find previous version >>> [ERROR] Unable to find information in class org.slf4j.scala.Logger >>> referring back to nested class org.slf4j.scala.Logger$ >>> [INFO] >>> ------------------------------**------------------------------** >>> ------------ >>> [ERROR] FATAL ERROR >>> [INFO] >>> ------------------------------**------------------------------** >>> ------------ >>> [INFO] null >>> [INFO] >>> ------------------------------**------------------------------** >>> ------------ >>> [INFO] Trace >>> java.lang.**NegativeArraySizeException >>> at >>> org.codehaus.mojo.clirr.**AbstractClirrMojo.reportDiffs(** >>> AbstractClirrMojo.java:660) >>> at >>> org.codehaus.mojo.clirr.**AbstractClirrMojo.**executeClirr(** >>> AbstractClirrMojo.java:263) >>> at org.codehaus.mojo.clirr.**ClirrReport.doReport(** >>> ClirrReport.java:243) >>> at org.codehaus.mojo.clirr.**ClirrReport.generate(** >>> ClirrReport.java:219) >>> at org.codehaus.mojo.clirr.**ClirrReport.generate(** >>> ClirrReport.java:355) >>> at >>> org.apache.maven.plugins.site.**ReportDocumentRenderer.**renderDocument( >>> **ReportDocumentRenderer.java:**164) >>> >>> Does anyone succeds building the site or has an idea about the cause of >>> the >>> problem? It seeems to happen sine we are using the apache parent pom. >>> >>> Cheers, >>> Reto >>> >>> >
