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:
parent
1efafd864b
commit
35c7566d9b
1 changed files with 45 additions and 30 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue