pom.xml 6.78 KB
Newer Older
cazenave's avatar
cazenave committed
1
2
<?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/xsd/maven-4.0.0.xsd">
cazenave's avatar
back ok    
cazenave committed
3
    <modelVersion>4.0.0</modelVersion>
cazenave's avatar
cazenave committed
4
5
6

    <packaging>war</packaging>
    <url>http://maven.apache.org</url>
cazenave's avatar
cazenave committed
7
    <artifactId>ui-pastis</artifactId>
cazenave's avatar
cazenave committed
8
9
    <name>PASTIS-API</name>

cazenave's avatar
back ok    
cazenave committed
10
11
12
13
14
    <parent>
        <groupId>fr.gouv.vitamui</groupId>
        <artifactId>ui-parent</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </parent>
cazenave's avatar
cazenave committed
15

cazenave's avatar
back ok    
cazenave committed
16
17
    <properties>
        <!-- Generic properties -->
cazenave's avatar
cazenave committed
18
19
20
21
22
23
        <maven.compile.target>1.8</maven.compile.target>
        <maven.compile.source>1.8</maven.compile.source>
        <warDevName>rest</warDevName>
        <warProdName>rest</warProdName>
    </properties>

cazenave's avatar
back ok    
cazenave committed
24
25
    <dependencies>

cazenave's avatar
cazenave committed
26
27
28
29
30
31
32
33
34
        <!--VITAMUI -->
        <dependency>
            <groupId>fr.gouv.vitamui.commons</groupId>
            <artifactId>commons-api</artifactId>
        </dependency>
        <dependency>
            <groupId>fr.gouv.vitamui.commons</groupId>
            <artifactId>commons-rest</artifactId>
        </dependency>
cazenave's avatar
cazenave committed
35
36
37
38
39
40
41
42
43
44
45
46
47

        <!-- SPRING BOOT -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>



cazenave's avatar
cazenave committed
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63

        <dependency>
            <groupId>org.jvnet.jaxb2.maven2</groupId>
            <artifactId>maven-jaxb2-plugin</artifactId>
            <version>0.14.0</version>
        </dependency>
        <dependency>
            <groupId>org.json</groupId>
            <artifactId>json</artifactId>
            <version>20180813</version>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.8.5</version>
        </dependency>
cazenave's avatar
back ok    
cazenave committed
64
65


cazenave's avatar
cazenave committed
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.4</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>com.fasterxml</groupId>
            <artifactId>jackson-xml-databind</artifactId>
            <version>0.6.2</version>
        </dependency>

    </dependencies>


cazenave's avatar
back ok    
cazenave committed
82
83
84
85
86
87
88
89
90
91
    <build>
        <resources>
            <resource>
                <directory>target/www/</directory>
                <targetPath>static/</targetPath>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
        </resources>
cazenave's avatar
cazenave committed
92

cazenave's avatar
back ok    
cazenave committed
93
        <plugins>
cazenave's avatar
cazenave committed
94
            <plugin>
cazenave's avatar
back ok    
cazenave committed
95
96
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
cazenave's avatar
cazenave committed
97
98
                <executions>
                    <execution>
cazenave's avatar
back ok    
cazenave committed
99
                        <id>build-info</id>
cazenave's avatar
cazenave committed
100
                        <goals>
cazenave's avatar
back ok    
cazenave committed
101
                            <goal>build-info</goal>
cazenave's avatar
cazenave committed
102
103
104
                        </goals>
                    </execution>
                    <execution>
cazenave's avatar
back ok    
cazenave committed
105
                        <id>spring-boot-repackage</id>
cazenave's avatar
cazenave committed
106
                        <goals>
cazenave's avatar
back ok    
cazenave committed
107
                            <goal>repackage</goal>
cazenave's avatar
cazenave committed
108
109
                        </goals>
                    </execution>
cazenave's avatar
back ok    
cazenave committed
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
                </executions>
                <configuration>
                    <executable>true</executable>
                    <attach>false</attach> <!-- Need to use the original jar for integration-tests -->
                    <mainClass>fr.gouv.vitamui.pastis.PastisRestApplication</mainClass>
                    <arguments>
                        <!-- use src/main/config/application-dev.yml when using mvn spring-boot:run -->
                        <!-- See : https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html#boot-features-external-config-application-property-files -->
                        <argument>--spring.config.additional-location=file:${basedir}/src/main/config/ui-pastis-application-dev.yml</argument>
                    </arguments>
                </configuration>
            </plugin>

            <!-- Read the config.properties files with the properties plug-in -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>properties-maven-plugin</artifactId>
                <version>1.0-alpha-2</version>
                <executions>
cazenave's avatar
cazenave committed
129
                    <execution>
cazenave's avatar
back ok    
cazenave committed
130
                        <phase>initialize</phase>
cazenave's avatar
cazenave committed
131
                        <goals>
cazenave's avatar
back ok    
cazenave committed
132
                            <goal>read-project-properties</goal>
cazenave's avatar
cazenave committed
133
134
                        </goals>
                        <configuration>
cazenave's avatar
back ok    
cazenave committed
135
136
137
                            <files>
                                <file>${project.basedir}/src/main/resources/config.properties</file>
                            </files>
cazenave's avatar
cazenave committed
138
139
140
141
142
                        </configuration>
                    </execution>
                </executions>
            </plugin>

cazenave's avatar
cazenave committed
143
144
145



cazenave's avatar
back ok    
cazenave committed
146
147
148
149
150
151
152
153
154
            <!-- Create folder for .rng files on server -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <warName>${war.dev.filename}</warName>
                </configuration>
            </plugin>
cazenave's avatar
cazenave committed
155
156


cazenave's avatar
back ok    
cazenave committed
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
            <!-- Jsonix plugin -->
            <plugin>
                <groupId>org.jvnet.jaxb2.maven2</groupId>
                <artifactId>maven-jaxb2-plugin</artifactId>
                <version>0.14.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <extension>true</extension>
                            <args>
                                <arg>-Xjsonix</arg>
                                <arg>-Xjsonix-compact</arg>
                            </args>
                            <plugins>
                                <plugin>
                                    <groupId>org.hisrc.jsonix</groupId>
                                    <artifactId>jsonix-schema-compiler</artifactId>
                                    <version>2.3.9</version>
                                </plugin>
                            </plugins>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
cazenave's avatar
cazenave committed
184
185
186



cazenave's avatar
back ok    
cazenave committed
187
188
        </plugins>
    </build>
cazenave's avatar
cazenave committed
189

cazenave's avatar
back ok    
cazenave committed
190
191
192
193
194
195
196
197
    <profiles>
        <profile>
            <id>dev</id>
            <build>
                <finalName>${war.dev.filename}</finalName>
            </build>
        </profile>
    </profiles>
cazenave's avatar
cazenave committed
198

cazenave's avatar
cazenave committed
199
200

</project>