pom.xml 9.78 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2
<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">
3
4
5
6
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.dcache</groupId>
    <artifactId>dcache-cta</artifactId>
7
    <version>0.3.0-SNAPSHOT</version>
8
9
10
11
    <packaging>jar</packaging>

    <name>dCache Nearline Storage Driver for CTA</name>

Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
12
13
14
15
16
    <organization>
        <name>dCache.org</name>
        <url>https://dcache.org/</url>
    </organization>

17
    <properties>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
18
        <version.dcache>7.2.2</version.dcache>
19
        <java.version>11</java.version>
20
        <version.grpc>1.42.1</version.grpc>
21
22
23
24
    </properties>

    <licenses>
        <license>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
25
26
27
            <name>GNU Affero General Public License Version 3</name>
            <url>http://www.gnu.org/licenses/agpl-3.0.txt</url>
            <distribution>manual</distribution>
28
29
30
        </license>
    </licenses>

Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
31
    <scm>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
32
33
        <connection>scm:git:https://github.com/dCache/dcache-cta.git</connection>
        <developerConnection>scm:git:ssh://git@github.com/dCache/dcache-cta.git</developerConnection>
34
        <tag>HEAD</tag>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
35
36
    </scm>

37
38
39
40
41
42
43
44
45
46
47
48
49
    <repositories>
        <repository>
            <id>dcache.repository</id>
            <url>https://download.dcache.org/nexus/content/groups/public</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>org.dcache</groupId>
            <artifactId>dcache-nearline-spi</artifactId>
            <version>${version.dcache}</version>
        </dependency>
50
51
52
        <dependency>
            <groupId>com.google.protobuf</groupId>
            <artifactId>protobuf-java</artifactId>
53
            <version>3.19.1</version>
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
        </dependency>

        <!-- enforce Java11 compliant version -->
        <dependency>
            <groupId>javax.annotation</groupId>
            <artifactId>javax.annotation-api</artifactId>
            <version>1.3.2</version>
        </dependency>

        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-netty-shaded</artifactId>
            <version>${version.grpc}</version>
        </dependency>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-protobuf</artifactId>
            <version>${version.grpc}</version>
        </dependency>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-stub</artifactId>
            <version>${version.grpc}</version>
        </dependency>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-tcnative-boringssl-static</artifactId>
81
            <version>2.0.45.Final</version>
82
            <scope>provided</scope>
83
        </dependency>
84
85
86
87
        <dependency>
            <groupId>org.dcache</groupId>
            <artifactId>xrootd4j</artifactId>
            <version>4.2.0</version>
88
            <scope>provided</scope>
89
        </dependency>
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
90
91
92
93
94
95
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.13.1</version>
            <scope>test</scope>
        </dependency>
96
97
98
99
100
101
102
103
104
105
106
107
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <version>3.11.2</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
            <version>2.2</version>
            <scope>test</scope>
        </dependency>
108
109
110
    </dependencies>

    <build>
111
112
113
        <extensions>
            <extension>
                <artifactId>os-maven-plugin</artifactId>
114
                <groupId>kr.motd.maven</groupId>
115
116
117
118
                <version>1.6.1</version>
            </extension>
        </extensions>

119
        <plugins>
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
            <plugin>
                <groupId>pl.project13.maven</groupId>
                <artifactId>git-commit-id-plugin</artifactId>
                <version>4.0.3</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>revision</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
                    <runOnlyOnce>true</runOnlyOnce>
                    <skipPoms>false</skipPoms>
                    <injectAllReactorProjects>true</injectAllReactorProjects>
                    <useNativeGit>false</useNativeGit>
                    <gitDescribe>
                        <always>true</always>
                        <dirty>+dirty+${user.name}</dirty>
                    </gitDescribe>
                </configuration>
            </plugin>


            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
148
                <version>3.2.0</version>
149
150
151
152
153
154
155
156
157
158
159
160
161
162
                <executions>
                    <execution>
                        <id>regex-property</id>
                        <goals>
                            <goal>regex-property</goal>
                        </goals>
                        <configuration>
                            <name>tar.version</name>
                            <value>${project.version}</value>
                            <regex>-SNAPSHOT</regex>
                            <replacement>-\${git.commit.id.abbrev}</replacement>
                            <failIfNoMatch>false</failIfNoMatch>
                        </configuration>
                    </execution>
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
                    <execution>
                        <id>test</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>add-source</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>${basedir}/target/generated-sources/protobuf/java</source>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

178
179
180
181
182
183
184
185
186
187
188
189
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <encoding>UTF-8</encoding>
                    <fork>true</fork>
                    <release>${java.version}</release>
                    <showDeprecation>true</showDeprecation>
                </configuration>
            </plugin>

190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
            <!-- compile proto file into java files. -->
            <plugin>
                <groupId>org.xolstice.maven.plugins</groupId>
                <artifactId>protobuf-maven-plugin</artifactId>
                <version>0.6.1</version>
                <configuration>
                    <protocArtifact>com.google.protobuf:protoc:3.10.0:exe:${os.detected.classifier}
                    </protocArtifact>
                    <pluginId>grpc-java</pluginId>
                    <pluginArtifact>
                        io.grpc:protoc-gen-grpc-java:${version.grpc}:exe:${os.detected.classifier}
                    </pluginArtifact>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                            <goal>compile-custom</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.6</version>
                <executions>
                    <execution>
                        <id>make-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <descriptors>
                                <descriptor>src/main/assembly/plugin.xml</descriptor>
                            </descriptors>
                            <appendAssemblyId>false</appendAssemblyId>
229
                            <finalName>${artifactId}-${tar.version}</finalName>
230
231
232
233
234
235
236
237
                            <formats>
                                <format>dir</format>
                                <format>tar.gz</format>
                            </formats>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
238
239
240
241
242
243
244
245
246
247
248
249
250
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.2.0</version>
                <configuration>
                    <archive>
                        <manifestEntries>
                            <version>${project.version}</version>
                            <build-timestamp>${maven.build.timestamp}</build-timestamp>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
251
252
253
254
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.8.6</version>
255
256
257
258
259
260
                <configuration>
                    <excludes>
                        <exclude>cta/**/*.class</exclude>
                        <exclude>org/dcache/cta/rpc/**/*.class</exclude>
                    </excludes>
                </configuration>
261
            </plugin>
262
263
264
        </plugins>
    </build>
</project>