Skip to content

Commit 04d6c05

Browse files
authored
Merge pull request #445 from Emily-Jiang/add-mvn-plugin
Update maven war plugin
2 parents 1df6747 + cba04d3 commit 04d6c05

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

Container/README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Building an image and running a container
44
Development workflow
55
====================
66

7-
Locally without Docker
7+
Locally without Docker on Thorntail
88
----------------------
99

1010
```
@@ -14,9 +14,17 @@ mvn thorntail:run -Pthorntail
1414

1515
Navigate to 127.0.0.1:8080 or http://127.0.0.1:8080/index.xhtml to see the app.
1616

17-
It is also possible to build and deploy to Open Liberty using the Liberty profile. To build the MP Starter
18-
app, use: `mvn package liberty:run -Pliberty ` and then browse to http://localhost:9080/mp-starter/ to test
19-
the app.
17+
Locally without Docker on Open Liberty
18+
----------------------
19+
20+
Build and deploy to Open Liberty using the Liberty profile. To build the MP Starter app, use:
21+
22+
```
23+
mvn package liberty:run -Pliberty
24+
25+
```
26+
27+
Natigate to http://localhost:9080/mp-starter/ to test the app.
2028

2129
Docker build
2230
------------

src/main/resources/pom-servers.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,14 @@
242242
</dependencies>
243243
<build>
244244
<plugins>
245+
<plugin>
246+
<groupId>org.apache.maven.plugins</groupId>
247+
<artifactId>maven-war-plugin</artifactId>
248+
<version>3.3.1</version>
249+
<configuration>
250+
<failOnMissingWebXml>false</failOnMissingWebXml>
251+
</configuration>
252+
</plugin>
245253
<plugin>
246254
<groupId>io.openliberty.tools</groupId>
247255
<artifactId>liberty-maven-plugin</artifactId>

0 commit comments

Comments
 (0)