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 >1.4.0</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
- <repository >
36
- <id >jsqlparser-snapshots</id >
37
- <snapshots >
38
- <enabled >true</enabled >
39
- </snapshots >
40
- <url >https://oss.sonatype.org/content/groups/public/</url >
41
- </repository >
42
- </repositories >
43
- <dependencies >
44
-
45
-
46
- <!-- JavaXT Core Dependencies -->
47
- <dependency >
48
- <groupId >javaxt</groupId >
49
- <artifactId >javaxt-core</artifactId >
50
- <version >2.1.6</version >
51
- </dependency >
52
- <dependency >
53
- <groupId >javaxt</groupId >
54
- <artifactId >javaxt-server</artifactId >
55
- <version >4.1.2</version >
56
- </dependency >
57
- <dependency >
58
- <groupId >javaxt</groupId >
59
- <artifactId >javaxt-orm</artifactId >
60
- <version >1.2.1</version >
61
- </dependency >
62
-
63
-
64
- <!-- JavaScript Parser (Required by javaxt-orm) -->
65
- <dependency >
66
- <groupId >org.openjdk.nashorn</groupId >
67
- <artifactId >nashorn-core</artifactId >
68
- <version >15.4</version >
69
- </dependency >
70
-
71
-
72
- <!-- SQL Parser (Optional at runtime) -->
73
- <dependency >
74
- <groupId >com.github.jsqlparser</groupId >
75
- <artifactId >jsqlparser</artifactId >
76
- <version >4.1</version >
77
- </dependency >
78
-
79
-
80
- <!-- Mail (Optional at runtime if mail service is not needed) -->
81
- <dependency >
82
- <groupId >com.sun.mail</groupId >
83
- <artifactId >jakarta.mail</artifactId >
84
- <version >2.0.1</version >
85
- </dependency >
86
-
87
-
88
- <!-- JavaScript Compressor (Optional at runtime if not using the deployment scripts) -->
89
- <dependency >
90
- <groupId >com.yahoo.platform.yui</groupId >
91
- <artifactId >yuicompressor</artifactId >
92
- <version >2.4.8</version >
93
- </dependency >
94
-
95
-
96
- <!-- H2 Database (100% Optional. For demo use only. See Server.java) -->
97
- <dependency >
98
- <groupId >com.h2database</groupId >
99
- <artifactId >h2</artifactId >
100
- <version >2.2.224</version >
101
- </dependency >
102
-
103
- </dependencies >
104
-
105
-
106
-
107
- <!-- =========================================================== -->
108
- <!-- Build Info -->
109
- <!-- =========================================================== -->
110
- <build >
111
-
112
- <sourceDirectory >${src.dir} </sourceDirectory >
113
-
114
-
115
- <plugins >
116
-
117
- <!-- Copy dependencies into the lib folder -->
118
- <plugin >
119
- <artifactId >maven-dependency-plugin</artifactId >
120
- <executions >
121
- <execution >
122
- <phase >install</phase >
123
- <goals >
124
- <goal >copy-dependencies</goal >
125
- </goals >
126
- <configuration >
127
- <outputDirectory >${project.build.directory} /lib</outputDirectory >
128
- </configuration >
129
- </execution >
130
- </executions >
131
- </plugin >
132
-
133
-
134
- <!-- Create main app -->
135
- <plugin >
136
- <artifactId >maven-jar-plugin</artifactId >
137
- <configuration >
138
- <archive >
139
- <manifest >
140
- <addClasspath >true</addClasspath >
141
- <classpathPrefix >lib/</classpathPrefix >
142
- <mainClass >javaxt.express.Server</mainClass >
143
- </manifest >
144
- <manifestEntries >
145
- <Built-By >JavaXT</Built-By >
146
- <Bundle-Name >JavaXT Express</Bundle-Name >
147
- <Bundle-Version >${project.version} </Bundle-Version >
148
- <Bundle-Date >${buildDate} </Bundle-Date >
149
- <Implementation-Title >JavaXT Express</Implementation-Title >
150
- <Implementation-Version >${project.version} </Implementation-Version >
151
- <Implementation-URL >http://javaxt.com</Implementation-URL >
152
- </manifestEntries >
153
- </archive >
154
- </configuration >
155
- </plugin >
156
-
157
-
158
- <!-- copy jars to the dist directory -->
159
- <plugin >
160
- <groupId >org.apache.maven.plugins</groupId >
161
- <artifactId >maven-antrun-plugin</artifactId >
162
- <version >1.8</version >
163
- <executions >
164
- <execution >
165
- <phase >install</phase >
166
- <configuration >
167
- <target >
168
- <move file =" ${project.build.directory}/${project.artifactId}-${project.version}.jar" todir =" ${project.basedir}/dist" />
169
- <move todir =" ${project.basedir}/dist/lib" >
170
- <fileset dir =" ${project.build.directory}/lib" />
171
- </move >
172
- </target >
173
- </configuration >
174
- <goals >
175
- <goal >run</goal >
176
- </goals >
177
- </execution >
178
- </executions >
179
- </plugin >
180
-
181
-
182
-
183
- </plugins >
184
- </build >
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 >
185
178
</project >
0 commit comments