[Midpoint-dev] run midpoint source code in IntelliJ

Hsin-Fang Hsu hsin-fang.hsu at itconcepts.ch
Wed Apr 13 10:56:11 CEST 2022

Hi Richard,

Thank you very much for the information. It works!!!

My IntelliJ doesn’t have “Generated source root” in the “Mark Directory as” selection.
I added the generated sources by following the steps in the instruction:

[cid:image001.png at 01D84F25.9A032030]

Refresh the project. And it worked!!

Thanks again for the help!!

Best regards,

From: Richard Richter <virgo at evolveum.com<mailto:virgo at evolveum.com>>
Sent: Wednesday, April 13, 2022 10:06 AM
To: Hsin-Fang Hsu <hsin-fang.hsu at itconcepts.ch<mailto:hsin-fang.hsu at itconcepts.ch>>
Cc: midpoint-dev <midpoint-dev at lists.evolveum.com<mailto:midpoint-dev at lists.evolveum.com>>
Subject: Re: [Midpoint-dev] run midpoint source code in IntelliJ


There is a document here: https://docs.evolveum.com/midpoint/devel/guides/environment/idea/
But it is not totally updated, so you have to use your developer knowledge too.
Always refresh (reload) the top-level Maven project, not just GUI.
Provided deps are necessary to run the application, you're right there.

I don't know why the first section doesn't work - those are normal sources from infra/schema module, so that's strange.
The location of the generated classes changed recently and it was never automagically recognized in IDEA and have to be marked manually:
[cid:image002.png at 01D84F25.9A032030]

You definitely need to get rid of those red classes in editors, if IDEA can't build it, it can't run it.

Your run config seems fine, here's mine, I don't see any significant differences:
[cid:image003.png at 01D84F25.9A032030]

I hope this helps.

Richard Richter
midPoint developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint-dev/attachments/20220413/f00206b7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 38041 bytes
Desc: image001.png
URL: <https://lists.evolveum.com/pipermail/midpoint-dev/attachments/20220413/f00206b7/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 131252 bytes
Desc: image002.png
URL: <https://lists.evolveum.com/pipermail/midpoint-dev/attachments/20220413/f00206b7/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 51471 bytes
Desc: image003.png
URL: <https://lists.evolveum.com/pipermail/midpoint-dev/attachments/20220413/f00206b7/attachment-0005.png>

More information about the midPoint-dev mailing list