First mail wasn’t shared. 2nd try.
Von: Gattinger. Michael
Gesendet: Freitag, 10. Mai 2019 17:43
An: 'milo-dev-bounces@xxxxxxxxxxx' <milo-dev-bounces@xxxxxxxxxxx>
Betreff: Tutorial: Howto clone Milo (Cloning a Tag instead of a branch)
Hi,
the last weeks I had much trouble to clone and execute Milo with Eclipse.
Finally I think I solved it and want to tell you.
This Tutorial was written in May 2019. Ask at Milo-Mailinglist (https://accounts.eclipse.org/mailing-list/milo-dev) or main-developer (kevinherron@xxxxxxxxx)
which Tag / Branch you should use.
At the time I wrote this Tutorial release 0.2.5 and branch v0.2.5 and branch master was not working for me. I was never able to configure it correctly. It finally worked with Tag v0.3.0-M1.
A)
Install Gitkraken and clone the repo
B)
Current local is master. We want v0.3.0-M1. Hard reset to this commit.
C)
Open eclipse new workspace and to standard configuration as related to your company
D)
Open Github perspective
E)
Click “Add an existing local Git repository” and choose the folder you cloned to with Gitkraken
F)
Open Java perspective
G)
Click “File” -> “Open Projects from File System…” and add the Projects. You can add a working set. It is to have more clear arrangement, if you have a workspace with multiple projects.
H)
It will load. Maybe few minutes. If you did use a working set you can choose in “Package Explorer” -> “Top Level Elements” -> “Working Sets”
I)
“Error calculating classpath for project MavenProject” appears
J)
Configure a “Maven build…” with goals “clean install eclipse:clean eclipse:eclipse” and Skip Tests. Run this config.
K)
[INFO] BUILD SUCCESS should appear after several minutes. Choose “Maven -> Update Project…” -> “Select All”
L)
Error “Could not set the project description for ... because the project description file (.project) is out of sync with the file system.” At this point when I tried THIS TUTORIAL sometimes an other Error appears,
but exactly the same project where strucked, but “sdk-tests”, too. Finally the other Error was able to be solved by M)
M)
Choose “Close Project” for all projects with failure. Open all closed projects.
N)
Now some project are missing “M” for “Maven project”. Choose “Configure” -> “Convert to Maven Project” for each. Maybe Eclipse stops converting. In this case close Eclipse and start again and continue.
O)
Choose “Maven” -> “Update Project…” -> “Select all”
P)
Error “calculating classpath for project MavenProject” can appear. Go on File-System and delete content of “C:\Users\%Username%\.m2\repository\org\eclipse\milo”. See Error Message (Path after “project MavenProject:”)
for exact location, if you use this Tutorial for an other project than milo. Maybe Eclipse must be closed for deletion.
Q)
Execute milo build configuration again.
R)
See Tag “Problems” in Eclipse. There should be no Errors.
S)
Sometimes I was not finished now. If there are still Errors try to repeat again, maybe in different sequence:
a.
Close / open projects
b.
Always have an eye on the M that could disappear and convert to maven project again
c.
Maven Update for all Projects
d.
Execute Milo Build configuration again
e.
Deleting milo stuff in m2-folder
ð
SUCCESS
Thanks - Michael
![gitkraken
10.05.2019 , 11:24:37
GitKraken](png5Z5sZhiABa.png)
A)
Install Gitkraken and clone the repo
![gitkraken
10.05.2019 , 11:25:36
GitKraken](pngUF1mclcOzo.png)
![gitkraken
10.05.2019 , 11:27:21
GitKraken](pngQaDjpoKvlj.png)
![gitkraken
10.05.2019 , 11:28:11
GitKraken](pngEi103HzAo4.png)
B)
Current local is master. We want v0.3.0-M1. Hard reset to this commit.
![gitkraken
10.05.2019 , 11:29:15
GitKraken](pngbI9FCJZWdt.png)
![gitkraken
10.05.2019 , 11:29:56
GitKraken](pngwbC6mJaom7.png)
C)
Open eclipse new workspace and to standard configuration as related to your company
![eclipse
10.05.2019 , 11:31:47
Eclipse Platform Launcher](pngz_HRuiCLY_.png)
![eclipse
10.05.2019 , 11:32:11
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngbiMMatBomr.png)
![eclipse
10.05.2019 , 11:32:43
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](png_7mFyWEtHl.png)
![eclipse
10.05.2019 , 11:34:47
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](png2sr26jzTpK.png)
![eclipse
10.05.2019 , 11:35:19
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngpruPCZrHdk.png)
D)
Open Github perspective
![eclipse
10.05.2019 , 11:35:48
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngOIJ8wY98gH.png)
![eclipse
10.05.2019 , 11:36:16
Open Perspective](pngeyC1nVGQrT.png)
E)
Click “Add an existing local Git repository” and choose the folder you cloned to with Gitkraken
![eclipse
10.05.2019 , 11:36:39
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](png87DYQDMYwn.png)
![eclipse
10.05.2019 , 11:38:28
Add Git Repositories](png0_k6PXtLF_.png)
F)
Open Java perspective
![eclipse
10.05.2019 , 11:38:42
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngu9dszMn3pr.png)
![eclipse
10.05.2019 , 11:39:16
Open Perspective](pngDLFlhjEwGO.png)
G)
Click “File” -> “Open Projects from File System…” and add the Projects. You can add a working set. It is to have more clear arrangement, if you have a workspace with multiple projects.
![eclipse
10.05.2019 , 11:39:58
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngOm_7rVXapa.png)
![eclipse
10.05.2019 , 11:42:16
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngY9sbaEN23W.png)
![eclipse
10.05.2019 , 11:42:54
Import Projects from File System or Archive](png8ysJ59lYpS.png)
![eclipse
10.05.2019 , 11:43:26
New Working Set](png6bhXXjOAfV.png)
![eclipse
10.05.2019 , 11:43:41
New Working Set](pngMaHbxfn13C.png)
![eclipse
10.05.2019 , 11:44:13
Import Projects from File System or Archive](png48MkU4V7jy.png)
H)
It will load. Maybe few minutes. If you did use a working set you can choose in “Package Explorer” -> “Top Level Elements” -> “Working Sets”
![eclipse
10.05.2019 , 11:44:33
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngHWrnK4wsIV.png)
![eclipse
10.05.2019 , 11:45:33
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngl4tMUiqCj8.png)
![eclipse
10.05.2019 , 11:45:52
Configure Working Sets](pngxrqA63osSv.png)
I)
“Error calculating classpath for project MavenProject” appears
![eclipse
10.05.2019 , 14:24:12
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngj_NwOtVtYP.png)
J)
Configure a “Maven build…” with goals “clean install eclipse:clean eclipse:eclipse” and Skip Tests. Run this config.
![eclipse
10.05.2019 , 14:27:08
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngn6dHy5kZ_k.png)
![eclipse
10.05.2019 , 14:30:35
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngUxg2RmDPgM.png)
![eclipse
10.05.2019 , 14:30:41
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngP2eeU8orrq.png)
K)
[INFO] BUILD SUCCESS should appear after several minutes. Choose “Maven -> Update Project…” -> “Select All”
![eclipse
10.05.2019 , 14:34:34
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pnguG_BiMTV9S.png)
![eclipse
10.05.2019 , 14:35:13
Update Maven Project](pngchtj80lPFW.png)
L)
Error “Could not set the project description for ... because the project description file (.project) is out of sync with the file system.” At this point when I tried THIS TUTORIAL sometimes an other Error appears,
but exactly the same project where strucked, but “sdk-tests”, too. Finally the other Error was able to be solved by M)
![eclipse
10.05.2019 , 14:37:27
Error Updating Maven Configuration](pngGPbBwmTAz3.png)
![firefox
10.05.2019 , 14:38:27
java - .project is out of sync with the file system Eclipse - Stack Overflow - Mozilla Firefox](pngYmxnp9Wril.png)
M)
Choose “Close Project” for all projects with failure. Open all closed projects.
![eclipse
10.05.2019 , 14:40:55
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngGW4WngnweL.png)
![eclipse
10.05.2019 , 14:42:27
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngsfMon3Ktd8.png)
N)
Now some project are missing “M” for “Maven project”. Choose “Configure” -> “Convert to Maven Project” for each. Maybe Eclipse stops converting. In this case close Eclipse and start again and continue.
![eclipse
10.05.2019 , 16:16:30
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngM9WKw_F1Cq.png)
![eclipse
10.05.2019 , 16:20:51
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngBvcXyFD6LV.png)
O)
Choose “Maven” -> “Update Project…” -> “Select all”
![eclipse
10.05.2019 , 16:21:19
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngB1hgk_jpUh.png)
![eclipse
10.05.2019 , 16:21:20
Update Maven Project](pngH1qU1Xb194.png)
P)
Error “calculating classpath for project MavenProject” can appear. Go on File-System and delete content of “C:\Users\%Username%\.m2\repository\org\eclipse\milo”. See Error Message (Path after “project MavenProject:”)
for exact location, if you use this Tutorial for an other project than milo. Maybe Eclipse must be closed for deletion.
![firefox
10.05.2019 , 16:22:44
'Re: [Carbon-dev] Error calculating classpath for project' - MARC - Mozilla Firefox](pngZaZwk_mza0.png)
![eclipse
10.05.2019 , 16:23:01
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](png16Q6Z0ZI5e.png)
![explorer
10.05.2019 , 16:25:40
milo](pngUVZq4KFZ85.png)
Q)
Execute milo build configuration again.
![eclipse
10.05.2019 , 16:25:44
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngNNI3AT09oj.png)
R)
See Tag “Problems” in Eclipse. There should be no Errors.
![eclipse
10.05.2019 , 17:03:28
workspace_milo_clone_with_gitkraken_for_tutorial - Eclipse Platform](pngay2l7ksB0A.png)
S)
Sometimes I was not finished now. If there are still Errors try to repeat again, maybe in different sequence:
a.
Close / open projects
b.
Always have an eye on the M that could disappear and convert to maven project again
c.
Maven Update for all Projects
d.
Execute Milo Build configuration again
e.
Deleting milo stuff in m2-folder
Thanks - Michael