Avatar
0
Vu Luong Anh Pundit
[ezyfox-server] Làm sao để mở ezyfox-server bằng IntelliJ Idea?
Em đã import ezyfox-server vào IntelliJ nhưng các file test không chạy được. Các bước:
  1. Fork ezyfox-server về: <a href="https://github.com/vu-luong/ezyfox-server">https://github.com/vu-luong/ezyfox-server
  2. Import vào IntelliJ Idea
  3. Set Sources Root:
<img class="alignnone size-full wp-image-247" src="https://stackask.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-29-at-12.22.38.png" alt="" />
  1. Kết quả bị lỗi:
<img class="alignnone size-full wp-image-248" src="https://stackask.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-29-at-12.23.10.png" alt="" />
  • Answer
ezyfox ezyfox-server
Remain: 5
4 Answers
Avatar
tvd12 Enlightened
tvd12 Enlightened
The Best Answer
Các module của ezyfox-server là các dự án độc lập với nhau em ạ, nên thành ra phải import riêng, ở trong eclipse thì nó chung vào 1 wordspace, bên intellj em thử xem có tính năng nào thế không nhé. Nếu không có thì ở file ezyfox-server/pom.xml em bổ sung thẻ modules kiểu này nhé:
<modules>
<module>ezyfox-server-core</module>
<module>ezyfox-server-boot</module>
<module>ezyfox-server-nio</module>
<module>ezyfox-server-nio-runner</module>
<module>ezyfox-server-support</module>
<module>ezyfox-server-embedded</module>
<modules>
Nhưng lúc commit đừng commit cái file đó lên nhé
  • 1
  • Reply
Avatar
Em add modules thì thấy hết lỗi import rồi ạ, nhưng thấy nó không nhận thằng ezyfox-server-nio-runnerezyfox-server-embbeded là module.
<img class="alignnone size-full wp-image-256" src="https://stackask.com/wp-content/uploads/2021/07/Screen-Shot-2021-07-29-at-18.26.34.png" alt="" />
  • 0
  • Reply
Avatar
tvd12 Enlightened
tvd12 Enlightened
À tại vì anh viết sai chính tả, em viết lại cho đúng tên giúp anh với nhé, :)
  • 1
  • Reply
Avatar
Ok thank anh!
  • 0
  • Reply