Ok, good hear! good luck for your project, -marc
> On 20. Jul 2020, at 18:57, veronica.sheng...@gmail.com wrote: > > Hi Marc, > It's working, thanks for your help! I'm a newbie to Eclipse, I even didn't > realize to change the IDE's perspective. > > 在 2020年7月18日星期六 UTC-4下午3:58:01,veronica...@gmail.com写道: > 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. > > <> > fig1 <> <> <> > fig2 <> <> <>fig3 <> > <> > fig4 <> <> <> > fig 5 <> > > > <> <> > fig6 <> > > <> > > fig 7 <> <>fig 8 <> <>fig 9 <> <>fig 10 <> > fig 11 <> > <> <>fig 12 <> > > > > <> > <> > > > > > > > > > > > > > > > > > > > > -- > 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 jacoco+unsubscr...@googlegroups.com > <mailto:jacoco+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/95c0ae92-bd6a-4e77-b65c-43648c8bbbd6o%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/95c0ae92-bd6a-4e77-b65c-43648c8bbbd6o%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 jacoco+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/44884EE7-5C7F-4ED3-9D32-F9C7C64F993E%40mountainminds.com.