Hi, I've run into a weird problem in site generation recently.
When dashboard report is enabled in a my project, xdoc:jelly-transform writes the html files into $MAVEN_HOME/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target instead of the projects target/docs directory. >From what I've been able to determine, at some point of execution the xdoc plugin the ${pom} variable switches to the dashboard plugin descriptor. I've attached outuput of a minimal test project run of 'maven site' note the following passage: dashboard:xdoc: [echo] end of dashboard:xdoc Test project [echo] site before xdoc Test project xdoc:init: [echo] xdoc:init Maven Dashboard Plugin I've attached the diff for adding the low-tech Jelly debug that generates the messages visible above, and the test project. ----------------------------------------------------------------------- | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.1-SNAPSHOT site: [echo] site before reports Test project You are working offline so the build will continue, but maven-junit-report-plugin-1.4-SNAPSHOT.jar may be out of date! xdoc:register-reports: maven-jdepend-plugin:register: maven-checkstyle-plugin:register: maven-changes-plugin:register: maven-changelog-plugin:register: maven-developer-activity-plugin:register: maven-file-activity-plugin:register: maven-license-plugin:register: maven-javadoc-plugin:register: maven-jxr-plugin:register: maven-junit-report-plugin:register: maven-linkcheck-plugin:register: maven-tasklist-plugin:register: maven-dashboard-plugin:register: site:run-reports: [echo] Generating the Project License... maven-license-plugin:report: xdoc:init: [echo] xdoc:init Maven Dashboard Plugin license:transfer: [echo] ====================================================================== = W A R N I N G = ====================================================================== = Your project doesn't contain a header file specified as: = = /home/fil/tmp/dashboard-test/LICENSE.txt = The License Report Plugin needs it to display the license = = for the project. = = If it can't find this file, it creates a page mentioning that = = no license file has been given to Maven. = ====================================================================== license: [echo] Generating the Link Check Report... maven-linkcheck-plugin:report: [echo] Generating the Dashboard... Starting the reactor... Our processing order: dashboard:report: dashboard:aggregate: dashboard:xdoc: [echo] end of dashboard:xdoc Test project [echo] site before xdoc Test project xdoc:init: [echo] xdoc:init Maven Dashboard Plugin xdoc:register-reports: maven-changes-plugin:register: maven-changelog-plugin:register: maven-file-activity-plugin:register: maven-developer-activity-plugin:register: maven-license-plugin:register: maven-linkcheck-plugin:register: maven-dashboard-plugin:register: xdoc:generate-from-pom: [echo] Generating xdocs from POM ... xdoc:transform: xdoc:init: [echo] xdoc:init Maven Dashboard Plugin xdoc:copy-resources: [copy] Copying 2 files to /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/docs/style [copy] Copying 89 files to /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/docs/images xdoc:init: [echo] xdoc:init Maven Dashboard Plugin xdoc:copy-user-resources: xdoc:init: [echo] xdoc:init Maven Dashboard Plugin About to use JSL stylesheet file:/home/fil/.maven/plugins/maven-xdoc-plugin-1.5-SNAPSHOT/plugin-resources/site.jsl xdoc:jelly-init: xdoc:register-reports: maven-changes-plugin:register: maven-changelog-plugin:register: maven-file-activity-plugin:register: maven-developer-activity-plugin:register: maven-license-plugin:register: maven-linkcheck-plugin:register: maven-dashboard-plugin:register: xdoc:jelly-transform: [echo] Generating /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/docs/cvs-usage.html from /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/generated-xdocs/cvs-usage.xml [echo] Generating /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/docs/index.html from /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/generated-xdocs/index.xml [echo] Generating /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/docs/maven-reports.html from /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/generated-xdocs/maven-reports.xml [echo] Generating /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/docs/dependencies.html from /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/generated-xdocs/dependencies.xml [echo] Generating /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/docs/issue-tracking.html from /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/generated-xdocs/issue-tracking.xml [echo] Generating /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/docs/mail-lists.html from /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/generated-xdocs/mail-lists.xml [echo] Generating /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/docs/project-info.html from /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/generated-xdocs/project-info.xml [echo] Generating /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/docs/team-list.html from /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/generated-xdocs/team-list.xml maven-linkcheck-plugin: Proxy Host:192.168.1.1 maven-linkcheck-plugin: Proxy Port:3128 maven-linkcheck-plugin: Proxy User:null Found 0 files so far. Memory: 11M/20M Validating cvs-usage.html Validating index.html Validating maven-reports.html Validating dependencies.html Validating issue-tracking.html Validating mail-lists.html Validating project-info.html Validating team-list.html Validating linkcheck.html maven-linkcheck-plugin:report-real: xdoc:performJSL: [echo] Generating /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/docs/linkcheck.html from /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/linkcheck/docs/linkcheck.xml maven-linkcheck-plugin: Proxy Host:192.168.1.1 maven-linkcheck-plugin: Proxy Port:3128 maven-linkcheck-plugin: Proxy User:null Found 0 files so far. Memory: 13M/20M Validating cvs-usage.html Validating index.html Validating maven-reports.html Validating dependencies.html Validating issue-tracking.html Validating mail-lists.html Validating project-info.html Validating team-list.html Validating linkcheck.html maven-linkcheck-plugin:report-real: xdoc:performJSL: [echo] Generating /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/docs/linkcheck.html from /home/fil/.maven/plugins/maven-dashboard-plugin-1.3-SNAPSHOT/target/linkcheck/docs/linkcheck.xml xdoc: [echo] site after xdoc Test project BUILD SUCCESSFUL Total time: 19 seconds Finished at: Thu Dec 18 11:32:16 CET 2003
? tracing.diff Index: dashboard/plugin.jelly =================================================================== RCS file: /home/cvspublic/maven-plugins/dashboard/plugin.jelly,v retrieving revision 1.6 diff -u -r1.6 plugin.jelly --- dashboard/plugin.jelly 3 Dec 2003 11:10:09 -0000 1.6 +++ dashboard/plugin.jelly 18 Dec 2003 10:49:31 -0000 @@ -119,6 +119,7 @@ outputMode="xml" prettyPrint="true"/> + <echo>end of dashboard:xdoc ${pom.name}</echo> </goal> <!-- Index: site/plugin.jelly =================================================================== RCS file: /home/cvspublic/maven-plugins/site/plugin.jelly,v retrieving revision 1.22 diff -u -r1.22 plugin.jelly --- site/plugin.jelly 16 Dec 2003 04:17:37 -0000 1.22 +++ site/plugin.jelly 18 Dec 2003 10:49:34 -0000 @@ -19,8 +19,11 @@ name="site" description="Generate the web site"> + <echo>site before reports ${pom.name}</echo> <attainGoal name="site:run-reports"/> + <echo>site before xdoc ${pom.name}</echo> <attainGoal name="xdoc"/> + <echo>site after xdoc ${pom.name}</echo> </goal> Index: xdoc/plugin.jelly =================================================================== RCS file: /home/cvspublic/maven-plugins/xdoc/plugin.jelly,v retrieving revision 1.53 diff -u -r1.53 plugin.jelly --- xdoc/plugin.jelly 9 Nov 2003 15:25:57 -0000 1.53 +++ xdoc/plugin.jelly 18 Dec 2003 10:49:34 -0000 @@ -345,6 +345,7 @@ <goal name="xdoc:init" description="Generates the directory structure required for xdocs"> + <echo>xdoc:init ${pom.name}</echo> <mkdir dir="${maven.gen.docs}"/> <mkdir dir="${maven.docs.dest}"/>
testproject.tgz
Description: GNU Unix tar archive
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]