You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,9 @@ This workspace consists of Java EE 7 Samples. They are divided in different dire
12
12
13
13
### Cargo ###
14
14
15
-
By default, all samples are deployed on GlassFish 4. They can be deployed on Widlfly 8 by adding ``-P wildfly`` to all maven commands.
15
+
By default, all samples are deployed on GlassFish 4. They can be deployed on Widlfly 8 by adding ``-P wildfly`` to all maven commands. Make sure to edit ``glassfish.home`` or ``wildfly.home`` property value in the top-level ``pom.xml`` to point to your local GlassFish or Wildfly directory respectively.
16
16
17
-
Make sure to edit ``glassfish.home`` or ``wildfly.home`` property value in the top-level pom.xml to point to your local GlassFish or Wildfly installations respectively.
18
-
19
-
1. In one terminal, anywhere in the project with a pom.xml: "mvn cargo:run" to start GlassFish server
17
+
1. In one terminal, anywhere in the project with a ``pom.xml``: ``mvn cargo:run`` to start GlassFish server or ``mvn -P wildfly`` to start Wildfly server. They are both configured to run on port 8080 so only one can run at a given time.
20
18
2. In another terminal, in the actual sample directory
21
19
1.``mvn package cargo:deploy`` to deploy for the first time
22
20
2.``mvn package cargo:redeploy`` to redeploy subsequently
@@ -27,7 +25,7 @@ Make sure to edit ``glassfish.home`` or ``wildfly.home`` property value in the t
27
25
### Manual ###
28
26
29
27
1.``mvn clean package``
30
-
2.``asadmin deploy target/XXX.war``to deploy the WAR file
28
+
2.Deploy on GlassFish using ``asadmin deploy target/XXX.war``or deploy on Wildfly using ``TBD``
0 commit comments