On a separate yet related note, one of the issues that has clearly emerged
from this discussion is that within the DSpace context the Maven build
framework is being leveraged for two differing uses: development &
installation. On the development side there are strong arguments for having
tests activated by default. On the installation side there are strong
arguments for having tests de-activated by default.

Is there any reason why these two concerns can not be effectively segregated
through the use of "profiles"?

The install profile could be some variation of:

<profile>
  <id>profile-install</id>
  <activation>
    ...
  </activation>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <skipTests>true</skipTests>
        </configuration>
      </plugin>
    </plugins>
  </build>
</profile>

And, if necessary, an analogous counterpart could exist for the dev profile.
Andrew


On Tue, Aug 3, 2010 at 7:01 AM, Simon Brown <[email protected]> wrote:
> Also, I apologise to Stuart for choosing the wrong spelling of his
> name. There's probably a moral in there somewhere. :)
>
> --
> Simon Brown <[email protected]> - Cambridge University Computing Service
> +44 1223 3 34714 - New Museums Site, Pembroke Street, Cambridge CB2 3QH
>
>
>
>
------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Dspace-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-devel
>
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to