首页 > 其他分享 >maven-jar-plugin 定制包含哪些内容,不包含哪些

maven-jar-plugin 定制包含哪些内容,不包含哪些

时间:2023-06-06 12:57:34浏览次数:40  
标签:包含 plugin 哪些 jar maven plugins

http://maven.apache.org/plugins/maven-jar-plugin/usage.html

控制打包内容

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.0.2</version>
                <configuration>
                    <excludes>
                        <exclude>**/iceconfig/*</exclude>
                    </excludes>
                </configuration>
            </plugin>
        </plugins>
    </build>

 

比如这个就不会将iceconfig 下的包含到jar包里

 

如果是多级目录则格式 **/xxx/**

实际举例:

 

移除红框中

<excludes>
	<exclude>**/protocols/**</exclude>
	<exclude>**/templates/**</exclude>
	<exclude>**/README/**</exclude>
</excludes>

 

标签:包含,plugin,哪些,jar,maven,plugins
From: https://www.cnblogs.com/zno2/p/7649579.html

相关文章

  • maven-antrun-plugin
    1) 依赖 2)默认的classpath http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.htmlmaven.compile.classpathmaven.runtime.classpathmaven.test.classpathmaven.plugin.classpath3)示例<targetname="slice2java"><mk......
  • 26) minify-maven-plugin 合并压缩 js css文件
     http://samaxes.github.io/minify-maven-plugin/minify-mojo.html <build><plugins><plugin><groupId>com.samaxes.maven</groupId><artifactId>minify-maven-plugin</artifactId><version&g......
  • 27) yuicompressor-maven-plugin 合并压缩 js css文件
    http://davidb.github.io/yuicompressor-maven-plugin/compress-mojo.html<plugin><groupId>net.alchim31.maven</groupId><artifactId>yuicompressor-maven-plugin</artifactId><version>1.5.1</......
  • vite + react + arco-design-mobile 使用 babel-plugin-import 实现按需加载
    0.什么是vite?vite是一种新型前端构建工具。一个开发服务器,它基于原生ES模块提供丰富的内建功能一套构建指令,它使用Rollup打包你的代码,可输出用于生产环境的高度优化过的静态资源1.什么是babel?babel是一个javasctipt编译器,他是一个工具链,主要用于在当前浏览器和旧浏览器......
  • FX110网:5月下半月外汇黑平台有哪些?共109家避免踩雷(上)
    在外汇交易中,投资者要学的东西很多,但对于一个新手投资者来说,最先要学的不是如何交易,而是如何防止被骗,第一步就是要学会鉴别平台。我们不知道下一家黑平台是哪一家,但对于FX110网曝光过的虚假平台,一定要远离!5月上半月,FX110网已曝光黑平台85家,而在下半月,新曝光的黑平台数目更大,竟高达......
  • VMware ESXi定制版(OEM ISO)资源下载(包含5.1\5.5\6.0)
     一、VMwareESXi5.1.0update031、VMware-ESXi-5.1.0-Update3-2323236-hitachi-0400.iso(日立) 2、VMware-ESXi-5.1.0-Update3-2323236-HP-510.9.4.24-Nov2015.iso(HP/HPE) 3、VMware-ESXi-5.1.0-Update3-2323236-LNV-20150120.iso(联想) 4、VMware-ESXi-5.1.0.update03-23232......
  • 智慧城市建设需要依靠哪些技术?
    智慧城市建设需要依靠多种技术来实现数字化、智能化和可持续发展的目标。其中,数字孪生技术在智慧城市建设中起着重要的作用。首先,数字孪生技术可以提供高度精确的城市建筑和基础设施的数字模型。通过对城市的建筑、道路、水系等要素进行数字化建模,可以实现对城市的全面理解和分析......
  • 微软WHQL徽标认证是什么?流程有哪些?
    有很多人不了解什么是微软WHQL徽标认证,也不知道为什么要进行微软WHQL认证。其实这是基于微软的一项政策:2021年4月底起,微软开始不再接受代码签名证书给驱动程序进行数字签名,取而代之的是需要对驱动程序做WHQL认证。驱动程序通过WHQL认证之后,可以确保硬件设备能够在Windows系统中......
  • 【Exception】maven-compiler-plugin 编译失败集锦
    1JDK明明是1.8为什么说编译环境和运行环境不一致?Whatfuck?JDK明明1.8为什么编译环境变成1.5了?Whatfuck?原因分析:奇怪的是我的机器上只安装了JDK8,为什么还会说不支持diamond和lambda呢?在Google大神的指引下,在MavenCompiler插件介绍里面找到了答案:Alsonotethat......
  • 【VMware】CentOS6.5 Loaded plugins: fastestmirror, refresh-packagekit, security
    最近在用Centos6.5的时候出现了这种情况,[root@bogonDesktop]#yum-yinstalldockerLoadedplugins:fastestmirror,refresh-packagekit,securityLoadingmirrorspeedsfromcachedhostfile *base:mirrors.aliyun.com *extras:mirrors.nwsuaf.edu.cn *updates:m......