-
Notifications
You must be signed in to change notification settings - Fork 4
/
pom.xml
215 lines (189 loc) · 8.48 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
81
82
83
84
85
86
87
88
89
90
91
92
93
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<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">
<!--
NOTE: (N. Baltzell)
Since some of the third-party jars included with evio in java/jars do not have
remote maven repositories, we install them in the local maven repository during
the build procedure. This is currently done in the "clean" lifecycle (with the
maven-install-plugin below), due to issues getting it to work properly during
"install" (which seems to maybe be a real maven limitation). There may be a
better/easier way to do this and still have a simple maven build command ...
Therefore, meanwhile, you have to clean first:
1. mvn clean
2. mvn install
-->
<modelVersion>4.0.0</modelVersion>
<!-- name to appear in generated jars etc. -->
<artifactId>jevio</artifactId>
<!-- name of the project -->
<name>Java EVIO Library</name>
<!-- description of project -->
<description>Java EVIO Library (JEVIO)</description>
<!-- group's ID e.g. JLab CODA group which determines directory structure in repo -->
<groupId>org.jlab.coda</groupId>
<!-- current rolling version using snapshot release -->
<version>6.0-SNAPSHOT</version>
<properties>
<!-- Make java version 8 jar -->
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- define version numbers, for convenience below -->
<!-- the "1.0" are fake, for jars that come with jevio but w/o a version -->
<lz4.version>1.8.0</lz4.version>
<disruptor.version>3.4.3</disruptor.version>
<aha.version>1.0</aha.version>
</properties>
<!-- Package code into jar file -->
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>net.jpountz.lz4</groupId>
<artifactId>lz4-java</artifactId>
<version>${lz4.version}</version>
</dependency>
<dependency>
<groupId>com.lmax</groupId>
<artifactId>disruptor</artifactId>
<version>${disruptor.version}</version>
</dependency>
<dependency>
<groupId>com.aha.compression</groupId>
<artifactId>AHACompressionAPI</artifactId>
<version>${aha.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>RELEASE</version>
<scope>test</scope>
</dependency>
</dependencies>
<!-- build customization -->
<build>
<sourceDirectory>./java/</sourceDirectory>
<!--<defaultGoal>install</defaultGoal>-->
<!-- copy jar into external directory -->
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh-external</artifactId>
<version>2.8</version>
</extension>
</extensions>
<plugins>
<plugin>
<!-- install included 3rd-party jars into local maven repo, before compilation -->
<!--
Couldn't figure out how to do this such that the install-file plugin runs
automatically during install/package and early enough. As is, you have to
run "mvn clean" first (or "mvn clean install").
-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>aha</id>
<phase>clean</phase>
<goals><goal>install-file</goal></goals>
<configuration>
<file>java/jars/AHACompressionAPI.jar</file>
<groupId>com.aha.compression</groupId>
<artifactId>AHACompressionAPI</artifactId>
<version>${aha.version}</version>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>disruptor</id>
<phase>clean</phase>
<goals><goal>install-file</goal></goals>
<configuration>
<file>java/jars/disruptor-${disruptor.version}.jar</file>
<groupId>com.lmax</groupId>
<artifactId>disruptor</artifactId>
<version>${disruptor.version}</version>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>lz4</id>
<phase>clean</phase>
<goals><goal>install-file</goal></goals>
<configuration>
<file>java/jars/lz4-java-${lz4.version}.jar</file>
<groupId>net.jpountz.lz4</groupId>
<artifactId>lz4-java</artifactId>
<version>${lz4.version}</version>
<packaging>jar</packaging>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<manifest>
<mainClass>org.jlab.coda.hipo.Evio6Converter</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy-installed</id>
<phase>install</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>${project.packaging}</type>
</artifactItem>
</artifactItems>
<!--
This appears to just create an unnecessary output.
Maybe/probably this enire plugin is unnecessary.
<outputDirectory>${env.CODA}/common/jar</outputDirectory>
-->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!-- distribution for deployment -->
<distributionManagement>
<repository>
<id>ssh-clasweb</id>
<url>scpexe://clas12@jlabl5/group/clas/www/clasweb/html/clas12maven</url>
</repository>
</distributionManagement>
</project>