-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
34 lines (33 loc) · 1.39 KB
/
INSTALL.txt
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
1. Download and unpack the Glassfish application server.
2. Configure your maven by using the following configuration file (put settings.xml in ~/.m2/):
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>glassfish</id>
<properties>
<glassfish.directory>ŚCIEŻKA_DO_GLASSFISHA</glassfish.directory>
<glassfish.domain>NAZWA_DOMENY</glassfish.domain>
<glassfish.user>NAZWA_UŻYTKOWNIKA</glassfish.user>
<glassfish.adminPassword>HASŁO</glassfish.adminPassword>
<local.repository>file://ŚCIEŻKA_DO_KATALOGU</local.repository>
<local.site>file://ŚCIEŻKA_DO_KATALOGU</local.site>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>glassfish</activeProfile>
</activeProfiles>
</settings>
3. Run the following two lines ONCE only
mvn install
mvn glassfish:deploy
4. Run the following:
mvn clean deploy
5. Go to the http://localhost:8080/acodis-1.0-SNAPSHOT/ to see how the application works.
6. Go to the http://localhost:4848/ to configure the server
7. When you want to sleep, you can turn off the application server:
mvn glassfish:stop-domain
8. You can start the application-server again by using:
mvn glassfish:start-domain