-
Notifications
You must be signed in to change notification settings - Fork 4
/
pom.xml
227 lines (226 loc) · 10.2 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
216
217
218
219
220
221
222
223
224
225
226
227
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ The MIT License (MIT)
~
~ Copyright (c) 2013 Marek Mikuliszyn
~
~ Permission is hereby granted, free of charge, to any person obtaining a copy
~ of this software and associated documentation files (the "Software"), to deal
~ in the Software without restriction, including without limitation the rights
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
~ copies of the Software, and to permit persons to whom the Software is
~ furnished to do so, subject to the following conditions:
~
~ The above copyright notice and this permission notice shall be included in
~ all copies or substantial portions of the Software.
~
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
~ THE SOFTWARE.
-->
<!--
The following is an example Maven pom file which allows the user to
to build JForex-SDK by using the latest version of dependencies
from dukascopy public repository with command: mvn clean install
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.dukascopy.dds2</groupId>
<artifactId>JForex-SDK</artifactId>
<version>2.31</version>
<organization>
<name>Dukascopy Bank SA</name>
<url>http://www.dukascopy.com</url>
</organization>
<repositories>
<repository>
<id>dc_public</id>
<name>Dukascopy public repository</name>
<url>http://www.dukascopy.com/client/jforexlib/publicrepo/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.dukascopy.dds2</groupId>
<artifactId>DDS2-jClient-JForex</artifactId>
<!-- find the latest available version here:
http://www.dukascopy.com/client/jforexlib/publicrepo/com/dukascopy/dds2/DDS2-jClient-JForex/
-->
<version>2.31</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- find the latest available version here:
http://www.dukascopy.com/client/jforexlib/publicrepo/com/dukascopy/api/JForex-API/
-->
<dependency>
<groupId>com.dukascopy.api</groupId>
<artifactId>JForex-API</artifactId>
<version>2.9.6.1</version>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.4</version>
<optional>true</optional>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>rc</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<inherited>true</inherited>
<configuration>
<source>1.6</source>
<target>1.6</target>
<fork>true</fork>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<!-- Run with mvn assembly:assembly -P order-table parameter to build the OrderTable.jar
Note that if you wish to build multiple assembly profiles at a time, you need include them in execution blocks with
goal=single -->
<id>order-table</id>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifestEntries>
<pluginMainClass>jforex.plugin.ordertable.OrderTablePlugin</pluginMainClass>
</manifestEntries>
</archive>
<appendAssemblyId>false</appendAssemblyId>
<attach>false</attach>
<artifactId>order-table-plugin</artifactId>
<finalName>OrderTable</finalName>
<packaging>jar</packaging>
<descriptors>
<descriptor>
assemblies\jar-assembly-order-table-plugin.xml
</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- Run with mvn assembly:assembly -P summarizer-plugin parameter to build the IndicatorSummarizer.jar.
-->
<id>summarizer-plugin</id>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifestEntries>
<pluginMainClass>jforex.plugin.summarizer.IndicatorSummarizer</pluginMainClass>
</manifestEntries>
</archive>
<appendAssemblyId>false</appendAssemblyId>
<attach>false</attach>
<artifactId>summarizer-plugin</artifactId>
<finalName>IndicatorSummarizer</finalName>
<packaging>jar</packaging>
<descriptors>
<descriptor>
assemblies\jar-assembly-summarizer-plugin.xml
</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- Run with mvn assembly:assembly -P strategy-manager-plugin parameter to build the StrategyManager.jar.
-->
<id>strategy-manager-plugin</id>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifestEntries>
<pluginMainClass>jforex.plugin.strategies.StratTablePlugin</pluginMainClass>
</manifestEntries>
</archive>
<appendAssemblyId>false</appendAssemblyId>
<attach>false</attach>
<artifactId>strategy-manager</artifactId>
<finalName>StrategyManager</finalName>
<packaging>jar</packaging>
<descriptors>
<descriptor>
assemblies\jar-assembly-strategy-manager-plugin.xml
</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- Run with mvn assembly:assembly -P order-table-sdk parameter to build the OrderTableSdk.jar, which contains all JForex-SDK
dependencies
then run it from console with java -jar target\OrderTableSdk.jar -->
<id>order-table-sdk</id>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifestEntries>
<pluginMainClass>jforex.plugin.ordertable.OrderTablePlugin</pluginMainClass>
</manifestEntries>
<manifest>
<mainClass>jforex.plugin.ordertable.OrderTableFromSdk</mainClass>
</manifest>
</archive>
<appendAssemblyId>false</appendAssemblyId>
<attach>false</attach>
<artifactId>order-table-plugin-sdk</artifactId>
<finalName>OrderTableSdk</finalName>
<packaging>jar</packaging>
<descriptors>
<descriptor>
assemblies\jar-assembly-order-table-sdk.xml
</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>