-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpom.xml
More file actions
213 lines (184 loc) · 8.86 KB
/
pom.xml
File metadata and controls
213 lines (184 loc) · 8.86 KB
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
<?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>
<!-- Project Coordinates (matches build.gradle lines 4-6) -->
<groupId>net.wasdev.sample</groupId>
<artifactId>PlantsByWebSphere</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>PlantsByWebSphere</name>
<description>PlantsByWebSphere Sample Application</description>
<!-- Build Properties (matches build.gradle lines 8-12) -->
<properties>
<!-- Java Version -->
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- Encoding -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- Liberty Server Configuration -->
<liberty.var.default.http.port>9080</liberty.var.default.http.port>
<liberty.var.default.https.port>9443</liberty.var.default.https.port>
<!-- WebSphere Liberty Runtime (matches build.gradle line 36: libertyRuntime) -->
<liberty.runtime.version>19.0.0.8</liberty.runtime.version>
<!-- Plugin Versions -->
<version.liberty-maven-plugin>3.12.0</version.liberty-maven-plugin>
<version.maven-compiler-plugin>3.11.0</version.maven-compiler-plugin>
<version.maven-war-plugin>3.4.0</version.maven-war-plugin>
<version.maven-dependency-plugin>3.6.1</version.maven-dependency-plugin>
</properties>
<!-- Dependencies (matches build.gradle lines 31-37) -->
<dependencies>
<!-- Java EE 7 API (providedCompile in Gradle) -->
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
<!-- Apache Derby Database (serverLibs in Gradle) -->
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.11.1.1</version>
</dependency>
<!-- Xalan XML Processor (compile in Gradle) -->
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.7.2</version>
</dependency>
<dependency>
<groupId>xalan</groupId>
<artifactId>serializer</artifactId>
<version>2.7.2</version>
</dependency>
</dependencies>
<build>
<!-- WAR file name (matches build.gradle line 45) -->
<finalName>PlantsByWebSphere</finalName>
<plugins>
<!-- Maven Compiler Plugin (matches build.gradle lines 8-12) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${version.maven-compiler-plugin}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- Maven WAR Plugin (matches build.gradle line 1: apply plugin: 'war') -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${version.maven-war-plugin}</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<packagingExcludes>pom.xml</packagingExcludes>
</configuration>
</plugin>
<!-- Liberty Maven Plugin (matches build.gradle lines 64-71) -->
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>${version.liberty-maven-plugin}</version>
<configuration>
<!-- Server name (matches rootProject.name + 'Server') -->
<serverName>PlantsByWebSphereServer</serverName>
<!-- Liberty config directory (matches build.gradle line 69) -->
<configDirectory>${project.basedir}/src/main/liberty/config</configDirectory>
<!-- Loose application setting (matches build.gradle line 68) -->
<looseApplication>false</looseApplication>
<!-- Strip version from WAR name -->
<stripVersion>true</stripVersion>
<!-- Install application packages -->
<installAppPackages>project</installAppPackages>
<!-- WebSphere Liberty Runtime -->
<runtimeArtifact>
<groupId>com.ibm.websphere.appserver.runtime</groupId>
<artifactId>wlp-javaee7</artifactId>
<version>${liberty.runtime.version}</version>
<type>zip</type>
</runtimeArtifact>
<!-- Bootstrap properties -->
<bootstrapProperties>
<default.http.port>${liberty.var.default.http.port}</default.http.port>
<default.https.port>${liberty.var.default.https.port}</default.https.port>
<app.context.root>/PlantsByWebSphere</app.context.root>
</bootstrapProperties>
</configuration>
<executions>
<!-- Create Liberty server -->
<execution>
<id>create-server</id>
<phase>prepare-package</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
<!-- Install Liberty features -->
<execution>
<id>install-feature</id>
<phase>prepare-package</phase>
<goals>
<goal>install-feature</goal>
</goals>
</execution>
<!-- Deploy application -->
<execution>
<id>deploy-app</id>
<phase>package</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Maven Dependency Plugin (matches build.gradle lines 39-43: copyServerLibs task) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${version.maven-dependency-plugin}</version>
<executions>
<!-- Copy Derby JAR to Liberty server lib directory -->
<execution>
<id>copy-server-libs</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<!-- Only copy Derby (matches configurations.serverLibs) -->
<includeArtifactIds>derby</includeArtifactIds>
<!-- Output to Liberty server lib directory -->
<outputDirectory>${project.build.directory}/liberty/wlp/usr/servers/PlantsByWebSphereServer/lib</outputDirectory>
<!-- Don't include transitive dependencies -->
<excludeTransitive>false</excludeTransitive>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!-- Repositories (matches build.gradle lines 23-25) -->
<repositories>
<repository>
<id>central</id>
<name>Maven Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<name>Maven Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</pluginRepository>
</pluginRepositories>
</project>
<!-- Made with Bob -->