You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/08/03 01:35:22 UTC

[jira] Closed: (MPMULTIPROJECT-23) multiproject:site fails if a subproject's site could not be found

Message:

   The following issue has been closed.

   Resolver: dion gillard
       Date: Mon, 2 Aug 2004 7:34 PM

AFAIK, this was fixed by adding a mkdir to the plugin.

If this is not the case, please reopen
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPMULTIPROJECT-23

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPMULTIPROJECT-23
    Summary: multiproject:site fails if a subproject's site could not be found
       Type: Improvement

     Status: Closed
   Priority: Major
 Resolution: FIXED

 Original Estimate: 15 minutes
 Time Spent: Unknown
  Remaining: 15 minutes

    Project: maven-multiproject-plugin

   Assignee: dion gillard
   Reporter: Oliver Noelle

    Created: Fri, 26 Mar 2004 5:30 AM
    Updated: Mon, 2 Aug 2004 7:34 PM
Environment: maven-rc-2, win2k

Description:
When a subproject could not build its site, the goal multiproject:site fails due to the fact that it can not find the directory to copy over to maven.docs.dest.

I don't know whether this is normally the desired behaviour, for our context we would like to have the site generated as far as it is possible, and not make a single site problem to fail the multiproject site goal.

Possible workaround:
I added a line to check for the existence of the index.html file in the maven.docs.dest dir of the subproject. If this file does not exist, it skips the copy goal which would fail.

Code snippet, see the comment and 2 lines added:

      <!-- copy each project over into ${maven.docs.dest} -->
      <j:forEach var="reactorProject" items="${reactorProjects}">
        <!-- note this is the same name as is generated in the navigation-aggregate.xml -->
        <j:set var="directory" value="${maven.docs.dest}/${maven.multiproject.aggregateDir}${reactorProject.artifactId}"/>
        <mkdir dir="${directory}"/>
        <!--
        ${reactorProject.name} has docs directory
        ${reactorProject.context.getVariable('maven.docs.dest')}
        needing to be copied
        -->
        <j:set var="fromDir"
          value="${reactorProject.context.getVariable('maven.docs.dest')}"/>
        <!-- the following line added as a check -->
        <util:available file="${fromDir}/index.html">
          <copy toDir="${directory}">
            <fileset dir="${fromDir}"/>
          </copy>
        </util:available>
      </j:forEach>





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org