pom.xml 4.41 KB
Newer Older
1 2 3 4 5 6
<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>fr.ifremer.reefdb</groupId>
    <artifactId>reefdb</artifactId>
PECQUOT's avatar
PECQUOT committed
7
    <version>3.9.5</version>
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
  </parent>

  <artifactId>reefdb-core</artifactId>
  <packaging>jar</packaging>

  <name>Reef DB :: Core</name>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

    <!-- i18n configuration -->
    <i18n.bundleOutputName>reefdb-core-i18n</i18n.bundleOutputName>
    <i18n.bundleCsvFile>${i18n.bundleOutputName}.csv</i18n.bundleCsvFile>

    <test>AllReefDbTests</test>
  </properties>

  <dependencies>

    <!--quadrige3 -->
    <dependency>
      <groupId>fr.ifremer.quadrige3</groupId>
30
      <artifactId>quadrige3-ui-core-common</artifactId>
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>fr.ifremer.quadrige3</groupId>
      <artifactId>quadrige3-core-shared</artifactId>
      <scope>compile</scope>
    </dependency>

    <!-- Required for jdbc-synchro (link to oracle.sql.TIMESTAMP) -->
    <dependency>
      <groupId>com.oracle</groupId>
      <artifactId>ojdbc7</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.hsqldb</groupId>
      <artifactId>hsqldb</artifactId>
    </dependency>

    <!-- Logging -->
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
      <scope>runtime</scope>
    </dependency>

    <!-- Test -->
    <dependency>
      <groupId>fr.ifremer.quadrige3</groupId>
      <artifactId>quadrige3-test-shared</artifactId>
      <scope>test</scope>
    </dependency>
PECQUOT's avatar
PECQUOT committed
63 64 65 66 67 68 69 70 71 72
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit-addons</groupId>
      <artifactId>junit-addons</artifactId>
      <scope>test</scope>
    </dependency>
73

74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
  </dependencies>

  <build>
    <resources>
      <resource>
        <directory>src/main/filtered-resources</directory>
        <filtering>true</filtering>
        <includes>
          <include>*.config</include>
          <include>*.properties</include>
        </includes>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
        <includes>
          <include>**/*</include>
        </includes>
      </resource>
    </resources>

    <plugins>
      <plugin>
        <groupId>org.nuiton.eugene</groupId>
        <artifactId>eugene-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <resolver>org.nuiton.util.FasterCachedResourceResolver</resolver>
              <templates>
                org.nuiton.eugene.java.JavaInterfaceTransformer,
                org.nuiton.eugene.java.SimpleJavaBeanTransformer,
                org.nuiton.eugene.java.JavaEnumerationTransformer
              </templates>
              <defaultPackage>fr.ifremer.reefdb.dto
              </defaultPackage>
              <fullPackagePath>fr.ifremer.reefdb.dto
              </fullPackagePath>
              <inputs>zargo</inputs>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.nuiton.i18n</groupId>
        <artifactId>i18n-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>scan-sources</id>
            <configuration>
              <entries>
                <entry>
                  <basedir>${maven.gen.dir}/java/</basedir>
                </entry>
              </entries>
            </configuration>
            <goals>
              <goal>parserJava</goal>
              <goal>parserValidation</goal>
              <goal>gen</goal>
            </goals>
          </execution>
          <execution>
            <id>make-bundle</id>
            <goals>
              <goal>bundle</goal>
              <goal>generate-csv-bundle</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

    </plugins>
  </build>
</project>