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
- <modelVersion >4.0.0</modelVersion >
4
- <properties >
5
- <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
6
- <maven .compiler.source>1.8</maven .compiler.source>
7
- <maven .compiler.target>1.8</maven .compiler.target>
8
-
9
- <!-- Ant-style directory layout -->
10
- <src .dir>src</src .dir>
11
-
12
-
13
- <maven .build.timestamp.format>yyyy-MM-dd HH:mm:ss z</maven .build.timestamp.format>
14
- <buildDate >${maven.build.timestamp}</buildDate >
15
-
16
- </properties >
17
-
18
- <!-- =========================================================== -->
19
- <!-- Module Description -->
20
- <!-- =========================================================== -->
21
- <groupId >javaxt</groupId >
22
- <artifactId >javaxt-express</artifactId >
23
- <version >dev</version >
24
- <packaging >jar</packaging >
25
-
26
-
27
- <!-- =========================================================== -->
28
- <!-- Dependency Management -->
29
- <!-- =========================================================== -->
30
- <repositories >
31
- <repository >
32
- <id >javaxt.com</id >
33
- <url >https://www.javaxt.com/maven</url >
34
- </repository >
35
- </repositories >
36
- <dependencies >
37
-
38
-
39
- <!-- JavaXT Core Dependencies -->
40
- <dependency >
41
- <groupId >javaxt</groupId >
42
- <artifactId >javaxt-core</artifactId >
43
- <version >2.1.9</version >
44
- </dependency >
45
- <dependency >
46
- <groupId >javaxt</groupId >
47
- <artifactId >javaxt-server</artifactId >
48
- <version >4.1.2</version >
49
- </dependency >
50
- <dependency >
51
- <groupId >javaxt</groupId >
52
- <artifactId >javaxt-orm</artifactId >
53
- <version >1.2.1</version >
54
- </dependency >
55
-
56
-
57
- <!-- JavaScript Parser (Required by javaxt-orm) -->
58
- <dependency >
59
- <groupId >org.openjdk.nashorn</groupId >
60
- <artifactId >nashorn-core</artifactId >
61
- <version >15.4</version >
62
- </dependency >
63
-
64
-
65
- <!-- SQL Parser (Optional at runtime) -->
66
- <dependency >
67
- <groupId >com.github.jsqlparser</groupId >
68
- <artifactId >jsqlparser</artifactId >
69
- <version >4.1</version >
70
- </dependency >
71
-
72
-
73
- <!-- Mail (Optional at runtime if mail service is not needed) -->
74
- <dependency >
75
- <groupId >com.sun.mail</groupId >
76
- <artifactId >jakarta.mail</artifactId >
77
- <version >2.0.1</version >
78
- </dependency >
79
-
80
-
81
- <!-- JavaScript Compressor (Optional at runtime if not using the deployment scripts) -->
82
- <dependency >
83
- <groupId >com.yahoo.platform.yui</groupId >
84
- <artifactId >yuicompressor</artifactId >
85
- <version >2.4.8</version >
86
- </dependency >
87
-
88
-
89
- <!-- H2 Database (100% Optional. For demo use only. See Server.java) -->
90
- <dependency >
91
- <groupId >com.h2database</groupId >
92
- <artifactId >h2</artifactId >
93
- <version >2.2.224</version >
94
- </dependency >
95
-
96
- </dependencies >
97
-
98
-
99
-
100
- <!-- =========================================================== -->
101
- <!-- Build Info -->
102
- <!-- =========================================================== -->
103
- <build >
104
-
105
- <sourceDirectory >${src.dir} </sourceDirectory >
106
-
107
-
108
- <plugins >
109
-
110
- <!-- Copy dependencies into the lib folder -->
111
- <plugin >
112
- <artifactId >maven-dependency-plugin</artifactId >
113
- <executions >
114
- <execution >
115
- <phase >install</phase >
116
- <goals >
117
- <goal >copy-dependencies</goal >
118
- </goals >
119
- <configuration >
120
- <outputDirectory >${project.build.directory} /lib</outputDirectory >
121
- </configuration >
122
- </execution >
123
- </executions >
124
- </plugin >
125
-
126
-
127
- <!-- Create main app -->
128
- <plugin >
129
- <artifactId >maven-jar-plugin</artifactId >
130
- <configuration >
131
- <archive >
132
- <manifest >
133
- <addClasspath >true</addClasspath >
134
- <classpathPrefix >lib/</classpathPrefix >
135
- <mainClass >javaxt.express.Server</mainClass >
136
- </manifest >
137
- <manifestEntries >
138
- <Built-By >JavaXT</Built-By >
139
- <Bundle-Name >JavaXT Express</Bundle-Name >
140
- <Bundle-Version >${project.version} </Bundle-Version >
141
- <Bundle-Date >${buildDate} </Bundle-Date >
142
- <Implementation-Title >JavaXT Express</Implementation-Title >
143
- <Implementation-Version >${project.version} </Implementation-Version >
144
- <Implementation-URL >http://javaxt.com</Implementation-URL >
145
- </manifestEntries >
146
- </archive >
147
- </configuration >
148
- </plugin >
149
-
150
-
151
- <!-- copy jars to the dist directory -->
152
- <plugin >
153
- <groupId >org.apache.maven.plugins</groupId >
154
- <artifactId >maven-antrun-plugin</artifactId >
155
- <version >1.8</version >
156
- <executions >
157
- <execution >
158
- <phase >install</phase >
159
- <configuration >
160
- <target >
161
- <move file =" ${project.build.directory}/${project.artifactId}-${project.version}.jar" todir =" ${project.basedir}/dist" />
162
- <move todir =" ${project.basedir}/dist/lib" >
163
- <fileset dir =" ${project.build.directory}/lib" />
164
- </move >
165
- </target >
166
- </configuration >
167
- <goals >
168
- <goal >run</goal >
169
- </goals >
170
- </execution >
171
- </executions >
172
- </plugin >
173
-
174
-
175
-
176
- </plugins >
177
- </build >
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5
+ <modelVersion >4.0.0</modelVersion >
6
+ <properties >
7
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
8
+ <maven .compiler.source>1.8</maven .compiler.source>
9
+ <maven .compiler.target>1.8</maven .compiler.target>
10
+
11
+ <!-- Ant-style directory layout -->
12
+ <src .dir>src</src .dir>
13
+
14
+
15
+ <maven .build.timestamp.format>yyyy-MM-dd HH:mm:ss z</maven .build.timestamp.format>
16
+ <buildDate >${maven.build.timestamp}</buildDate >
17
+
18
+ </properties >
19
+
20
+ <!-- =========================================================== -->
21
+ <!-- Module Description -->
22
+ <!-- =========================================================== -->
23
+ <groupId >javaxt</groupId >
24
+ <artifactId >javaxt-express</artifactId >
25
+ <version >dev</version >
26
+ <packaging >jar</packaging >
27
+
28
+
29
+ <!-- =========================================================== -->
30
+ <!-- Dependency Management -->
31
+ <!-- =========================================================== -->
32
+ <repositories >
33
+ <repository >
34
+ <id >javaxt.com</id >
35
+ <url >https://www.javaxt.com/maven</url >
36
+ </repository >
37
+ </repositories >
38
+ <dependencies >
39
+
40
+
41
+ <!-- JavaXT Core Dependencies -->
42
+ <dependency >
43
+ <groupId >javaxt</groupId >
44
+ <artifactId >javaxt-core</artifactId >
45
+ <version >2.1.10</version >
46
+ </dependency >
47
+ <dependency >
48
+ <groupId >javaxt</groupId >
49
+ <artifactId >javaxt-server</artifactId >
50
+ <version >4.2.0</version >
51
+ </dependency >
52
+ <dependency >
53
+ <groupId >javaxt</groupId >
54
+ <artifactId >javaxt-orm</artifactId >
55
+ <version >1.2.1</version >
56
+ </dependency >
57
+
58
+
59
+ <!-- JavaScript Parser (Required by javaxt-orm) -->
60
+ <dependency >
61
+ <groupId >org.openjdk.nashorn</groupId >
62
+ <artifactId >nashorn-core</artifactId >
63
+ <version >15.4</version >
64
+ </dependency >
65
+
66
+
67
+ <!-- SQL Parser (Optional at runtime) -->
68
+ <dependency >
69
+ <groupId >com.github.jsqlparser</groupId >
70
+ <artifactId >jsqlparser</artifactId >
71
+ <version >4.1</version >
72
+ </dependency >
73
+
74
+
75
+ <!-- Mail (Optional at runtime if mail service is not needed) -->
76
+ <dependency >
77
+ <groupId >com.sun.mail</groupId >
78
+ <artifactId >jakarta.mail</artifactId >
79
+ <version >2.0.1</version >
80
+ </dependency >
81
+
82
+
83
+ <!-- JavaScript Compressor (Optional at runtime if not using the deployment scripts) -->
84
+ <dependency >
85
+ <groupId >com.yahoo.platform.yui</groupId >
86
+ <artifactId >yuicompressor</artifactId >
87
+ <version >2.4.8</version >
88
+ </dependency >
89
+
90
+
91
+ <!-- H2 Database (100% Optional. For demo use only. See Server.java) -->
92
+ <dependency >
93
+ <groupId >com.h2database</groupId >
94
+ <artifactId >h2</artifactId >
95
+ <version >2.2.224</version >
96
+ </dependency >
97
+
98
+ </dependencies >
99
+
100
+
101
+
102
+ <!-- =========================================================== -->
103
+ <!-- Build Info -->
104
+ <!-- =========================================================== -->
105
+ <build >
106
+
107
+ <sourceDirectory >${src.dir} </sourceDirectory >
108
+
109
+
110
+ <plugins >
111
+
112
+ <!-- Copy dependencies into the lib folder -->
113
+ <plugin >
114
+ <artifactId >maven-dependency-plugin</artifactId >
115
+ <executions >
116
+ <execution >
117
+ <phase >install</phase >
118
+ <goals >
119
+ <goal >copy-dependencies</goal >
120
+ </goals >
121
+ <configuration >
122
+ <outputDirectory >${project.build.directory} /lib</outputDirectory >
123
+ </configuration >
124
+ </execution >
125
+ </executions >
126
+ </plugin >
127
+
128
+
129
+ <!-- Create main app -->
130
+ <plugin >
131
+ <artifactId >maven-jar-plugin</artifactId >
132
+ <configuration >
133
+ <archive >
134
+ <manifest >
135
+ <addClasspath >true</addClasspath >
136
+ <classpathPrefix >lib/</classpathPrefix >
137
+ <mainClass >javaxt.express.Server</mainClass >
138
+ </manifest >
139
+ <manifestEntries >
140
+ <Built-By >JavaXT</Built-By >
141
+ <Bundle-Name >JavaXT Express</Bundle-Name >
142
+ <Bundle-Version >${project.version} </Bundle-Version >
143
+ <Bundle-Date >${buildDate} </Bundle-Date >
144
+ <Implementation-Title >JavaXT Express</Implementation-Title >
145
+ <Implementation-Version >${project.version} </Implementation-Version >
146
+ <Implementation-URL >http://javaxt.com</Implementation-URL >
147
+ </manifestEntries >
148
+ </archive >
149
+ </configuration >
150
+ </plugin >
151
+
152
+
153
+ <!-- copy jars to the dist directory -->
154
+ <plugin >
155
+ <groupId >org.apache.maven.plugins</groupId >
156
+ <artifactId >maven-antrun-plugin</artifactId >
157
+ <version >1.8</version >
158
+ <executions >
159
+ <execution >
160
+ <phase >install</phase >
161
+ <configuration >
162
+ <target >
163
+ <move file =" ${project.build.directory}/${project.artifactId}-${project.version}.jar" todir =" ${project.basedir}/dist" />
164
+ <move todir =" ${project.basedir}/dist/lib" >
165
+ <fileset dir =" ${project.build.directory}/lib" />
166
+ </move >
167
+ </target >
168
+ </configuration >
169
+ <goals >
170
+ <goal >run</goal >
171
+ </goals >
172
+ </execution >
173
+ </executions >
174
+ </plugin >
175
+
176
+
177
+
178
+ </plugins >
179
+ </build >
178
180
</project >
0 commit comments