Executable JAR ignores its own Class-Path attribute

后端 未结 3 1104
-上瘾入骨i
-上瘾入骨i 2020-12-08 23:18

I used the instructions found at Maven - how can I add an arbitrary classpath entry to a jar to add an arbitrary entry to the Class-Path attribute. Here is my <

3条回答
  •  既然无缘
    2020-12-08 23:20

    For those that may otherwise be unaware, the executable archive mechanism takes the manifest classpath and uses it to load classes external to the archive.

    So if you are expecting a WAR with a manifest classpath of WEB-INF/classes to find classes in the WEB-INF/classes entry inside the archive then you will be disappointed.

提交回复
热议问题