ItEr59S04ValidacionEProbasFuncionaisItEr58S04: Move Jasper reports creation to its own profile.

This allows to exclude the generation of reports from the build in
order to make it faster. For example, do: mvn clean install -P-reports
if you don't want the reports to be generated.
This commit is contained in:
Óscar González Fernández 2010-06-03 18:24:07 +02:00
parent 1efafd864b
commit 35c7566d9b

View file

@ -10,7 +10,51 @@
<packaging>war</packaging>
<name>NavalPlan Web Client Module</name>
<build>
<profiles>
<profile>
<id>reports</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<!-- =========================================================== -->
<!-- Jasper reports configuration -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jasperreports-maven-plugin</artifactId>
<version>1.0-beta-2</version>
<configuration>
<sourceDirectory>${project.build.sourceDirectory}/../jasper</sourceDirectory>
<outputDirectory>${project.build.sourceDirectory}/../../../target/classes</outputDirectory>
<xmlValidation>true</xmlValidation>
</configuration>
<executions>
<execution>
<goals>
<goal>compile-reports</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
<dependencies>
<!--
note this must be repeated here to pick up correct xml
validation
-->
<dependency>
<groupId>jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>3.7.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<finalName>navalplanner-webapp</finalName>
<!--
@ -37,35 +81,6 @@
</execution>
</executions>
</plugin>
<!-- =========================================================== -->
<!-- Jasper reports configuration -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jasperreports-maven-plugin</artifactId>
<version>1.0-beta-2</version>
<configuration>
<sourceDirectory>${project.build.sourceDirectory}/../jasper</sourceDirectory>
<outputDirectory>${project.build.sourceDirectory}/../../../target/classes</outputDirectory>
<xmlValidation>true</xmlValidation>
</configuration>
<executions>
<execution>
<goals>
<goal>compile-reports</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
<dependencies>
<!--note this must be repeated here to pick up correct xml validation -->
<dependency>
<groupId>jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>3.7.0</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>