其他
JAR Layout
Archive a fat jar with all the dependencies, so that you can inplace run or use the jar if you haven't maven repository. Following is an example:
xx.jar |-META-INF |-maven |-MENIFEST.MF |-lib |-a.jar |-b.jar
and the MENIFEST.MF is like this:
Manifest-Version: 1.0Archiver-Version: Plexus ArchiverCreated-By: Apache MavenBuilt-By: AdministratorBuild-Jdk: 1.5.0_12Extension-Name: eaf-service-implImplementation-Title: eaf-service-implImplementation-Version: 0.0.1-SNAPSHOTClass-Path: lib/a.jar lib/b.jar
Usage
in your pom.xml, add following:
<properties> <deployDir>D:\jboss\server\all\deploy</deployDir></properties><build> <plugins> .... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-fatjar-plugin</artifactId> <version>1.0.0</version> <executio
maven
插件
fatjar
依赖
暂无评论