Mojo's GWT Maven Plugin
  1. Mojo's GWT Maven Plugin
  2. MGWT-282

out parameter for gwt:test configuration has wrong default

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.4.0
    • Labels:
      None
    • Number of attachments :
      0

      Description

      According to:
      http://mojo.codehaus.org/gwt-maven-plugin/test-mojo.html#out

      the out configuration parameter defaults to: target/www-test

      It is not correct for multi-module maven projects, because every gwt:test run within specific module will output files to the target directory of the master project (parent pom).

      Simple workaround is to specify the following out parameter for each maven module which contains gwt tests:

        <build>
          <plugins>
            <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>gwt-maven-plugin</artifactId>
              <executions>
                <execution>
                  <goals>
                    <goal>test</goal>
                  </goals>
                  <configuration>
                    <out>${project.build.directory}/www-test</out>
                  </configuration>
                </execution>
              </executions>
            </plugin>
          </plugins>
        </build>
      

      It seems that this should be the default.

        Activity

        Hide
        Kazimierz Pogoda added a comment - - edited

        The workaround that really worked for me was to set:

        <out>${project.name}/target/www-test</out>
        

        But then spare directory named $

        {project.name}

        /target/www-test is also created.

        Show
        Kazimierz Pogoda added a comment - - edited The workaround that really worked for me was to set: <out>${project.name}/target/www-test</out> But then spare directory named $ {project.name} /target/www-test is also created.
        Hide
        Jeff MAURY added a comment -

        This should be closed as it as been fixed by 2.4.0. This parameter is handled as a relative directory of the project base directory if it is a relative expression (like the default expression) or as an absolute directory

        Show
        Jeff MAURY added a comment - This should be closed as it as been fixed by 2.4.0. This parameter is handled as a relative directory of the project base directory if it is a relative expression (like the default expression) or as an absolute directory

          People

          • Assignee:
            Unassigned
            Reporter:
            Kazimierz Pogoda
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: