How to add external maven repository as dependency to my plugin?

已回答

I've read:

But still I'm not sure how to add properly external dependency to plugin.

I want to add this: https://github.com/bbaumgartner/jtoggl

I can copy jar directly or use maven repository. I'm asking about best practices.

Thanks

0

IntelliJ platform currently doesn't support external dependencies at runtime. All libraries used by your plugin should be either bundled into 'lib' directory of your plugin distribution, or come from other plugins your depend on or the IntelliJ core itself.

'depends' tag in plugin.xml file may refer only to other plugins or the platform modules.

0
Avatar
Permanently deleted user

Have you tried adding it through Libraries Menu ?

 

0

Enakin,

this is indeed allows you to download and use a library from Maven repository, but you'll still need to pack it with your plugin to make it available at runtime.

0

请先登录再写评论。