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
+89-41Lines changed: 89 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ Our current development environment is going to consist of:
7
7
3. Eclipse with git integration
8
8
9
9
## 1. Ubuntu 18.04 LTS
10
-
This guide is not going to cover the installation and configuration of the OS or the tools and utilities used to reach this point but they are confirmed here for completeness:
10
+
This guide is not going to cover the installation and configuration of the OS
11
+
or the tools and utilities used to reach this point but they are
12
+
confirmed here for completeness:
11
13
-[ ] Next clean installation change this section to include the details on how to check for and correctly install some of the utilities, especially cover ssh key file permissions.
12
14
- Ubuntu 18.04 LTS
13
15
- git-core
@@ -18,7 +20,9 @@ This guide is not going to cover the installation and configuration of the OS or
18
20
Unless it is stated differently, all commands should be entered using the Terminal.
19
21
20
22
## 2. asdf
21
-
This will enable us to not only install our JDKs but also switch between them on a per project basis, install the core of the utility following the instructions here: https://github.com/asdf-vm/asdf
23
+
This will enable us to not only install our JDKs but also switch between them
24
+
on a per project basis, install the core of the utility following
25
+
the instructions here: https://github.com/asdf-vm/asdf
22
26
23
27
Close the Terminal and start a new one so that the changes
24
28
can take effect.
@@ -37,20 +41,23 @@ We're going to install Java oracle-8.181:(While we still can!)
37
41
```
38
42
asdf install java oracle-8.181
39
43
```
40
-
The command initiates the download of the selected JDK which can take a while, but once complete the JDK should have been successfully installed.
44
+
The command initiates the download of the selected JDK which can take a while,
45
+
but once complete the JDK should have been successfully installed.
41
46
42
47
We'll use this version system wide:
43
48
```
44
49
asdf global java oracle-8.181
45
50
```
46
-
But once setup properly you could use different versions per project by setting the asdf java on that directory.
51
+
But once setup properly you could use different versions per project by setting
52
+
the asdf java on that directory.
47
53
48
54
Check for the current version with:
49
55
```
50
56
asdf current java
51
57
```
52
58
53
-
Since we applied our version globally running the following anywhere should confirm the asdf settings:
59
+
Since we applied our version globally running the following anywhere should
60
+
confirm the asdf settings:
54
61
```
55
62
java -version
56
63
```
@@ -63,16 +70,19 @@ Which should point to your version of the shims file:
63
70
```
64
71
/home/yourusername/.asdf/shims/java
65
72
```
66
-
Intrepid readers can learn more about shims here (https://en.wikipedia.org/wiki/Shim_(computing))
73
+
Intrepid readers can learn more about shims
74
+
here (https://en.wikipedia.org/wiki/Shim_(computing))
67
75
68
-
If during some future tinkering you need to modify something about your locally installed versions of the JDK then you can find the install directories here:
76
+
If during some future tinkering you need to modify something about your locally
77
+
installed versions of the JDK then you can find the install directories here:
69
78
```
70
79
/home/yourusername/.asdf/installs/java
71
80
```
72
81
73
82
74
83
## 3. Eclipse
75
-
We will install Eclipse Photon in this guide, download it from https://www.eclipse.org/downloads/
84
+
We will install Eclipse Photon in this guide, download it
85
+
from https://www.eclipse.org/downloads/
76
86
77
87
From your Downloads directory:
78
88
```
@@ -89,7 +99,8 @@ Launch the GUI installer with:
89
99
~/Downloads/eclipse-installer/eclipse-inst
90
100
```
91
101
92
-
You can select whichever version you wish but if you want to follow this guide then choose:
102
+
You can select whichever version you wish but if you want to follow this guide
103
+
then choose:
93
104
```
94
105
Eclipse IDE for Java EE Developers
95
106
```
@@ -99,24 +110,38 @@ Accept the default installation folder which should be your version of:
99
110
/home/yourusername/eclipse/jee-photon
100
111
```
101
112
102
-
Read and accept the licenses. When the installation completes, choose the launch option; the first action is to select a directory as a workspace, you can select any directory but of you want to follow this guide exactly then set it to:
113
+
Read and accept the licenses. When the installation completes, choose the
114
+
launch option; the first action is to select a directory as a workspace,
115
+
you can select any directory but of you want to follow this guide exactly
116
+
then set it to:
103
117
```
104
118
/home/yourusername/Studio/Dev/eclipse-workspace
105
119
```
106
-
Once Eclipse has started you may dismiss the Welcome screen and uncheck the "Always show Welcome at start up" option, unless you like it and want to be welcomed every time, totally up to you.
120
+
Once Eclipse has started you may dismiss the Welcome screen and uncheck the
121
+
"Always show Welcome at start up" option, unless you like it and want to be
122
+
welcomed every time, totally up to you.
107
123
108
124
## 4. Version control with Git and Eclipse Egit
109
125
110
-
This section covers a few large and complicated topics, we don't have the scope here to cover them in detail, but here are some links please take the time to read each one you are not familiar with.
126
+
This section covers a few large and complicated topics, we don't have the scope
127
+
here to cover them in detail, but here are some links please take the time to
128
+
read each one you are not familiar with.
111
129
112
130
### 4.1 Version control and Git
113
-
If you're here there's a good chance you know what version control is, if not just know it's a type of system used by developers to manage the source code they write. Obviously there is a lot more to it than that and the following link provides an excellent overview of how Git works and compares it to some of the other systems. [Git for Eclipse Users]http://wiki.eclipse.org/EGit/Git_For_Eclipse_Users
131
+
If you're here there's a good chance you know what version control is, if not
132
+
just know it's a type of system used by developers to manage the source code
133
+
they write. Obviously there is a lot more to it than that and the following
134
+
link provides an excellent overview of how Git works and compares it to some of
135
+
the other systems.
136
+
[Git for Eclipse Users]http://wiki.eclipse.org/EGit/Git_For_Eclipse_Users
114
137
115
138
### 4.2 Installing EGit
116
-
Our version of Eclipse already as Egit installed. We will confirm this in the next section.
139
+
Our version of Eclipse already as Egit installed. We will confirm this in
140
+
the next section.
117
141
118
142
### 4.3 EGit User Guides
119
-
The guides listed in this section are extensive covering many aspects of EGit you may not use, but it might be good to know they exist.
143
+
The guides listed in this section are extensive covering many aspects of
144
+
EGit you may not use, but it might be good to know they exist.
120
145
121
146
> You may jump to the next section to continue with a simple
122
147
> step-by-step guide, but remember the guides listed here
@@ -127,45 +152,61 @@ The guides listed in this section are extensive covering many aspects of EGit yo
127
152
128
153
## 5. Step-by-step: Setting up your local Eclipse Git friendly Workspace
129
154
### Step 1: Where's git? Egit? ...anyone?
130
-
From the main Eclipse window navigate to **Window** > **Show View** > **Other** this will open the **Show View** window.
155
+
From the main Eclipse window navigate to
156
+
**Window** > **Show View** > **Other** this will open the **Show View** window.
131
157

132
158
133
-
In the search bar enter *'Git'* if everything is installed correctly this will display a list of the available Git views. If the *'Git'* options are not displayed then you will need to perform some troubleshooting which is beyond the scope of the current guide; but as a hint make sure you've installed the correct version of Eclipse.
159
+
In the search bar enter *'Git'* if everything is installed correctly this will
160
+
display a list of the available Git views. If the *'Git'* options are
161
+
not displayed then you will need to perform some troubleshooting which is
162
+
beyond the scope of the current guide; but as a hint make sure you've
163
+
installed the correct version of Eclipse.
134
164

135
165
136
-
While we're here let's add the **Git Repositories** view to our workspace by selecting it and choosing **Open**.
166
+
While we're here let's add the **Git Repositories** view to our workspace
167
+
by selecting it and choosing **Open**.
137
168
138
169
It might be added to the bottom part of your workspace like this:
I prefer to have it to the left, next to the **Project View** you can simply drag it by clicking in the *title bar* and moving it to your desired destination.
172
+
I prefer to have it to the left, next to the **Project View** you can simply
173
+
drag it by clicking in the *title bar* and moving it to your desired destination.
When the *'Branch Selection'* window launches it should have selected the *'master'* by default, if not then make sure it is selected, and click *'next'*.
203
+
When the *'Branch Selection'* window launches it should have selected the
204
+
*'master'* by default, if not then make sure it is selected, and click *'next'*.
Once the import has completed the project including the README.md is available
@@ -220,7 +267,8 @@ Make changes: branch? / commit.
220
267
Delete project.
221
268
222
269
### Step 4: Add a local git project
223
-
You can clone git repo from anywhere and even keep them local, which doesn't seem like a good idea for anything that would be worth creating a repo for in the first place,
224
-
but just so that we can say "We Got The T-Shirt" here we go...
270
+
You can clone git repo from anywhere and even keep them local, which doesn't
271
+
seem like a good idea for anything that would be worth creating a repo for in
272
+
the first place, but just so that we can say "We Got The T-Shirt" here we go...
225
273
226
274
### Step 5: Getting SSH Access to a GitHub Repository
0 commit comments