<?xml version="1.0" encoding="UTF-8"?>
<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>
  <artifactId>model.external.riksdagen.documentcontent.impl</artifactId>
  <version>2011.05.31</version>
  <packaging>bundle</packaging>
  <parent>
    <groupId>com.hack23.cia</groupId>
    <artifactId>parent-model-external-pom</artifactId>
    <version>2011.05.31</version>
    <relativePath>../parent-model-external-pom/pom.xml</relativePath>
  </parent>
  <build>
    <plugins>
      <plugin>
        <groupId>org.jvnet.hyperjaxb3</groupId>
        <artifactId>maven-hyperjaxb3-plugin</artifactId>
        <configuration>
          <extension>true</extension>
          <specVersion>2.2.1</specVersion>
          <generateDirectory>${project.build.directory}/generated-sources/hyperjaxb3</generateDirectory>
          <bindingDirectory>src/main/xjb</bindingDirectory>
          <schemaDirectory>src/main/xsd</schemaDirectory>
          <roundtripTestClassName>com.hack23.cia.model.external.riksdagen.documentcontent.impl.RoundtripTest</roundtripTestClassName>
          <args>
            <arg>-Xfluent-api</arg>
          </args>
          <plugins>
            <plugin>
              <groupId>net.java.dev.jaxb2-commons</groupId>
              <artifactId>jaxb-fluent-api</artifactId>
              <version>2.2</version>
            </plugin>
          </plugins>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>net.java.dev.jaxb2-commons</groupId>
            <artifactId>jaxb-fluent-api</artifactId>
            <version>2.2</version>
          </dependency>
        </dependencies>
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.google.code.maven-replacer-plugin</groupId>
        <artifactId>maven-replacer-plugin</artifactId>
        <configuration>
          <file>target/generated-sources/hyperjaxb3/META-INF/persistence.xml</file>
          <replacements>
            <replacement>
              <token>persistence version="1.0"</token>
              <value>persistence version="2.0"</value>
            </replacement>
            <replacement>
              <token>1_0</token>
              <value>2_0</value>
            </replacement>
          </replacements>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>replace</goal>
            </goals>
            <phase>generate-sources</phase>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>hibernate3-maven-plugin</artifactId>
        <configuration>
          <componentProperties>
            <implementation>jpaconfiguration</implementation>
            <propertyfile>src/main/resources/schema-mysql.properties</propertyfile>
            <outputfilename>schema-mysql.sql</outputfilename>
            <persistenceunit>com.hack23.cia.${project.artifactId}</persistenceunit>
            <export>false</export>
            <ejb3>true</ejb3>
            <dot.executable>${graphviz.dot.executable}</dot.executable>
          </componentProperties>
          <components>
            <component>
              <name>hbm2ddl</name>
              <outputDirectory>target/classes</outputDirectory>
            </component>
            <component>
              <name>hbm2doc</name>
              <outputDirectory>target/site/hbm2doc</outputDirectory>
            </component>
          </components>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>${cia.project.versions.hibernate.validator}</version>
          </dependency>
          <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>${cia.project.versions.hibernate.build}</version>
          </dependency>
        </dependencies>
        <executions>
          <execution>
            <goals>
              <goal>hbm2ddl</goal>
              <goal>hbm2doc</goal>
            </goals>
            <phase>process-classes</phase>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <reporting></reporting>
  <name>model.external.riksdagen.documentcontent.impl</name>
  <description>model.external.riksdagen.documentcontent.impl</description>
  <url>http://cia.sourceforge.net/model.external.riksdagen.documentcontent.impl</url>
  <inceptionYear>2010</inceptionYear>
  <scm>
    <connection>scm:svn:https://cia.svn.sourceforge.net/svnroot/cia/tags/parent-pom-2011.05.31/model.external.riksdagen.documentcontent.impl</connection>
    <developerConnection>scm:svn:https://cia.svn.sourceforge.net/svnroot/cia/tags/parent-pom-2011.05.31/model.external.riksdagen.documentcontent.impl</developerConnection>
    <url>http://cia.svn.sourceforge.net/viewvc/cia/tags/parent-pom-2011.05.31/cia</url>
  </scm>
  <distributionManagement>
    <!-- http://maven.apache.org/plugins/maven-site-plugin/examples/site-deploy-to-sourceforge.net.html -->
    <site>
      <id>cia.sf.net</id>
      <url>scp://shell.sourceforge.net/home/project-web/cia/htdocs/model.external.riksdagen.documentcontent.impl</url>
    </site>
  </distributionManagement>
</project>

