<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div data-marker="__QUOTED_TEXT__"><div style="font-family:'arial' , 'helvetica' , sans-serif;font-size:12pt;color:#000000"><div>Hi</div><br><div>There is a document here: <a href="https://docs.evolveum.com/midpoint/devel/guides/environment/idea/" target="_blank" rel="nofollow noopener noreferrer">https://docs.evolveum.com/midpoint/devel/guides/environment/idea/</a><br></div><div>But it is not totally updated, so you have to use your developer knowledge too.</div><div>Always refresh (reload) the top-level Maven project, not just GUI.</div><div>Provided deps are necessary to run the application, you're right there.</div><br><div>I don't know why the first section doesn't work - those are normal sources from <strong>infra/schema</strong> module, so that's strange.</div><div>The location of the generated classes changed recently and it was never automagically recognized in IDEA and have to be marked manually:</div><div><img src="cid:d87f8c7f2b01246ecfbf0e0812e019576e4afb2d@zimbra" data-mce-src="cid:d87f8c7f2b01246ecfbf0e0812e019576e4afb2d@zimbra"></div><br><div>You definitely need to get rid of those red classes in editors, if IDEA can't build it, it can't run it.<br></div><br><div>Your run config seems fine, here's mine, I don't see any significant differences:</div><div><img src="cid:fd706d0f589b29830e4c2e66f4c3476e8f4d9daf@zimbra" data-mce-src="cid:fd706d0f589b29830e4c2e66f4c3476e8f4d9daf@zimbra"></div><br><div>I hope this helps.</div><br><div>Richard Richter<br></div><div>midPoint developer<br></div><br><br><hr id="zwchr"><div><b>From: </b>"Hsin-Fang Hsu via midPoint-dev" <midpoint-dev@lists.evolveum.com><br><b>To: </b>"midpoint-dev" <midpoint-dev@lists.evolveum.com><br><b>Sent: </b>Wednesday, April 13, 2022 9:31:04 AM<br><b>Subject: </b>[Midpoint-dev] run midpoint source code in IntelliJ</div><br><div><div class="WordSection1"><p class="MsoNormal"><span style="font-size:14pt" lang="EN-US">Hi,</span></p><p class="MsoNormal"><span style="font-size:14pt" lang="EN-US"> </span></p><p class="MsoNormal"><span style="font-size:14pt" lang="EN-US">I want to run midpoint source code directly in IntelliJ, but there are some imports cannot be recognized. For example:</span></p><p class="MsoNormal"><span style="font-size:14pt" lang="EN-US">Here is what I tried:</span></p><p class="MsoNormal"><span style="font-size:14pt" lang="EN-US">On the pom file under admin-gui, I tried to reload maven project, generate sources and update folder:</span></p><p class="MsoNormal"><span style="font-size:14pt" lang="EN-US">I also tried to add “include dependencies with provided scope”.</span></p><p class="MsoNormal"><span style="font-size:14pt" lang="EN-US">Anyone know how to fix the import issue and run source code in midpoint?</span></p><p class="MsoNormal"><span style="font-size:14pt" lang="EN-US">Thank you very much for your help!</span></p><p class="MsoNormal"><span style="font-size:14pt" lang="EN-US"> </span></p><p class="MsoNormal"><span style="font-size:14pt" lang="EN-US">Best regards,</span></p><p class="MsoNormal"><span style="font-size:14pt" lang="EN-US">Hsin-Fang</span></p></div><br>_______________________________________________<br>midPoint-dev mailing list<br>midPoint-dev@lists.evolveum.com<br>https://lists.evolveum.com/mailman/listinfo/midpoint-dev</div></div><br></div></div></body></html>