Best way to use Maven and create JAR in IntelliJ

2,642 views
Skip to first unread message

tom1v...@gmail.com

unread,
Jul 15, 2014, 7:43:34 PM7/15/14
to boo...@googlegroups.com
Hi Peter,

If I load in version 0.17 from Maven, then create an artifact that pulls in everything from the Maven JARs, the manifest of the final JAR is wrong -- looks like it's pulled in from a Maven JAR.

Do you know what I should be doing, or whether the Maven JARs should not have a manifest?


Thanks


Tom

Peter A

unread,
Jul 15, 2014, 8:19:00 PM7/15/14
to boofcv
Not sure I understand exactly what you mean.  So you're downloading all the jars from maven, then doing something?  I haven't had any issues with v0.17 with a Gradle or Maven build script.

- Peter


--
You received this message because you are subscribed to the Google Groups "BoofCV" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boofcv+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
"Now, now my good man, this is no time for making enemies."    — Voltaire (1694-1778), on his deathbed in response to a priest asking that he renounce Satan.

tom1v...@gmail.com

unread,
Jul 16, 2014, 4:44:11 AM7/16/14
to boo...@googlegroups.com
In IntelliJ you can create an executable JAR file by going to File -> Project Structure -> Artifacts -> Create from module with dependencies.

If I do this with the Maven BoofCV 0.17 JARs, and use 'Extract libraries into JAR', it seems that (one of?) the BoofCV JARs has a manifest file that overwrites the one for the new JAR.

This could be buggy behavior from IntelliJ (shouldn't it put in the new, non-library content last?).

But the only reason I'm asking here is I'm not sure how to create executable JARs for projects including BoofCV.

Perhaps I should just use a different method: I want to be able to test, and pass command line args to the app.


Thanks
Tom

tom1v...@gmail.com

unread,
Jul 16, 2014, 6:02:27 AM7/16/14
to boo...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages