IntelliJ: Including jars in a jar artifact

前端 未结 3 1012
失恋的感觉
失恋的感觉 2021-01-21 03:33

Developing on the Mac with IntelliJ 9.0.2 Community Edition.

I have a program which depends on two library jars. I have figured out how to get IntelliJ to make me a jar

相关标签:
3条回答
  • 2021-01-21 04:01

    IDEA doesn't support it yet, you can use Ant integration to package your jar (either by unpacking all the jars into the temp folder and then packaging the project output plus this temp folder into the single jar or by using some Ant task like jarjar).

    If you want this feature to appear in the future IDEA versions, please vote for the request.

    0 讨论(0)
  • 2021-01-21 04:08

    I will use Maven Assembly plugin. Its simple and will give you a neat little jar file..

    0 讨论(0)
  • 2021-01-21 04:24

    Having the dependency JARs included in your JAR should allow yoru code to run successfully. You probably don't have the JARs on your classpath.

    0 讨论(0)
提交回复
热议问题