[Midpoint-dev] run midpoint source code in IntelliJ

Hsin-Fang Hsu hsin-fang.hsu at itconcepts.ch
Wed Apr 13 10:53:59 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.4B221A20]

Refresh the project. And it worked!!

Thanks again for the help!!

Best regards,
Hsin-Fang

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

Hi

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:image005.png at 01D84F24.E00F36A0]

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:image006.png at 01D84F24.E00F36A0]

I hope this helps.

Richard Richter
midPoint developer


________________________________
From: "Hsin-Fang Hsu via midPoint-dev" <midpoint-dev at lists.evolveum.com<mailto:midpoint-dev at lists.evolveum.com>>
To: "midpoint-dev" <midpoint-dev at lists.evolveum.com<mailto:midpoint-dev at lists.evolveum.com>>
Sent: Wednesday, April 13, 2022 9:31:04 AM
Subject: [Midpoint-dev] run midpoint source code in IntelliJ

Hi,

I want to run midpoint source code directly in IntelliJ, but there are some imports cannot be recognized. For example:

[cid:image007.png at 01D84F24.E00F36A0]

Here is what I tried:
On the pom file under admin-gui, I tried to reload maven project, generate sources and update folder:
[cid:image008.png at 01D84F24.E00F36A0]

I also tried to add “include dependencies with provided scope”.
[cid:image009.png at 01D84F24.E00F36A0]


Anyone know how to fix the import issue and run source code in midpoint?
Thank you very much for your help!

Best regards,
Hsin-Fang

_______________________________________________
midPoint-dev mailing list
midPoint-dev at lists.evolveum.com<mailto:midPoint-dev at lists.evolveum.com>
https://lists.evolveum.com/mailman/listinfo/midpoint-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint-dev/attachments/20220413/bf1f6c3a/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 131252 bytes
Desc: image005.png
URL: <https://lists.evolveum.com/pipermail/midpoint-dev/attachments/20220413/bf1f6c3a/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 51471 bytes
Desc: image006.png
URL: <https://lists.evolveum.com/pipermail/midpoint-dev/attachments/20220413/bf1f6c3a/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 112626 bytes
Desc: image007.png
URL: <https://lists.evolveum.com/pipermail/midpoint-dev/attachments/20220413/bf1f6c3a/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.png
Type: image/png
Size: 107564 bytes
Desc: image008.png
URL: <https://lists.evolveum.com/pipermail/midpoint-dev/attachments/20220413/bf1f6c3a/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image009.png
Type: image/png
Size: 75922 bytes
Desc: image009.png
URL: <https://lists.evolveum.com/pipermail/midpoint-dev/attachments/20220413/bf1f6c3a/attachment-0010.png>
-------------- 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/bf1f6c3a/attachment-0011.png>


More information about the midPoint-dev mailing list