我想使用 Maven 使 manifest.mf 文件包含两个类路径
pom.xml
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>./dependency</classpathPrefix>
<mainClass>com.sds.afi.run.SimsMain</mainClass>
</manifest>
然后,生成 manifest.mf,如下所示。
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: arnold
Build-Jdk: 1.6.0_27
Main-Class: com.sds.afi.run.SimsMain
Class-Path: ./dependency/mina-core-1.1.7.jar ./dependency/mina-integra
tion-spring-1.1.7.jar ./dependency/mina-filter-ssl-1.1.7.jar ./depend
ency/spring-integration-core-2.0.4.RELEASE.jar ./dependency/spring-in
tegration-mail-2.0.4.RELEASE.jar ./dependency/spring-context-support-
3.0.5.RELEASE.jar ./dependency/spring-integration-ip-2.0.4.RELEASE.ja
r ./dependency/spring-integration-stream-2.0.4.RELEASE.jar ./dependen
cy/commons-lang-2.6.jar
**我想附上“。” 最后。
我怎么解决这个问题?谢谢**