Reputation: 8398
I just started an IntelliJ plugin project, and after going a few steps, I realized that I am not managing dependencies with maven. Naturally I head over to the module in the project explorer, and right click -> Add Framework Support
. But Maven is not listed! In fact, the only thing listed is Groovy. What could cause this, and how do I get maven back?
The maven plugin is enabled.
Upvotes: 36
Views: 35581
Reputation: 1331
To get the option in the right hand of intellij you have to follow two step given below -
Upvotes: 2
Reputation: 499
The above options might take some time to execute but there is a quick fix to this if you already have a pom.xml file present in the project. Right click on the pom.xml file and you will see an option
Add as Maven Project
Upvotes: 13
Reputation: 156
As far as I understood, you have to mark your folder with pom.xml as Maven module.
In order for the project to become Maven:
P. S. Also check before these steps, that you have Maven support for your IntelijIdea.
Upvotes: 5
Reputation: 5083
Solved it being root as intelliJ launcher... not the best solution but seems a workaround. So the best solution I found yet instead of digging into filesystem to see where there is a permissions problem was to change the owner to my user
sudo chown -R myUsername:myUsergroup /opt/becauseIInstalledItHere/idea-IC-version
Upvotes: 0
Reputation: 573
First, make sure you have enabled maven plugin in
File -> Settings -> Plugins and add search the maven plugin and activate
Restart the IntelliJ.
Go and check the tool window to make it visible
go to View -> Tool Windows > Maven Projects to open it.
Upvotes: 6
Reputation: 8398
Here is a brief answer how to get going with Gradle, but most questions remain unanswered.
For a comprehensive read this post : http://labs.bsb.com/2013/11/how-to-manage-development-life-cycle-of-intellij-plugins-with-maven-2/
The post also includes a link to the source code on github.
This is probably not what you are struggling with, but I include it just in case. Supposing you have already started a new plugin project you have two options:
New > Module
pom.xml
in the project root, then right-click on it and choose Add as Maven Project
hth
Upvotes: 10