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
⌛
This post has been reserved for your question.
Hey @Royalrex25! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose 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.
run it from command line if you can't figure out your IDE
mvn package
i mean i've looked all over and the option that is mentioned doesn't exist
but thanks for the command
Note that Maven (
mvn package
) creates the JAR in the target
directory by defaultthere is no jar in the target direcotry for me
There won't be as long as the proposed mvn package isn't run.
yeah, but the thing is, i've ran the program several times
The commandline doesn't give options. You type the command you want in it
I meant for my ide
I agree that this implies that it is compiled somewhere, but not necessarily packaged as a .jar
running the program is not the same as running
mvn package
so I should run the command you gave and it'll generate a jar?
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
alright, ill try it out in a bit
💤
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.