-
2 votesanswersviews
maven程序集插件:将文件添加到依赖jar中
有一个maven模块,比如prj-package-module,使用maven-assembly-plugin将项目工件打包到tar文件中 . 在prj-package-module / pom.xml中还添加了jar作为依赖项,并打包到tar文件中 . 现在要求在打包到tar文件之前将文件prj-pakacge-module / src / main / resources / file.xml... -
2 votesanswersviews
Maven项目包装是战争,但也 Build /安装jar
我有一个Maven 3.3项目,主要输出是一个war文件: <artifactId>pro</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> 我正在使用maven插件来构建一个jar文件,该文件进入 target/pro-1.0-S... -
1 votesanswersviews
使用带有maven shade插件的maven jar插件
以下是我在多模块项目中的pom.xml中的结构 模块一个pom.xml <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-sh... -
27 votesanswersviews
如何在maven-shade-plugin创建的Jar中包含测试类?
我正在尝试使用Maven将我的测试类打包到一个带有依赖项的可执行jar中,但我很难做到这一点 . 到目前为止这是我的pom.xml: <project> <modelVersion>4.0.0</modelVersion> <groupId>com.c0deattack</groupId> <artifac... -
5 votesanswersviews
如何使用maven-assembly-plugin包含package.jar
我使用maven和maven-jar-plugin以及maven-assembly-plugin来构建我的项目的zip,包括项目jar及其依赖项 . 这是插件配置: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>mave...