You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marco Tedone <mt...@jemos.org> on 2004/01/28 01:46:41 UTC
Re: [FOURTH TIME] Cannot run the "site" goal - Partly Solved
Hi, I created a new directory structure as suggested, copied "project.xml",
"maven.xml", "LICENSE.txt" and the properties file, ran the "build" and
"site" goal and the license report has been generated.
However, when I ran my own goal "jemos:site" I got the error related to the
license. So I investigated...and I found something interesting...
My original goal was:
<goal name="jemos:site" prereqs="jemos:build, xjavadoc">
<ant:delete failonerror="false" includeEmptyDirs="true">
<ant:fileset dir="${upload.webserver}">
<ant:include name="**/*.*" />
</ant:fileset>
</ant:delete>
<attainGoal name="site"/>
<ant:copy todir="${upload.webserver}"
overwrite="true" failonerror="false">
<ant:fileset dir="${maven.build.dir}/docs">
<ant:include name="**/*.*" />
</ant:fileset>
</ant:copy>
</goal>
So I found that the "jemos:build" caused the problem in object (the
license-plugin error).
The "jemos:build" goal is designed as follows:
<goal name="jemos:build" prereqs="jemos:clean">
<maven:reactor
basedir="${basedir}"
includes="*/project.xml"
excludes="target/**"
goals=""
banner="Building:"
ignoreFailures="false"
postProcessing="true"/>
<ant:copy todir="${maven.build.dir}">
<j:forEach var="child" items="${reactorProjects}">
<ant:fileset dir="${child.file.parentFile}/target">
<ant:include
name="${child.artifactId}-${child.currentVersion}.jar"/>
</ant:fileset>
</j:forEach>
</ant:copy>
</goal>
Now it happens the strange/interesting thing:
If I run:
$ maven jemos:build jemos:site
I obtain the error.
If I run:
$ maven jemos:build
and then
$maven jemos:site
everything goes smoothly.
Have you got any idea?
Marco
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org