#how to get intellij to build my plugin

1 messages · Page 1 of 1 (latest)

grizzled gate
#

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?

late lagoon
#

are you using maven?

grizzled gate
#

yes i have a pom.xml if that is a maven thing

#

i know i was using maven

#

100%

late lagoon
#

Right side panel, in lifecycle there'll be a button called package

#

thats how you maven compile

#

thats how I do it anyway

grizzled gate
#

i have no right side panel

late lagoon
#

oh? can you screenshot quick?

#

haven't looked at intellij in a hot sec

grizzled gate
#

i will show what it used to look liek hold on

late lagoon
#

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?

sweet knoll
#

when you re-pulled it did you use Create Project from VCS ?

grizzled gate
#

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

sweet knoll
#

create the project from vcs

grizzled gate
#

omg it just worked

sweet knoll
#

intellij doesnt know that its a maven project if you just give it a folder

grizzled gate
#

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

sweet knoll
#

yeah you have to refresh

grizzled gate
#

is that reload all maven projects

sweet knoll
#

it has to pull all its cache stuff again

grizzled gate
#

i don't see a refresh

sweet knoll
#

little circle icon at the top of teh maven tab

grizzled gate
#

?

sweet knoll
#

yeah that one and/or teh one to the right of it

grizzled gate
#

i pressed both and they're still greyed out

#

doesn't this thing need like

#

hm

#

yeah idk

sweet knoll
#

... the hammer is the build icon

grizzled gate
#

i thought i pressed play before

sweet knoll
#

you cant run or debug code until it is built

grizzled gate
#

yo it didn't make the jar

#

target just has a copy of the project file structure

#

and an empty folder generated-sources/annotations

sweet knoll
#

what does your terminal tell you?

#

it failed for some reason

grizzled gate
#

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...

sweet knoll
#

looks like it may still not know that it is a maven project

grizzled gate
#

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

sweet knoll
#

that just means you have the maven plugin installed

grizzled gate
#

o

#

my stuff rn

sweet knoll
#

hmmm, not sure I have any maven projects left

grizzled gate
#

how does intellij know where spigot is

sweet knoll
#

pom.xml

grizzled gate
#

oke

sweet knoll
#

expand your Lifecycle folder in Maven

grizzled gate
#

okey

sweet knoll
#

do you have a compile instruction?

grizzled gate
#

yes

sweet knoll
#

right-click and run it

grizzled gate
#

it says build success but there is no jar

sweet knoll
#

okay now run package

grizzled gate
#

what button is that

sweet knoll
#

...

grizzled gate
#

run maven build?

sweet knoll
#

you should have it on the right in Lifecycle

grizzled gate
#

oh right

#

yay it made the stuff

#

how do i make it so i just press play button instead of compile → package

sweet knoll
#

okay, you need to create a run config

grizzled gate
#

is that that

sweet knoll
#

its whats shown in my image, yeah

#

so the instructions used in mine are to clean the project and then compile and package

grizzled gate
#

i don't have run configuration

sweet knoll
#

right click in the panel

grizzled gate
#

ok

#

there are 3 download options

#

there are 3 download options

#

now there aren't

sweet knoll
#

well if clean is run it removes the old versions

grizzled gate
#

i will just run them manually

sweet knoll
#

gradle was easier to teach how to count

grizzled gate
#

do you mean learning gradle was easier than learning to count

sweet knoll
#

no

grizzled gate
#

what does your sentence mean

sweet knoll
#

java is not my first language , used to having build numbers

grizzled gate
#

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

sweet knoll
#

So I taught gradle to give me build numbers on every package

#

yeah build systems are separate from language stuff

grizzled gate
#

yeah

#

the most we got taught i remember is like

#

build systems exist

#

this year we have to do a big software project for a company and my team is doing shit

#

how do i make it so the green play button cleans, compiles and packages my thing