RE: Does top-level maven.xml affect sub-projects?
I found that adding empty hivedoc goals in the sub-projects' maven.xml solved the problem. I think that this stuff is both good and bad; I may use the inheritance to reduce cut-and-paste as I try to assemble as set of distro files from the sub-projects; but I wish there was a way to declare whether a goal, postGoal or preGoal was to be inherited by sub-projects. -- Howard M. Lewis Ship Creator, Tapestry: Java Web Components http://jakarta.apache.org/tapestry http://jakarta.apache.org/commons/sandbox/hivemind/ http://javatapestry.blogspot.com > -Original Message- > From: Gilles Dodinet [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 09, 2003 5:58 PM > To: Maven Users List > Subject: Re: Does top-level maven.xml affect sub-projects? > > > Howard, > > afaik subprojects inherit from parent maven.xml. this allow > to factorize > some pre or postgoal. In your case, as you dont want the > postgoal to be > inherited perhaps you could try to replace by > or _eventually_ smtg like that : > > > > > > > > -- gd > > Howard M. Lewis Ship wrote: > > >Looks like it does to me. > > > >My top-level maven.xml includes: > > > > > > > > > > > > > > > > > > Building Hivedoc ... > > > > > > classname="org.apache.commons.hivemind.ant.ConstructRegistry"> > > > > > > >name="commons-hivemind/jars/*-${pom.currentVersion}.jar"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > location="${pom.getDependencyPath('saxon')}"/> > > > > > > file="src/xsl/hivemind.css"/> > > > > > > > > > >But what I'm seeing is that in my subproject, the hivedoc > rule is being > >executed as well. > > > >C:\workspace\hivemind>maven multiproject:site > > __ __ > >| \/ |__ _Apache__ ___ > >| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ > >|_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT > > > >Starting the reactor... > >Our processing order: > >HiveMind Framework > >HiveMind Library > >+ > >| Gathering project list HiveMind Framework > >| Memory: 3M/11M > >+ > >+ > >| Gathering project list HiveMind Library > >| Memory: 3M/11M > >+ > >multiproject:site: > >multiproject:site-init: > > > >multiproject:create-nav: > >[echo] Producing aggregate navigation... > >[echo] Producing user supplied navigation... > >Starting the reactor... > >Our processing order: > >HiveMind Framework > >HiveMind Library > >+ > >| Gathering project list HiveMind Framework > >| Memory: 7M/11M > >+ > >+ > >| Gathering project list HiveMind Library > >| Memory: 7M/11M > >+ > > > >multiproject:site-init: > > > >multiproject:create-overview-page: > >[echo] C:\workspace\hivemind\target\generated-xdocs > C:\workspace\hivemind\target\generated-xdocs > >[echo] create true > >Starting the reactor... > >Our processing order: > >HiveMind Framework > >HiveMind Library > >+ > >| Generating site for HiveMind Framework > >| Memory: 8M/11M > >+ > > > >site: > >xdoc:register-reports: > >maven-javadoc-plugin:register: > > > >maven-jxr-plugin:register: > > > >maven-junit-report-plugin:register: > > > >maven-clover-plugin:register: > > > > > >site:run-reports: > >[echo] Generating the JavaDocs... > >xdoc
Re: Does top-level maven.xml affect sub-projects?
Howard, afaik subprojects inherit from parent maven.xml. this allow to factorize some pre or postgoal. In your case, as you dont want the postgoal to be inherited perhaps you could try to replace by or _eventually_ smtg like that : -- gd Howard M. Lewis Ship wrote: Looks like it does to me. My top-level maven.xml includes: Building Hivedoc ... But what I'm seeing is that in my subproject, the hivedoc rule is being executed as well. C:\workspace\hivemind>maven multiproject:site __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT Starting the reactor... Our processing order: HiveMind Framework HiveMind Library + | Gathering project list HiveMind Framework | Memory: 3M/11M + + | Gathering project list HiveMind Library | Memory: 3M/11M + multiproject:site: multiproject:site-init: multiproject:create-nav: [echo] Producing aggregate navigation... [echo] Producing user supplied navigation... Starting the reactor... Our processing order: HiveMind Framework HiveMind Library + | Gathering project list HiveMind Framework | Memory: 7M/11M + + | Gathering project list HiveMind Library | Memory: 7M/11M + multiproject:site-init: multiproject:create-overview-page: [echo] C:\workspace\hivemind\target\generated-xdocs C:\workspace\hivemind\target\generated-xdocs [echo] create true Starting the reactor... Our processing order: HiveMind Framework HiveMind Library + | Generating site for HiveMind Framework | Memory: 8M/11M + site: xdoc:register-reports: maven-javadoc-plugin:register: maven-jxr-plugin:register: maven-junit-report-plugin:register: maven-clover-plugin:register: site:run-reports: [echo] Generating the JavaDocs... xdoc:init: maven-javadoc-plugin:report: [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Loading source file C:\workspace\hivemind\framework\src\java\org\apache\commons\hivemind\ant\ConstructRegistry.java... [javadoc] Loading source file C:\workspace\hivemind\framework\src\java\org\apache\commons\hivemind\ant\ManifestClassPath.java... . . . [clover-report] Writing report to 'C:\workspace\hivemind\framework\target\docs\clover' [clover-report] Merged results from 58 coverage recordings. [clover-report] Done. Processed 11 packages. xdoc:init: xdoc:register-reports: maven-javadoc-plugin:register: maven-jxr-plugin:register: maven-junit-report-plugin:register: maven-clover-plugin:register: xdoc:generate-from-pom: [echo] Generating xdocs from POM ... xdoc:transform: xdoc:init: xdoc:copy-resources: [copy] Copying 5 files to C:\workspace\hivemind\framework\target\docs\style [copy] Copying 89 files to C:\workspace\hivemind\framework\target\docs\images About to use JSL stylesheet file:/C:/Documents and Settings/Howard/.maven/plugins/maven-xdoc-plugin-1.4-SNAPSHOT/plugin-resources/site.jsl xdoc:init: xdoc:copy-user-resources: xdoc:init: xdoc:jelly-init: xdoc:register-reports: maven-javadoc-plugin:register: maven-jxr-plugin:register: maven-junit-report-plugin:register: maven-clover-plugin:register: xdoc:jelly-transform: [echo] Generating C:/workspace/hivemind/framework/target/docs/cvs-usage.html from C:\workspace\hivemind\framework\target\generated-xdocs\cvs-usage.xml [echo] Generating C:/workspace/hivemind/framework/target/docs/dependencies.html from C:\workspace\hivemind\framework\target\generated-xdocs\dependencies.xml [echo] Generating C:/workspace/hivemind/framework/target/docs/index.html from C:\workspace\hivemind\framework\target\generated-xdocs\index.xml [echo] Generating C:/workspace/hivemind/framework/target/docs/issue-tracking.html from C:\workspace\hivemind\framework\target\generated-xdocs\issue-tracking.xml [echo] Generating C:/workspace/hivemind/framework/target/docs/javadoc.html from C:\workspace\hivemind\framework\target\generate
Does top-level maven.xml affect sub-projects?
Looks like it does to me. My top-level maven.xml includes: Building Hivedoc ... But what I'm seeing is that in my subproject, the hivedoc rule is being executed as well. C:\workspace\hivemind>maven multiproject:site __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT Starting the reactor... Our processing order: HiveMind Framework HiveMind Library + | Gathering project list HiveMind Framework | Memory: 3M/11M + + | Gathering project list HiveMind Library | Memory: 3M/11M + multiproject:site: multiproject:site-init: multiproject:create-nav: [echo] Producing aggregate navigation... [echo] Producing user supplied navigation... Starting the reactor... Our processing order: HiveMind Framework HiveMind Library + | Gathering project list HiveMind Framework | Memory: 7M/11M + + | Gathering project list HiveMind Library | Memory: 7M/11M + multiproject:site-init: multiproject:create-overview-page: [echo] C:\workspace\hivemind\target\generated-xdocs C:\workspace\hivemind\target\generated-xdocs [echo] create true Starting the reactor... Our processing order: HiveMind Framework HiveMind Library + | Generating site for HiveMind Framework | Memory: 8M/11M + site: xdoc:register-reports: maven-javadoc-plugin:register: maven-jxr-plugin:register: maven-junit-report-plugin:register: maven-clover-plugin:register: site:run-reports: [echo] Generating the JavaDocs... xdoc:init: maven-javadoc-plugin:report: [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Loading source file C:\workspace\hivemind\framework\src\java\org\apache\commons\hivemind\ant\ConstructRegistry.java... [javadoc] Loading source file C:\workspace\hivemind\framework\src\java\org\apache\commons\hivemind\ant\ManifestClassPath.java... . . . [clover-report] Writing report to 'C:\workspace\hivemind\framework\target\docs\clover' [clover-report] Merged results from 58 coverage recordings. [clover-report] Done. Processed 11 packages. xdoc:init: xdoc:register-reports: maven-javadoc-plugin:register: maven-jxr-plugin:register: maven-junit-report-plugin:register: maven-clover-plugin:register: xdoc:generate-from-pom: [echo] Generating xdocs from POM ... xdoc:transform: xdoc:init: xdoc:copy-resources: [copy] Copying 5 files to C:\workspace\hivemind\framework\target\docs\style [copy] Copying 89 files to C:\workspace\hivemind\framework\target\docs\images About to use JSL stylesheet file:/C:/Documents and Settings/Howard/.maven/plugins/maven-xdoc-plugin-1.4-SNAPSHOT/plugin-resources/site.jsl xdoc:init: xdoc:copy-user-resources: xdoc:init: xdoc:jelly-init: xdoc:register-reports: maven-javadoc-plugin:register: maven-jxr-plugin:register: maven-junit-report-plugin:register: maven-clover-plugin:register: xdoc:jelly-transform: [echo] Generating C:/workspace/hivemind/framework/target/docs/cvs-usage.html from C:\workspace\hivemind\framework\target\generated-xdocs\cvs-usage.xml [echo] Generating C:/workspace/hivemind/framework/target/docs/dependencies.html from C:\workspace\hivemind\framework\target\generated-xdocs\dependencies.xml [echo] Generating C:/workspace/hivemind/framework/target/docs/index.html from C:\workspace\hivemind\framework\target\generated-xdocs\index.xml [echo] Generating C:/workspace/hivemind/framework/target/docs/issue-tracking.html from C:\workspace\hivemind\framework\target\generated-xdocs\issue-tracking.xml [echo] Generating C:/workspace/hivemind/framework/target/docs/javadoc.html from C:\workspace\hivemind\framework\target\generated-xdocs\javadoc.xml [echo] Generating C:/workspace/hivemind/framework/target/docs/junit-report.html from C:\workspace\hivemind\framework\target\generated-xdocs\junit-report.xml [echo] Generating C:/workspace/hivemind/framework/