pom.xml 10.2 KB
Newer Older
1
<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">
2
3
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.ow2.mrl</groupId>
4
    <artifactId>parent</artifactId>
5
    <packaging>pom</packaging>
6
    <version>0.0.9</version>
7
8
9
    <name>OW2 MRL</name>
    <url>http://www.ow2.org</url>

Antoine Mottier's avatar
Antoine Mottier committed
10
11
    <scm>
        <url>https://gitlab.ow2.org/ow2/mrl/</url>
Antoine Mottier's avatar
Antoine Mottier committed
12
13
        <connection>scm:git:git@gitlab.ow2.org:ow2/mrl.git</connection>
        <developerConnection>scm:git:git@gitlab.ow2.org:ow2/mrl.git</developerConnection>
14
        <tag>0.0.9</tag>
15
16
17
18
19
20
21
22
23
24
25
26
    </scm>

    <distributionManagement>
        <snapshotRepository>
            <id>gitlab-maven</id>
            <url>${env.CI_SERVER_URL}/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url>
        </snapshotRepository>
        <repository>
            <id>gitlab-maven</id>
            <url>${env.CI_SERVER_URL}/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url>
        </repository>
    </distributionManagement>
Antoine Mottier's avatar
Antoine Mottier committed
27

Antoine Mottier's avatar
Antoine Mottier committed
28
29
30
31
32
    <!-- To use Spring boot for webapp -->
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.4.0</version>
33
        <relativePath />
Antoine Mottier's avatar
Antoine Mottier committed
34
35
    </parent>

36
37
38
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.release>11</maven.compiler.release>
Antoine Mottier's avatar
Antoine Mottier committed
39
40
41
42
43
44
45
        <!-- Dependencies version -->
        <!-- To check that dependencies are up to date (will only consider dependencies with version specified as property):
        mvn versions:display-property-updates
        -->
        <!-- Jetty target version (Debian package) is 9.4
        So we need to use Java EE 7 features and Servlet version 3.1 -->
        <servlet.version>3.1.0</servlet.version>
46
47
        <maria.db.jdbc.driver.version>2.7.2</maria.db.jdbc.driver.version>
        <junit.version>5.7.1</junit.version>
Antoine Mottier's avatar
Antoine Mottier committed
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
        <icar.json.version>1.0.0</icar.json.version>
        <slf4j.version>1.7.30</slf4j.version>
        <logback.classic.version>1.2.3</logback.classic.version>
        <!-- Maven plugins version -->
        <plugin.maven.clean.version>3.1.0</plugin.maven.clean.version>
        <plugin.maven.compiler.version>3.8.1</plugin.maven.compiler.version>
        <plugin.maven.install.version>3.0.0-M1</plugin.maven.install.version>
        <plugin.maven.jar.version>3.2.0</plugin.maven.jar.version>
        <plugin.maven.war.version>3.3.1</plugin.maven.war.version>
        <plugin.maven.dependency.version>3.1.2</plugin.maven.dependency.version>
        <plugin.maven.resources.version>3.2.0</plugin.maven.resources.version>
        <plugin.maven.surefire.version>3.0.0-M5</plugin.maven.surefire.version>
        <plugin.maven.failsafe.version>3.0.0-M5</plugin.maven.failsafe.version>
        <plugin.jetty.version>9.4.31.v20200723</plugin.jetty.version>
        <plugin.maven.enforcer.version>3.0.0-M3</plugin.maven.enforcer.version>
        <plugin.versions.version>2.8.1</plugin.versions.version>
        <plugin.maven.site.version>3.9.1</plugin.maven.site.version>
65
66
67
68
69
70
71
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
72
                <version>${servlet.version}</version>
73
74
            </dependency>
            <dependency>
75
76
                <groupId>org.mariadb.jdbc</groupId>
                <artifactId>mariadb-java-client</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
77
                <version>${maria.db.jdbc.driver.version}</version>
78
79
80
81
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-api</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
82
                <version>${junit.version}</version>
83
84
85
86
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-engine</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
87
                <version>${junit.version}</version>
88
89
90
91
            </dependency>
            <dependency>
                <groupId>com.gibello</groupId>
                <artifactId>icar-json</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
92
                <version>${icar.json.version}</version>
93
            </dependency>
94
95
96
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
97
                <version>${slf4j.version}</version>
98
99
100
101
            </dependency>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
102
                <version>${logback.classic.version}</version>
103
            </dependency>
104
105
106
107
108
109
110
111
112
        </dependencies>
    </dependencyManagement>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-clean-plugin</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
113
                    <version>${plugin.maven.clean.version}</version>
114
115
116
117
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
118
                    <version>${plugin.maven.compiler.version}</version>
119
120
121
122
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-install-plugin</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
123
                    <version>${plugin.maven.install.version}</version>
124
125
126
127
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
128
                    <version>${plugin.maven.jar.version}</version>
129
130
131
132
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-war-plugin</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
133
                    <version>${plugin.maven.war.version}</version>
134
135
136
137
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
138
                    <version>${plugin.maven.dependency.version}</version>
139
140
141
142
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
143
                    <version>${plugin.maven.resources.version}</version>
144
145
146
147
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
148
                    <version>${plugin.maven.surefire.version}</version>
149
150
151
152
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-failsafe-plugin</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
153
154
155
156
157
158
                    <version>${plugin.maven.failsafe.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>${plugin.maven.site.version}</version>
159
160
161
162
                </plugin>
                <plugin>
                    <groupId>org.eclipse.jetty</groupId>
                    <artifactId>jetty-maven-plugin</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
163
                    <version>${plugin.jetty.version}</version>
164
                </plugin>
165
166
167
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-enforcer-plugin</artifactId>
Antoine Mottier's avatar
Antoine Mottier committed
168
                    <version>${plugin.maven.enforcer.version}</version>
169
170
171
172
173
174
175
176
177
                    <executions>
                        <execution>
                            <id>enforce-maven</id>
                            <goals>
                                <goal>enforce</goal>
                            </goals>
                            <configuration>
                                <rules>
                                    <requireMavenVersion>
178
                                        <version>3.6.3</version>
179
180
181
182
183
184
185
186
187
                                    </requireMavenVersion>
                                    <requireJavaVersion>
                                        <version>[11.0,11.99999)</version>
                                    </requireJavaVersion>
                                </rules>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
Antoine Mottier's avatar
Antoine Mottier committed
188
189
190
191
192
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>versions-maven-plugin</artifactId>
                    <version>${plugin.versions.version}</version>
                    <configuration>
193
                        <!-- Ignoring rules for now as it prevents the build of individual module
Antoine Mottier's avatar
Antoine Mottier committed
194
                        <rulesUri>file:///${session.executionRootDirectory}/rules.xml</rulesUri>
195
                        -->
Antoine Mottier's avatar
Antoine Mottier committed
196
197
                    </configuration>
                </plugin>
198
199
            </plugins>
        </pluginManagement>
200
201
202
203
204
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
            </plugin>
Antoine Mottier's avatar
Antoine Mottier committed
205
206
207
208
209
210
211
212
213
214
215
216
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>versions-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>display-property-updates</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
217
218
219
220
221
222
223
224
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <!-- Avoid inclusion of project name in tag name -->
                    <tagNameFormat>@{project.version}</tagNameFormat>
                </configuration>
            </plugin>
225
        </plugins>
226
227
228
229
    </build>

    <modules>
        <module>data-collection</module>
230
        <module>webapp</module>
231
232
233
    </modules>

</project>