so I have created a plugin which I have previously built and is running on my server. today I tried to push this plugin to my github but i accidentally deleted the plugin, but i've pulled the one i pushed. now the project isn't set up the same way it was when i was developing it, there's no little spigot icon in the file structure and i can't press the green play button to build the jar. how do i set up intellij to be able to continue development on my plugin?
#how to get intellij to build my plugin
1 messages · Page 1 of 1 (latest)
are you using maven?
Right side panel, in lifecycle there'll be a button called package
thats how you maven compile
thats how I do it anyway
i have no right side panel
looks like youve corrupted it somehow, if you go to the file where the spigot icon was, add framework support and try to readd maven, does that fix anything?
when you re-pulled it did you use Create Project from VCS ?
no i just git pulled then opened the folder in intellij
wdym add framework support macho piggies
oh
wait no
what
help
i will make the repo public and link it
create the project from vcs
omg it just worked
intellij doesnt know that its a maven project if you just give it a folder
so the maven stuff is back now
and the little spigot icon
but the build button isn't green
wait
yeah it's not green
yeah you have to refresh
is that reload all maven projects
it has to pull all its cache stuff again
i don't see a refresh
little circle icon at the top of teh maven tab
yeah that one and/or teh one to the right of it
i pressed both and they're still greyed out
doesn't this thing need like
hm
yeah idk
... the hammer is the build icon
i thought i pressed play before
you cant run or debug code until it is built
yo it didn't make the jar
target just has a copy of the project file structure
and an empty folder generated-sources/annotations
uh in the terminal tab at the bottom there's nothing, in the build tab at the bottom there's Executing pre-compile tasks… Loading Ant configuration... Running Ant tasks... Executing post-compile tasks… Loading Ant configuration... Running Ant tasks...
looks like it may still not know that it is a maven project
also no it did used to be the play button
how does it not know it's a maven project
there's a maven panel
that just means you have the maven plugin installed
hmmm, not sure I have any maven projects left
how does intellij know where spigot is
pom.xml
oke
expand your Lifecycle folder in Maven
do you have a compile instruction?
yes
right-click and run it
okay now run package
what button is that
...
run maven build?
oh right
yay it made the stuff
how do i make it so i just press play button instead of compile → package
okay, you need to create a run config
is that that
its whats shown in my image, yeah
so the instructions used in mine are to clean the project and then compile and package
i don't have run configuration
right click in the panel
well if clean is run it removes the old versions
i will just run them manually
gradle was easier to teach how to count
do you mean learning gradle was easier than learning to count
no
what does your sentence mean
java is not my first language , used to having build numbers
we use java at school
we learn how to write code but never all this maven stuff or working with other people's code
makes me feel like a real idiot