<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>it.saga.pubblici</groupId>
    <artifactId>PAT-server</artifactId>
    <version>1.23.0.0000</version>
  </parent>
  <groupId>it.saga.pubblici</groupId>
  <artifactId>patrimonio-server</artifactId>
  <packaging>jar</packaging>
  <!--<dependencies>
    <dependency>
      <groupId>it.saga.pubblici</groupId>
      <artifactId>patrimonio-setup</artifactId>
      <version>${project.version}</version>
    </dependency>
  </dependencies>-->
  <build>
    <plugins>
      <!--<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>maggioli-xml-maven-plugin</artifactId>
        <version>1.0.1</version>
        <executions>
          <execution>
            <goals>
              <goal>validate</goal>
            </goals>
            <phase>validate</phase>
          </execution>
        </executions>
        <configuration>
          <validationSets>
            <validationSet>
              <systemId>src/main/resources/it/saga/pubblici/patrimonio/importazione/XML/DTD-BON/import.dtd</systemId>
              <dir>src/main/resources/it/saga/pubblici/patrimonio/importazione/XML</dir>
              <includes>
                <include>PatTRC*.xml</include>
              </includes>
            </validationSet>
            <validationSet>
              <systemId>src/main/resources/it/saga/pubblici/patrimonio/importazione/XML/DTD-BON/project.dtd</systemId>
              <dir>src/main/resources/it/saga/pubblici/patrimonio/importazione/XML</dir>
              <includes>
                <include>PatPRG*.xml</include>
              </includes>
            </validationSet>
            <validationSet>
              <systemId>src/main/resources/it/saga/pubblici/patrimonio/importazione/XML/DTD-BON/applicationProjects.dtd</systemId>
              <dir>src/main/resources/it/saga/pubblici/patrimonio/importazione/XML</dir>
              <includes>
                <include>PatBONProjects.xml</include>
              </includes>
            </validationSet>
          </validationSets>
        </configuration>
      </plugin>-->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy</id>
            <phase>install</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>${project.groupId}</groupId>
                  <artifactId>${project.artifactId}</artifactId>
                  <version>${project.version}</version>
                  <type>${project.packaging}</type>
                  <overWrite>true</overWrite>
                  <outputDirectory>${sicraweb.home}/server</outputDirectory>
                  <destFileName>it.saga.pubblici.patrimonio.server.jar</destFileName>
                </artifactItem>
              </artifactItems>
              <outputDirectory>${sicraweb.home}/server</outputDirectory>
              <overWriteReleases>true</overWriteReleases>
              <overWriteSnapshots>true</overWriteSnapshots>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <!--
      Per test di unita': forza la scrittura del log
      si potrĂ  eliminare quando Pizzagalli lo inserirĂ  di default nel pom nonno
      -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.20</version>
        <configuration>
          <!--
            Per visualizzare nella console i dettagli di eventuali
            eccezioni che si possono verificare durante l'esecuzione
            dei test. Se invece il valore e' true (o omesso)
            il plugin stampa i dettagli su un file di log che bisogna
            andare a cercare nella struttura di directory del progetto
          -->
          <useFile>false</useFile>
          <trimStackTrace>false</trimStackTrace>

        </configuration>
      </plugin>

      <plugin>
        <artifactId>maven-failsafe-plugin</artifactId>
        <version>2.18.1</version>
        <configuration>
          <classpathDependencyExcludes>
            <classpathDependencyExcludes>${project.groupId}:${project.artifactId}</classpathDependencyExcludes>
          </classpathDependencyExcludes>
          <includes>
            <include>**/*.java</include>
          </includes>
          <groups>it.saga.pubblici.patrimonio.utils.test.PatIntegrationTest</groups>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>integration-test</goal>
              <goal>verify</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>