Java with Maven Projects not creating jar files

so, im on netbeans 23 and im doing a project that asks me to create a jar file but there is no option for me to create a jar file anywhere within the IDE. what do I do?
15 Replies
JavaBot
JavaBot4w ago
This post has been reserved for your question.
Hey @Royalrex25! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Mandagus Šernas
run it from command line if you can't figure out your IDE mvn package
Royalrex25
Royalrex25OP4w ago
i mean i've looked all over and the option that is mentioned doesn't exist but thanks for the command
dan1st
dan1st4w ago
Note that Maven (mvn package) creates the JAR in the target directory by default
Royalrex25
Royalrex25OP4w ago
there is no jar in the target direcotry for me
Kyo-chan
Kyo-chan4w ago
There won't be as long as the proposed mvn package isn't run.
Royalrex25
Royalrex25OP4w ago
yeah, but the thing is, i've ran the program several times
Kyo-chan
Kyo-chan4w ago
The commandline doesn't give options. You type the command you want in it
Royalrex25
Royalrex25OP4w ago
I meant for my ide
Kyo-chan
Kyo-chan4w ago
I agree that this implies that it is compiled somewhere, but not necessarily packaged as a .jar
dan1st
dan1st4w ago
running the program is not the same as running mvn package
Royalrex25
Royalrex25OP4w ago
so I should run the command you gave and it'll generate a jar?
Kyo-chan
Kyo-chan4w ago
And they offered in that case, to go all the way and just use the commandline. I'm not the one who gave it but yeah, sounds like the fastest option
Royalrex25
Royalrex25OP4w ago
alright, ill try it out in a bit
JavaBot
JavaBot4w ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server