1、進入idea,打開項目的projectstructure。
2、鼠標右鍵項目名稱,選擇openmodulesettings。
3、點擊菜單fileprojectstructure。
4、在projectstructure中選擇artifacts,點擊add,選擇JARFrommoduleswithdependencies。
5、進行相關的配置,即可導出java源代碼。