forked from BurstProject/burstcoin
-
Notifications
You must be signed in to change notification settings - Fork 44
/
pom.xml
198 lines (169 loc) · 6.15 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
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>burstcoin</groupId>
<artifactId>burstcoin</artifactId>
<version>1.2.9</version>
<packaging>jar</packaging>
<properties>
<java.version>1.8</java.version>
<jocl.version>0.1.9</jocl.version>
<bcprov-jdk15on.version>1.57</bcprov-jdk15on.version>
<h2.version>1.4.196</h2.version>
<jetty.version>9.2.22.v20170606</jetty.version>
<json-simple.version>1.1.1</json-simple.version>
<javax.servlet-api.version>3.1.0</javax.servlet-api.version>
<slf4j.version>1.7.25</slf4j.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${javax.servlet-api.version}</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${h2.version}</version>
</dependency>
<dependency>
<groupId>org.jocl</groupId>
<artifactId>jocl</artifactId>
<version>${jocl.version}</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>${bcprov-jdk15on.version}</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>${json-simple.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlets</artifactId>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>${slf4j.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/java</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>nxt.Nxt</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>ant-clear</id>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<!-- clear dist dir -->
<delete dir="${project.basedir}/dist"/>
<mkdir dir="${project.basedir}/dist"/>
<mkdir dir="${project.basedir}/dist/tmp"/>
</target>
</configuration>
</execution>
<execution>
<id>ant-zip</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<!-- copy jar -->
<move file="${project.basedir}/target/${project.build.finalName}-jar-with-dependencies.jar"
tofile="${project.basedir}/dist/tmp/burst.jar" />
<!-- copy html dir -->
<copy todir="${project.basedir}/dist/tmp/html">
<fileset dir="${project.basedir}/html">
</fileset>
</copy>
<!-- copy properties from conf dir -->
<copy todir="${project.basedir}/dist/tmp/conf">
<fileset dir="${project.basedir}/conf">
<include name="logging-default.properties"/>
<include name="nxt-default.properties"/>
</fileset>
</copy>
<!-- copy remaining files from root dir -->
<copy todir="${project.basedir}/dist/tmp">
<fileset dir="${project.basedir}">
<include name="Burst_Wallet.url"/>
<include name="genscoop.cl"/>
<include name="MIT-license.txt"/>
<include name="Readme.txt"/>
<include name="run(legacy).bat"/>
<include name="run.bat"/>
</fileset>
</copy>
<!-- workaround to keep org. run.sh working, if build with compile scripts -->
<copy file="${project.basedir}/run-mvn-build.sh" tofile="${project.basedir}/dist/tmp/run.sh" />
<!-- create zip file -->
<zip destfile="${project.basedir}/dist/${project.build.finalName}.zip" basedir="${project.basedir}/dist/tmp"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>