Intelliji plugin project as maven project

Hi,

Has anyone ever configured an intellij plugin project as a maven project ?
And if so, does there exists a public repository containing the open api jars ?  





regards,

Pieter

2 comments
Comment actions Permalink

Hello Pieter,

Has anyone ever configured an intellij plugin project as a maven
project ? And if so, does there exists a public repository containing
the open api jars ?


There is currently no official repository with the OpenAPI jars. There was
some unofficial one, but it contained some very old jars (version 7.0.2 or
something like that).

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I did.

But there are some limitations
1/ as you discovered the needed libraries are not readily available. the way I work is have a small batch script that installs IDEA libs in local repo (which needs that IDEA is locally installed).
Something like (for windows)

rem complete your IDEA Home folder here

set IDEA_HOME=C:\Program Files\JetBrains\IntelliJ IDEA 10666

set IDEA_VERSION=9.0.10666

set IDEA_GROUP_ID=com.intellij

call mvn install:install-file -DgroupId=%IDEA_GROUP_ID% -Dpackaging=jar -Dfile="%IDEA_HOME%\lib\openapi.jar" -DartifactId=openapi -Dversion=%IDEA_VERSION%

call mvn install:install-file -DgroupId=%IDEA_GROUP_ID% -Dpackaging=jar -Dfile="%IDEA_HOME%\lib\annotations.jar" -DartifactId=annotations -Dversion=%IDEA_VERSION%

call mvn install:install-file -DgroupId=%IDEA_GROUP_ID% -Dpackaging=jar -Dfile="%IDEA_HOME%\lib\extensions.jar" -DartifactId=extensions -Dversion=%IDEA_VERSION%

call mvn install:install-file -DgroupId=%IDEA_GROUP_ID% -Dpackaging=jar -Dfile="%IDEA_HOME%\lib\util.jar" -DartifactId=util -Dversion=%IDEA_VERSION%


2/ IDEA doesn't support plugins module being maven projects. So if you want to build using maven AND run in IDEA you'll have to play with your plugin iml file
0

Please sign in to leave a comment.