Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij: Build | Build Artifacts deactivated

I want to create a .jar File using IntelliJ 2016.1

When I want to create a .jar file the Build Artifacts is deactivated.

Is there somthing i must change in my settings or is there somthing missing on my computer? Please help :)

I dont need help on how to create a JAR file.

like image 937
WetWer Avatar asked Mar 30 '16 08:03

WetWer


2 Answers

It's likely that you haven't configured that you want to build a .JAR/Artifact.

If you go to to your Project Settings by doing:

Ctrl+Shift+Alt+S

and click on the Artifacts tab on the side.

Then click the Green + at the top, you'll be able to configure your project to build an artifact.

Then Build > Build Artifacts... should not be greyed out and your should be able to build your JAR.

like image 158
Harmelodic Avatar answered Oct 20 '22 23:10

Harmelodic


In my case i solved this problem with;

Open pom.xml,

Right Click > Run Maven -> Reimport

After this, i was be able to Build Artifacts.

like image 2
Ramazan Mutlu Avatar answered Oct 20 '22 23:10

Ramazan Mutlu