Hi,

I think you’re first approach is almost right:

1) Clone the jacoco repo from Hithub
2) Then in the Repository view right-click on “Working Tree” node and select 
“Import Projects…”
3) Now select *all* projects for import

Regards,
-marc



> On 18. Jul 2020, at 21:58, [email protected] wrote:
> 
> Good Day,
> I am a college student and have some eclipse environment set up issues, wish 
> you could help.
> Eclipse : 2020-06 (4.16.0)
> Java: 9.0.4
> JDK: 9.0.4
> Maven: 3.6.3
> m2e : 1.16.0
> 
> Here is the process I import jacoco into Eclipse:
> Part one:
> 1. I import projects from Git (with smart import).
> 2. copy jacoco github uri.
> 3. select only master branch to work with.
> 4.Select the 1st jacoco folder and import it as maven project.
> 5.The jacoco maven structure is as fig 5.
> 6. Run "mvn clean verify" under org.jacoco.build folder, and it builds 
> successful.
> 7. I didn't seen any jar file after update the maven project, the structure 
> is like fig 7.
> 8. I was not able to edit the java file, the error said: This compilation 
> unit is not on the build path of a java project. like fig8 (I checked the 
> project nature is Maven nature), also I was not able to use command + click 
> to navigate to a method definition, key words, methods, variables etc are not 
> highlighted by different color like normal java file.
> 
> Part two:
> This time I deleted the whole maven project in eclipse and cleaned up the 
> work space, then repeated part one's step 1 to 3,  
> 4, I imported all the eclipse projects except the first maven project 
> instead, as fig 9.
> 5. The structure is as fig 10, there is an error signal in each project.
> 6. Run "mvn clean verify" under org.jacoco.build folder, this time I 
> encountered build failures on org.jacoco.core.test.validation.kotlin, and 
> org.jacoco.core.test.validation.scala as fig 11. I fixed this by change the 
> bytecode.version from 6 to 7.
> 7. Even though there were errors everywhere in the projects, but it still can 
> build successful, and this time I see target file and jar file like fig 12. 
> Also this time all the java files appeared to be normal, I can edit, use 
> short cut.
> 
> Would you please tell me why in part one, I was not able to edit java file, 
> and why in part two, there were errors everywhere. 
> Wish you a good weekend.
> 
> <Screen Shot 2020-07-18 at 14.26.05.png> <about:invalid#zClosurez>
> fig1 <about:invalid#zClosurez> <about:invalid#zClosurez><Screen Shot 
> 2020-07-18 at 14.26.25.png> <about:invalid#zClosurez>
> fig2 <about:invalid#zClosurez><Screen Shot 2020-07-18 at 14.26.44.png> 
> <about:invalid#zClosurez> <about:invalid#zClosurez>fig3 
> <about:invalid#zClosurez>
> <Screen Shot 2020-07-18 at 14.27.14.png> <about:invalid#zClosurez>
> fig4 <about:invalid#zClosurez> <about:invalid#zClosurez><Screen Shot 
> 2020-07-18 at 14.27.26.png> <about:invalid#zClosurez>
> fig 5 <about:invalid#zClosurez>
> 
> 
>  <about:invalid#zClosurez><Screen Shot 2020-07-18 at 15.01.48.png> 
> <about:invalid#zClosurez>
> fig6 <about:invalid#zClosurez>
> 
> <Screen Shot 2020-07-18 at 15.14.25.png> <about:invalid#zClosurez>
> 
> fig 7 <about:invalid#zClosurez><Screen Shot 2020-07-18 at 14.27.59.png> 
> <about:invalid#zClosurez>fig 8  <about:invalid#zClosurez><Screen Shot 
> 2020-07-18 at 15.26.00.png> <about:invalid#zClosurez>fig 9 
> <about:invalid#zClosurez><Screen Shot 2020-07-18 at 15.35.55.png> 
> <about:invalid#zClosurez>fig 10 <about:invalid#zClosurez><Screen Shot 
> 2020-07-18 at 15.39.12.png>
> 
> fig 11 <about:invalid#zClosurez>
>  <about:invalid#zClosurez><Screen Shot 2020-07-18 at 15.49.32.png> 
> <about:invalid#zClosurez>fig 12 <about:invalid#zClosurez>
> 
> 
> 
>  <about:invalid#zClosurez>
>  <about:invalid#zClosurez>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/977ad1ac-8e60-4293-b2a4-022b12b0f951o%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/977ad1ac-8e60-4293-b2a4-022b12b0f951o%40googlegroups.com?utm_medium=email&utm_source=footer>.
> <Screen Shot 2020-07-18 at 14.26.05.png><Screen Shot 2020-07-18 at 
> 14.26.25.png><Screen Shot 2020-07-18 at 14.26.44.png><Screen Shot 2020-07-18 
> at 14.27.14.png><Screen Shot 2020-07-18 at 14.27.26.png><Screen Shot 
> 2020-07-18 at 15.01.48.png><Screen Shot 2020-07-18 at 15.14.25.png><Screen 
> Shot 2020-07-18 at 14.27.59.png><Screen Shot 2020-07-18 at 
> 15.26.00.png><Screen Shot 2020-07-18 at 15.35.55.png><Screen Shot 2020-07-18 
> at 15.39.12.png><Screen Shot 2020-07-18 at 15.49.32.png>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/FD112BAF-B671-4AE3-B76E-F080412E41C0%40mountainminds.com.

Reply via email to