Skip to content

Commit

Permalink
Merge pull request #445 from Emily-Jiang/add-mvn-plugin
Browse files Browse the repository at this point in the history
Update maven war plugin
  • Loading branch information
Karm authored Sep 9, 2021
2 parents 1df6747 + cba04d3 commit 04d6c05
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Container/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Building an image and running a container
Development workflow
====================

Locally without Docker
Locally without Docker on Thorntail
----------------------

```
Expand All @@ -14,9 +14,17 @@ mvn thorntail:run -Pthorntail

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

It is also possible to build and deploy to Open Liberty using the Liberty profile. To build the MP Starter
app, use: `mvn package liberty:run -Pliberty ` and then browse to http://localhost:9080/mp-starter/ to test
the app.
Locally without Docker on Open Liberty
----------------------

Build and deploy to Open Liberty using the Liberty profile. To build the MP Starter app, use:

```
mvn package liberty:run -Pliberty
```

Natigate to http://localhost:9080/mp-starter/ to test the app.

Docker build
------------
Expand Down
8 changes: 8 additions & 0 deletions src/main/resources/pom-servers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,14 @@
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
Expand Down

0 comments on commit 04d6c05

Please sign in to comment.