This repository has been archived by the owner on Jun 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
156 lines (111 loc) · 4.3 KB
/
README.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
------------------------------------------------------------
NOTES ON SETTING UP IDE + CHECKING OUT THE PROJECT
------------------------------------------------------------
1) IDE: Eclipse
-----------
1.1) Download Eclipse and install it.
2) Maven
---------
2.1) Download Maven 3.5.3 and install it.
2.2 ) Add $M2_HOME/bin to your $PATH.
2.3) Create a MAVEN_OPTS environment variable and set its value to:
-Xms512M -Xmx512M
2.4) in the settings.xml file add the java.net repository to get access to J2EE 1.5 jars:
Add this stanza to repositories:
<repository>
<id>java.net</id>
<url>http://download.java.net/maven/1</url>
<layout>legacy</layout>
</repository>
For more info: https://maven-repository.dev.java.net/
3) Create Maven based workspace in Eclipse
-----------
3.1) Open Eclipse
3.2) Create a new workspace named: c:\projects\pineapple-ws
4) Configure Maven in Eclipse
-----------
4.1) Open the Eclipse workspace: c:\projects\pineapple-ws
4.2) Configure the Maven settings file to use by selecting Windows -> Preferences
-> Maven -> User Settings and browse to the location of your Maven settings file.
Select the file settings.xml.
Click Apply.
5) Import Maven projects into Eclipse from GitHub
-----------
5.1) Open the Eclipse workspace: c:\projects\pineapple-ws
5.2) Import projects by going to File -> Import -> Git -> Projects from Git -> Clone URI
URI: https://github.com/athrane/pineapple.git
Host: github.com
Repository Path: /athrane/pineapple.git
Protocol: HTTPS
User: your-GitHub-user
Password: your-GitHub-PWD
and click next.
5.3) Branch Selection
Select "master" and click next.
5.4) Local Destination
Directory: C:\Users\myuser\git\pineapple
Initial branch: "master"
Configuration -> Remote name: origin
and click next.
5.5) Select a wizard to use for importing projects
Click cancel.
5.6) Import projects by going to File -> Import -> Maven -> Existing Maven Projects
and browse to the Git working directory at: C:\Users\myuser\git\pineapple
Select all sub projects and click Finish.
6) Configure code template in Eclipse pineapple-ws workspace
-----------
6.1) Open the Eclipse workspace: c:\projects\pineapple-ws
6.2) Open Eclipse -> Windows -> Preferences -> Java -> Code Style -> Code Templates
-> Import -> C:\Users\myuser\git\pineapple\src\checkstyle\maven-eclipse-codestyle.xml
and click Apply.
7) Configure run configuration in Eclipse
7.1) Open Eclipse -> Run -> Run Configurations -> Maven Build ->
Name: Maven jetty run
Base-directory: $workspace_loc:/pineapple-web-application-war}
User settings: C:\tools\apache-maven-3.5.3\conf\settings.xml
Offline: true
------------------------------------------------------------
NOTES ON BUILDING AND RUNNING PINEAPPLE
------------------------------------------------------------
8) Build pineapple
-------------------
8.1) From command-prompt , cd into the pineapple directory and run:
mvn -cpu clean install
9) Deploy Pineapple to Bintray
9.1) Add Bintray profile to settings.xml
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-pineapple-maven</id>
<name>bintray</name>
<url>http://dl.bintray.com/pineapple/maven</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-pineapple-maven</id>
<name>bintray-plugins</name>
<url>http://dl.bintray.com/pineapple/maven</url>
</pluginRepository>
</pluginRepositories>
<id>bintray</id>
</profile>
9.2) Activate profile
<activeProfiles>
..other profiles...
<activeProfile>bintray</activeProfile>
</activeProfiles>
9.3) Configure server
<server>
<id>bintray-pineapple-maven</id>
<username>some-user</username>
<password>some-password</password>
</server>
9.4) Invoke to deploy
mvn deploy