Cactus
  1. Cactus
  2. CACTUS-102

support for maven multiproject plugin

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6
    • Component/s: Maven Integration
    • Labels:
      None
    • Environment:
      maven multiproject

      Description

      Hi guys,

      Here's a proposal for a new goal on multiproject plugin. It allows to run cactus tests on all sub-projects of "war"
      type, the same way junit tests can be run.

      I use it from cruisecontrol scripts to update, compile and test my app (having 3 web modules and 4 jars).

      Nico.

      <!-====================================================================->
      <!-- Exécute les test Cactus sur tous les sous-projects de type "war" -->
      <!-====================================================================->
      <goal name="multiproject:cactus">
      <maven:reactor basedir="$

      {maven.multiproject.basedir}

      "
      includes="$

      {maven.multiproject.includes}

      "
      excludes="$

      {maven.multiproject.excludes}

      "
      postProcessing="true"
      ignoreFailures="$

      {maven.multiproject.ignoreFailures}" />

      <j:forEach var="reactorProject" items="${reactorProjects}">
      <j:set
      var="type"
      value="${reactorProject.getContext().getVariable('maven.multiproject.type')}"/>
      <j:if test="${type == 'war'}">
      <ant:echo>----------------------------------------------------</ant:echo>
      <ant:echo>Running cactus test for ${reactorProject.artifactId}</ant:echo>
      <ant:echo>----------------------------------------------------</ant:echo>
      <maven:maven
      descriptor="${basedir}/../${reactorProject.artifactId}/project.xml"
      goals="cactus"
      ignoreFailures="${maven.multiproject.ignoreFailures}

      " />
      </j:if>
      </j:forEach>
      </goal>

      1. patch.txt
        1 kB
        nicolas de loof

        Activity

          People

          • Assignee:
            Vincent Massol
            Reporter:
            nicolas de loof
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development