Skip to content
Snippets Groups Projects
pom.xml 11.70 KiB
<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>ch.unige.aou</groupId>
        <artifactId>AoU-Parent</artifactId>
        <version>1.0.1</version>
    </parent>

    <artifactId>AoU-Model</artifactId>
    <name>AoU Model</name>
    <description>AoU Model</description>

    <properties>
        <!-- Mandatory property to prevent inheritance of the parent property. If not set the module in Sonar will be the same as the parent module -->
        <sonar.projectName>${project.name}</sonar.projectName>
    </properties>

    <dependencies>
        <!-- Solidify Authorization Model -->
        <dependency>
            <groupId>ch.unige.solidify</groupId>
            <artifactId>solidify-authorization-model</artifactId>
        </dependency>
        <!--Rest dependencies -->
        <dependency>
            <groupId>org.json</groupId>
            <artifactId>json</artifactId>
        </dependency>
        <!--Spring dependencies -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-hateoas</artifactId>
        </dependency>
        <!--Solidify dependencies -->
        <dependency>
            <groupId>ch.unige.solidify</groupId>
            <artifactId>solidify-model</artifactId>
        </dependency>
        <dependency>
            <groupId>ch.unige.solidify</groupId>
            <artifactId>solidify-xml</artifactId>
        </dependency>
        <!-- Used for validating URLs -->
        <dependency>
            <groupId>commons-validator</groupId>
            <artifactId>commons-validator</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>properties-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>set-additional-system-properties</id>
                        <goals>
                            <goal>set-system-properties</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <properties>
                        <property>
                            <name>javax.xml.accessExternalDTD</name>
                            <value>http</value>
                        </property>
                    </properties>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>add-source</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>add-source</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>${project.build.directory}/generated-sources/jaxb</source>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jaxb2-maven-plugin</artifactId>
                <configuration>
                    <xjbSources>
                        <xjbSource>src/main/xjb/global.xjb</xjbSource>
                    </xjbSources>
                </configuration>
                <executions>
                    <execution>
                        <id>xjc-aou-deposit-metadata-1</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/schemas/aou-deposit-metadata-1.0.xsd</source>
                            </sources>
                            <packageName>ch.unige.aou.model.xml.deposit.v1</packageName>
                            <clearOutputDir>false</clearOutputDir>
                        </configuration>
                    </execution>
                    <execution>
                        <id>xjc-aou-deposit-metadata-2</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/schemas/aou-deposit-metadata-2.0.xsd</source>
                            </sources>
                            <packageName>ch.unige.aou.model.xml.deposit.v2</packageName>
                            <clearOutputDir>false</clearOutputDir>
                        </configuration>
                    </execution>
                    <execution>
                        <id>xjc-aou-deposit-metadata-2.1</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/schemas/aou-deposit-metadata-2.1.xsd</source>
                            </sources>
                            <packageName>ch.unige.aou.model.xml.deposit.v2_1</packageName>
                            <clearOutputDir>false</clearOutputDir>
                        </configuration>
                    </execution>
                    <execution>
                        <id>xjc-aou-deposit-metadata-2.2</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/schemas/aou-deposit-metadata-2.2.xsd</source>
                            </sources>
                            <packageName>ch.unige.aou.model.xml.deposit.v2_2</packageName>
                            <clearOutputDir>false</clearOutputDir>
                        </configuration>
                    </execution>
                    <execution>
                        <id>xjc-aou-deposit-metadata-2.3</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/schemas/aou-deposit-metadata-2.3.xsd</source>
                            </sources>
                            <packageName>ch.unige.aou.model.xml.deposit.v2_3</packageName>
                            <clearOutputDir>false</clearOutputDir>
                        </configuration>
                    </execution>
                    <execution>
                        <id>xjc-oai2</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/schemas/oai-pmh-2.0.xsd</source>
                            </sources>
                            <packageName>ch.unige.aou.model.xml.oai.v2</packageName>
                            <clearOutputDir>false</clearOutputDir>
                        </configuration>
                    </execution>
                    <execution>
                        <id>xjc-oai2-dc</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/schemas/oai-dc.xsd</source>
                            </sources>
                            <packageName>ch.unige.aou.model.xml.oai.v2.oai_dc</packageName>
                            <clearOutputDir>false</clearOutputDir>
                        </configuration>
                    </execution>
                    <execution>
                        <id>xjc-oai2-identifier</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/schemas/oai-identifier.xsd</source>
                            </sources>
                            <packageName>ch.unige.aou.model.xml.oai.v2.oai_identifier</packageName>
                            <clearOutputDir>false</clearOutputDir>
                        </configuration>
                    </execution>
                    <execution>
                        <id>xjc-aou-1</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/schemas/aou-1.0.xsd</source>
                            </sources>
                            <packageName>ch.unige.aou.model.xml.aou.v1</packageName>
                            <clearOutputDir>false</clearOutputDir>
                        </configuration>
                    </execution>
                    <execution>
                        <id>xjc-foxml-1</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/schemas/fedora3/foxml-1.1.xsd</source>
                            </sources>
                            <packageName>ch.unige.aou.model.xml.fedora.foxml.v1</packageName>
                            <clearOutputDir>false</clearOutputDir>
                        </configuration>
                    </execution>
                    <execution>
                        <id>xjc-fedora3</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/schemas/fedora3/fedoraRepository.xsd</source>
                                <source>src/main/resources/schemas/fedora3/getNextPIDInfo.xsd</source>
                                <source>src/main/resources/schemas/fedora3/datastreamProfile.xsd</source>
                            </sources>
                            <packageName>ch.unige.aou.model.xml.fedora.repository</packageName>
                            <clearOutputDir>false</clearOutputDir>
                        </configuration>
                    </execution>
                    <execution>
                        <id>xjc-marc21</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>src/main/resources/schemas/marc-21.xsd</source>
                            </sources>
                            <packageName>ch.unige.aou.model.xml.marc21</packageName>
                            <clearOutputDir>false</clearOutputDir>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>