简体   繁体   中英

Set Class-Path as Rsrc-Class-Path in Maven jar build

I have build a maven jar. The manifest looks like

Build-Jdk: 1.7.0_55
Main-Class: com.abc.Locator
Class-Path: ./ lib/activemq-all-5.8.0.jar lib/activemq-amqp-5.8.0.jar 
 lib/activemq-broker-5.8.0.jar lib/activemq-openwire-legacy-5.8.0.jar 

But I want the jar manifest should have Rsrc-Class-Path in place of Class-Path.

Rsrc-Class-Path: ./ lib/activemq-all-5.8.0.jar lib/activemq-amqp-5.8.0.jar l
 ib/activemq-broker-5.8.0.jar lib/activemq-openwire-legacy-5.8.0.jar l
 ib/proton-jms-0.3.0-fuse-2.jar lib/proton-0.3.0-fuse-2.jar lib/proton

 Class-Path: .

Is it possible using Maven-jar-plugin or I need to have a custom maven plugin?

根据mvn 文档,您可能会使用自己的MANIFEST文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM