How to build an artifact and copy the libraries to a different folder?

Answered

As the title states, I want to build an artifact with no libraries extracted to it. I want the libraries in a different folder and they should be linked via manifest. 

While creating an artifact I noticed if I add a folder to the Artifact output like this:

But I noticed that the additional folder I added isn't added to the classpath in the manifest. Is there a fast or recommended way to automatically add the folder to the classpath or do I need to manually edit it every time I add a library?

1
1 comment

There is copy to the output directory and link via manifest in Create Jar from Modules Dialog but this action places library jars in the same directory with the artifact. It does not update the Manifest class path if you place libraries into sub-directory. Please vote for a related request: https://youtrack.jetbrains.com/issue/IDEA-87763

 

0

Please sign in to leave a comment.