pom.xml 9.78 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/xsd/maven-4.0.0.xsd">
2

3
  <modelVersion>4.0.0</modelVersion>
4

5
  <description>
6
        Pure Java implementation NFSv3, v4 and v4.1
7
  </description>
8

9
10
  <groupId>org.dcache</groupId>
  <artifactId>nfs4j</artifactId>
11
  <version>0.23.0-SNAPSHOT</version>
12
13
  <name>Java based NFSv4.1 implementation</name>
  <packaging>pom</packaging>
14

15
  <url>http://www.dCache.ORG</url>
16

17
  <scm>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
18
      <connection>scm:git:https://github.com/dCache/nfs4j.git</connection>
19
      <developerConnection>scm:git:ssh://git@github.com/dCache/nfs4j.git</developerConnection>
20
    <tag>HEAD</tag>
21
  </scm>
22

23
24
25
26
27
28
29
30
31
32
33
34
35
36
  <!--
    CODE LICENSE
  -->
  <licenses>
    <license>
      <name>
        GNU Lesser General Public License
      </name>
      <url>
        http://www.fsf.org/licensing/licenses/lgpl.txt
      </url>
      <distribution>repo</distribution>
    </license>
  </licenses>
37

38
39
  <modules>
      <module>core</module>
40
      <module>basic-client</module>
41
      <module>spring</module>
42
      <module>dlm</module>
43
      <module>benchmarks</module>
44
  </modules>
45

Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
46
47
  <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
48
      <java.version>11</java.version>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
49
50
  </properties>

51
52
53
54
55
56
57
58
59
60
61
62
63
64
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-pmd-plugin</artifactId>
          <version>3.0.1</version>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
65
            <version>3.8.1</version>
66
67
            <configuration>
                <showDeprecation>true</showDeprecation>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
68
69
70
71
                <release>${java.version}</release>
                <!-- without forking compilation happens in the
                same process, so no arguments are applied -->
                <fork>true</fork>
72
73
            </configuration>
        </plugin>
74
75
76
77
78
79
80
81
82
83
84
85
	<plugin>
	    <groupId>org.apache.maven.plugins</groupId>
	    <artifactId>maven-release-plugin</artifactId>
	    <version>2.4.2</version>
	    <dependencies>
		<dependency>
		    <groupId>org.apache.maven.scm</groupId>
		    <artifactId>maven-scm-provider-gitexe</artifactId>
		    <version>1.9</version>
		</dependency>
	    </dependencies>
	</plugin>
86
        <plugin>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
87
88
89
            <groupId>com.github.spotbugs</groupId>
            <artifactId>spotbugs-maven-plugin</artifactId>
            <version>3.1.12</version>
90
91
92
            <configuration>
               <excludeFilterFile>${maven.multiModuleProjectDirectory}/spotbugs-exclude.xml</excludeFilterFile>
            </configuration>
93
        </plugin>
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
        <plugin>
            <groupId>org.jacoco</groupId>
            <artifactId>jacoco-maven-plugin</artifactId>
            <version>0.8.2</version>
            <executions>
                <!--
                    Prepares the property pointing to the JaCoCo runtime agent which
                    is passed as VM argument when Maven the Surefire plugin is executed.
                -->
                <execution>
                    <id>pre-unit-test</id>
                    <goals>
                        <goal>prepare-agent</goal>
                    </goals>
                    <configuration>
                        <!-- Sets the path to the file which contains the execution data. -->
                        <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
                    </configuration>
                </execution>
                <!--
                    Ensures that the code coverage report for unit tests is created after
                    unit tests have been run.
                -->
                <execution>
                    <id>post-unit-test</id>
                    <phase>test</phase>
                    <goals>
                        <goal>report</goal>
                    </goals>
                    <configuration>
                        <!-- Sets the path to the file which contains the execution data. -->
                        <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
                        <!-- Sets the output directory for the code coverage report. -->
                        <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
                    </configuration>
                </execution>
            </executions>
        </plugin>
132
133
    </plugins>
  </build>
134

135
136
137
138
139
  <!--
    EXTERNAL DEPENDENCIES
  -->
  <dependencyManagement>
      <dependencies>
140
141
142
143
144
145
          <dependency>
              <groupId>com.google.jimfs</groupId>
              <artifactId>jimfs</artifactId>
              <version>1.1</version>
              <scope>test</scope>
          </dependency>
146
          <dependency>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
147
              <groupId>org.jline</groupId>
148
              <artifactId>jline</artifactId>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
149
              <version>3.14.0</version>
150
151
152
153
          </dependency>
          <dependency>
              <groupId>junit</groupId>
              <artifactId>junit</artifactId>
