how to getting all the dependencies of module in intellij?

Recently,i am writing a plugin,it need to obtain all dependencies lib in a module,But I did not find any method to get,The project may be a various types,who can help me?
English is not good, I hope you will understand what I'm saying

8 comments

Hello,

Try ModuleRootManager.getInstance(module).getOrderEntries()

Denis

0

Thanks,The problem has been solved!

0

but i want to get the main module which is j2ee container to running?how can i do it?

0

I'm afraid I don't understand the question.

Denis

0

i means what can i get the project output dir?for example j2ee project,what can i get the dir which is packaged?

0

You can retrieve information about project compile output via 'CompilerProjectExtension.getInstance(project).getCompilerOutputUrl()'.

Regarding facet settings - it's facet-dependent. For example, gwt facet can be obtained via GwtFacet.getInstance(module);

Denis

0

and how can i get the intellij console?

0

Please sign in to leave a comment.