Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Hantsy Bai <hantsy@gmail.com>
  • Loading branch information
hantsy committed Mar 21, 2021
1 parent 94584c2 commit ba8ca7e
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ The simplest steps are the following (no IDE required):

* Get the project source code.
* Ensure you are running Java SE 8 or Java SE 11.
* Make sure JAVA_HOME is set.
* Make sure `JAVA_HOME` is set.
* As long as you have Maven set up properly, navigate to the project source root and
type: `mvn clean package cargo:run`
type: `mvn clean package cargo:run` to run it on Payara or type `mvn clean wildfly:run -Pwildfly` to run on WildFly instead.
* Go to http://localhost:8080/cargo-tracker

To set up in Eclipse, follow these steps:
Expand Down Expand Up @@ -116,7 +116,7 @@ Cargo Tracker's testing is done using JUnit and Arquillian. The Arquillian confi
uses a [remote container](http://arquillian.org/arquillian-core/#_containers) (Payara 5). Therefore, to perform a test you will need to make sure
to have a container running.

## Testing Locally with Payara
### Testing Locally with Payara
For testing locally you will first need to run a Payara 5 server.

You can do that with the following script:
Expand All @@ -131,6 +131,22 @@ Now for running the tests:
mvn clean verify -DskipTests=false
```

### Testing Locally with WildFly

Getting the latest WildFly from https://www.wildfly.org.

You can do that with the following script:
```shell script
wget https://download.jboss.org/wildfly/23.0.0.Final/wildfly-23.0.0.Final.zip
unzip wildfly-23.0.0.Final.zip && cd wildfly-23.0.0.Final/bin
./standalone -c standalone-full.xml
```

Now for running the tests against WildLFy:
```shell script
mvn clean verify -Pwildfly -DskipTests=false
```

## Java EE 7
A Java EE 7, Java SE 8, Payara 4.1 version of Cargo Tracker is available under the ['javaee7' branch](https://github.com/eclipse-ee4j/cargotracker/tree/javaee7).

Expand Down

0 comments on commit ba8ca7e

Please sign in to comment.