154
              <version>4.13.1</version>
155
156
157
158
159
              <scope>test</scope>
          </dependency>
          <dependency>
              <groupId>org.mockito</groupId>
              <artifactId>mockito-core</artifactId>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
160
              <version>2.28.2</version>
161
162
163
              <scope>test</scope>
          </dependency>
          <dependency>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
164
165
166
167
168
169
              <groupId>org.hamcrest</groupId>
              <artifactId>hamcrest-core</artifactId>
              <version>2.1</version>
              <scope>test</scope>
          </dependency>
          <dependency>
170
171
              <groupId>org.slf4j</groupId>
              <artifactId>slf4j-api</artifactId>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
172
              <version>1.7.25</version>
173
174
175
176
          </dependency>
          <dependency>
              <groupId>org.slf4j</groupId>
              <artifactId>log4j-over-slf4j</artifactId>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
177
              <version>1.7.25</version>
178
179
180
181
          </dependency>
          <dependency>
              <groupId>ch.qos.logback</groupId>
              <artifactId>logback-classic</artifactId>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
182
              <version>1.2.3</version>
183
184
185
186
          </dependency>
          <dependency>
              <groupId>com.google.guava</groupId>
              <artifactId>guava</artifactId>
187
              <version>24.1.1-jre</version>
188
          </dependency>
189
190
191
192
193
          <dependency>
              <groupId>org.springframework</groupId>
              <artifactId>spring-context</artifactId>
              <version>4.0.3.RELEASE</version>
          </dependency>
194
195
196
          <dependency>
              <groupId>org.dcache</groupId>
              <artifactId>oncrpc4j-core</artifactId>
197
              <version>3.1.0</version>
198
          </dependency>
199
200
201
202
203
204
205
206
207
208
          <dependency>
              <groupId>com.hazelcast</groupId>
              <artifactId>hazelcast</artifactId>
              <version>3.9.2</version>
          </dependency>
          <dependency>
              <groupId>com.hazelcast</groupId>
              <artifactId>hazelcast-client</artifactId>
              <version>3.9.2</version>
          </dependency>
209
210
211
212
213
          <dependency>
              <groupId>com.sleepycat</groupId>
              <artifactId>je</artifactId>
              <version>7.3.7</version>
          </dependency>
214
215
216
217
218
219
220
221
222
223
          <dependency>
              <groupId>org.openjdk.jmh</groupId>
              <artifactId>jmh-core</artifactId>
              <version>1.21</version>
          </dependency>
          <dependency>
              <groupId>org.openjdk.jmh</groupId>
              <artifactId>jmh-generator-annprocess</artifactId>
              <version>1.21</version>
          </dependency>
224
225
      </dependencies>
  </dependencyManagement>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
226

227
228
229
230
231
232
233
  <!--
    MAVEN REPOSITORIES
  -->
  <repositories>
    <repository>
      <id>maven2-repository.dcache.org</id>
      <name>dCache.ORG Repository for Maven</name>
234
      <url>https://download.dcache.org/nexus/content/groups/public/</url>
235
236
237
238
239
      <layout>default</layout>
    </repository>
    <repository>
      <id>dcache-snapshots</id>
      <name>dCache.ORG snapshots repository</name>
240
      <url>https://download.dcache.org/nexus/content/repositories/snapshots</url>
241
242
243
      <layout>default</layout>
    </repository>
  </repositories>
244
245

    <!--
246
                 MAVEN DEPLOYMENT REPOSITORY
247
    -->
248
249
250
251
252
253
254
255
256
257
258
  <distributionManagement>
      <repository>
          <id>dcache.org</id>
          <url>https://download.dcache.org/nexus/content/repositories/releases</url>
      </repository>
      <snapshotRepository>
          <id>dcache.org-snapshot</id>
          <url>https://download.dcache.org/nexus/content/repositories/snapshots</url>
      </snapshotRepository>
  </distributionManagement>

259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
  <profiles>
      <profile>
          <id>sign-artifacts</id>
          <activation>
              <property>
                  <name>performRelease</name>
                  <value>true</value>
              </property>
          </activation>
          <build>
              <plugins>
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-gpg-plugin</artifactId>
                      <version>1.6</version>
                      <configuration>
                          <passphrase>${gpg.passphrase}</passphrase>
                      </configuration>
                      <executions>
                          <execution>
                              <id>sign-artifacts</id>
                              <phase>verify</phase>
                              <goals>
                                  <goal>sign</goal>
                              </goals>
                          </execution>
                      </executions>
                  </plugin>
              </plugins>
          </build>
      </profile>
    </profiles>

292
</project>