1+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3+ <modelVersion >4.0.0</modelVersion >
4+ <groupId >com.baeldung</groupId >
5+ <artifactId >disruptor</artifactId >
6+ <version >0.1.0-SNAPSHOT</version >
7+ <packaging >jar</packaging >
8+
9+ <name >disruptor</name >
10+
11+ <dependencies >
12+
13+ <!-- utils -->
14+ <dependency >
15+ <groupId >org.apache.commons</groupId >
16+ <artifactId >commons-lang3</artifactId >
17+ <version >${commons-lang3.version} </version >
18+ </dependency >
19+
20+ <dependency >
21+ <groupId >com.lmax</groupId >
22+ <artifactId >disruptor</artifactId >
23+ <version >${disruptor.version} </version >
24+ </dependency >
25+
26+ <!-- logging -->
27+
28+ <dependency >
29+ <groupId >org.slf4j</groupId >
30+ <artifactId >slf4j-api</artifactId >
31+ <version >${org.slf4j.version} </version >
32+ </dependency >
33+ <dependency >
34+ <groupId >ch.qos.logback</groupId >
35+ <artifactId >logback-classic</artifactId >
36+ <version >${logback.version} </version >
37+ </dependency >
38+ <dependency >
39+ <groupId >org.slf4j</groupId >
40+ <artifactId >jcl-over-slf4j</artifactId >
41+ <version >${org.slf4j.version} </version >
42+ </dependency >
43+ <dependency >
44+ <groupId >org.slf4j</groupId >
45+ <artifactId >log4j-over-slf4j</artifactId >
46+ <version >${org.slf4j.version} </version >
47+ </dependency >
48+
49+ <!-- test scoped -->
50+
51+ <dependency >
52+ <groupId >org.hamcrest</groupId >
53+ <artifactId >hamcrest-all</artifactId >
54+ <version >1.3</version >
55+ <scope >test</scope >
56+ </dependency >
57+
58+ <dependency >
59+ <groupId >junit</groupId >
60+ <artifactId >junit</artifactId >
61+ <version >${junit.version} </version >
62+ <scope >test</scope >
63+ </dependency >
64+
65+ <dependency >
66+ <groupId >org.hamcrest</groupId >
67+ <artifactId >hamcrest-core</artifactId >
68+ <version >${org.hamcrest.version} </version >
69+ <scope >test</scope >
70+ </dependency >
71+ <dependency >
72+ <groupId >org.hamcrest</groupId >
73+ <artifactId >hamcrest-library</artifactId >
74+ <version >${org.hamcrest.version} </version >
75+ <scope >test</scope >
76+ </dependency >
77+
78+ </dependencies >
79+
80+ <build >
81+ <finalName >disruptor</finalName >
82+ <resources >
83+ <resource >
84+ <directory >src/main/resources</directory >
85+ <filtering >true</filtering >
86+ </resource >
87+ </resources >
88+
89+ <plugins >
90+
91+ <plugin >
92+ <groupId >org.apache.maven.plugins</groupId >
93+ <artifactId >maven-compiler-plugin</artifactId >
94+ <version >${maven-compiler-plugin.version} </version >
95+ <configuration >
96+ <source >1.8</source >
97+ <target >1.8</target >
98+ </configuration >
99+ </plugin >
100+
101+ <plugin >
102+ <groupId >org.apache.maven.plugins</groupId >
103+ <artifactId >maven-surefire-plugin</artifactId >
104+ <version >${maven-surefire-plugin.version} </version >
105+ </plugin >
106+
107+ <plugin >
108+ <groupId >org.apache.maven.plugins</groupId >
109+ <artifactId >maven-dependency-plugin</artifactId >
110+ <executions >
111+ <execution >
112+ <id >copy-dependencies</id >
113+ <phase >prepare-package</phase >
114+ <goals >
115+ <goal >copy-dependencies</goal >
116+ </goals >
117+ <configuration >
118+ <outputDirectory >${project.build.directory} /libs</outputDirectory >
119+ </configuration >
120+ </execution >
121+ </executions >
122+ </plugin >
123+
124+ <plugin >
125+ <groupId >org.apache.maven.plugins</groupId >
126+ <artifactId >maven-jar-plugin</artifactId >
127+ <configuration >
128+ <archive >
129+ <manifest >
130+ <addClasspath >true</addClasspath >
131+ <classpathPrefix >libs/</classpathPrefix >
132+ <mainClass >org.baeldung.executable.ExecutableMavenJar</mainClass >
133+ </manifest >
134+ </archive >
135+ </configuration >
136+ </plugin >
137+
138+ <plugin >
139+ <groupId >org.apache.maven.plugins</groupId >
140+ <artifactId >maven-assembly-plugin</artifactId >
141+ <executions >
142+ <execution >
143+ <phase >package</phase >
144+ <goals >
145+ <goal >single</goal >
146+ </goals >
147+ <configuration >
148+ <archive >
149+ <manifest >
150+ <mainClass >org.baeldung.executable.ExecutableMavenJar</mainClass >
151+ </manifest >
152+ </archive >
153+ <descriptorRefs >
154+ <descriptorRef >jar-with-dependencies</descriptorRef >
155+ </descriptorRefs >
156+ </configuration >
157+ </execution >
158+ </executions >
159+ </plugin >
160+
161+ <plugin >
162+ <groupId >org.apache.maven.plugins</groupId >
163+ <artifactId >maven-shade-plugin</artifactId >
164+ <executions >
165+ <execution >
166+ <goals >
167+ <goal >shade</goal >
168+ </goals >
169+ <configuration >
170+ <shadedArtifactAttached >true</shadedArtifactAttached >
171+ <transformers >
172+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
173+ <mainClass >org.baeldung.executable.ExecutableMavenJar</mainClass >
174+ </transformer >
175+ </transformers >
176+ </configuration >
177+ </execution >
178+ </executions >
179+ </plugin >
180+
181+ <plugin >
182+ <groupId >com.jolira</groupId >
183+ <artifactId >onejar-maven-plugin</artifactId >
184+ <executions >
185+ <execution >
186+ <configuration >
187+ <mainClass >org.baeldung.executable.ExecutableMavenJar</mainClass >
188+ <attachToBuild >true</attachToBuild >
189+ <filename >${project.build.finalName} -onejar.${project.packaging} </filename >
190+ </configuration >
191+ <goals >
192+ <goal >one-jar</goal >
193+ </goals >
194+ </execution >
195+ </executions >
196+ </plugin >
197+
198+ </plugins >
199+
200+ </build >
201+
202+ <profiles >
203+ <profile >
204+ <id >integration</id >
205+ <build >
206+ <plugins >
207+ <plugin >
208+ <groupId >org.apache.maven.plugins</groupId >
209+ <artifactId >maven-surefire-plugin</artifactId >
210+ <executions >
211+ <execution >
212+ <phase >integration-test</phase >
213+ <goals >
214+ <goal >test</goal >
215+ </goals >
216+ </execution >
217+ </executions >
218+ <configuration >
219+ <systemPropertyVariables >
220+ <test .mime>json</test .mime>
221+ </systemPropertyVariables >
222+ </configuration >
223+ </plugin >
224+ </plugins >
225+ </build >
226+ </profile >
227+ </profiles >
228+
229+ <properties >
230+ <!-- logging -->
231+ <org .slf4j.version>1.7.21</org .slf4j.version>
232+ <logback .version>1.1.7</logback .version>
233+
234+ <!-- util -->
235+ <commons-lang3 .version>3.5</commons-lang3 .version>
236+ <disruptor .version>3.3.6</disruptor .version>
237+
238+ <!-- testing -->
239+ <org .hamcrest.version>1.3</org .hamcrest.version>
240+ <junit .version>4.12</junit .version>
241+ <mockito .version>1.10.19</mockito .version>
242+ <testng .version>6.10</testng .version>
243+ <assertj .version>3.6.1</assertj .version>
244+
245+ <!-- maven plugins -->
246+ <maven-compiler-plugin .version>3.6.0</maven-compiler-plugin .version>
247+ <maven-surefire-plugin .version>2.19.1</maven-surefire-plugin .version>
248+
249+ </properties >
250+
251+ </project >
0 commit comments