jar包
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.4</version> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> <classpathPrefix>lib/</classpathPrefix> <mainClass>com.xxx.windfarmconfigtool.FrontConfigMain</mainClass> <!-- <useUniqueVersions>false</useUniqueVersions> --> </manifest> <manifestEntries> <Class-Path>./</Class-Path> </manifestEntries> </archive> </configuration> </plugin>
归档文件:
<plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <appendAssemblyId>false</appendAssemblyId> <descriptors> <descriptor>src/main/resources/config/package-frontconfig.xml</descriptor> </descriptors> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin>
<?xml version="1.0" encoding="UTF-8"?> <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"> <id>package</id> <formats> <format>zip</format> </formats> <includeBaseDirectory>true</includeBaseDirectory> <fileSets> <fileSet> <directory>src/main/resources</directory> <outputDirectory>/</outputDirectory> <!-- <includes> <include>config/log4j.properties</include> <include>frontconfig/*</include> </includes> --> </fileSet> <fileSet> <directory>${project.build.directory}</directory> <outputDirectory>/</outputDirectory> <includes> <include>*.exe</include> <include>*.jar</include> </includes> </fileSet> </fileSets> <dependencySets> <dependencySet> <outputDirectory>lib</outputDirectory> <scope>runtime</scope> <!-- <unpack>false</unpack> --> <excludes> <!-- <exclude>${project.name}-${project.version}</exclude> --> <exclude>${groupId}:${artifactId}</exclude> </excludes> </dependencySet> </dependencySets> </assembly>
exe:
<plugin> <groupId>org.bluestemsoftware.open.maven.plugin</groupId> <artifactId>launch4j-plugin</artifactId> <version>1.5.0.0</version> <executions> GUI exe <execution> <id>l4j-gui</id> <phase>package</phase> <goals> <goal>launch4j</goal> </goals> <configuration> <headerType>gui</headerType> <outfile>target/${artifactId}-${version}.exe</outfile> <downloadUrl>https://java.com/en/download/manual.jsp</downloadUrl> <jar>target/${artifactId}-${version}.jar</jar> 'shaded' is the value set on shadedClassifierName above <errTitle>App Err</errTitle> <classPath> <mainClass>com.xxx.windfarmconfigtool.Main</mainClass> <addDependencies>true</addDependencies> <jarLocation>target/lib</jarLocation> <preCp>lib/*.jar</preCp> </classPath> <icon>src/main/resources/icons/application.ico</icon> <jre> <minVersion>1.8.0</minVersion> <maxVersion>1.6.0</maxVersion> <initialHeapSize>128</initialHeapSize> <maxHeapSize>1024</maxHeapSize> <path>C:\Program Files\Java\jre1.8.0_101\bin</path> <bundledJre64Bit>true</bundledJre64Bit> <bundledJreAsFallback>true</bundledJreAsFallback> <jdkPreference>jdkOnly</jdkPreference> <runtimeBits>64</runtimeBits> </jre> <versionInfo> <fileVersion>1.0.0.0</fileVersion> <txtFileVersion>1.0.0.0</txtFileVersion> <fileDescription>xxx</fileDescription> <copyright>xxx</copyright> <productVersion>1.0.0.0</productVersion> <txtProductVersion>1.0.0.0</txtProductVersion> <productName>${artifactId}-${version}</productName> <internalName>${artifactId}-${version}</internalName> <originalFilename>${project.name }.exe</originalFilename> </versionInfo> <messages> <startupErr>text</startupErr> <bundledJreErr>text</bundledJreErr> <jreVersionErr>text</jreVersionErr> <launcherErr>text</launcherErr> Used by console header only. <instanceAlreadyExistsMsg>text</instanceAlreadyExistsMsg> </messages> </configuration> </execution> </executions> </plugin>
相关推荐
Maven可以简化项目的构建和依赖管理,并提供...Maven自带了许多常用的插件,如编译、测试、打包插件等。 5、文档生成:Maven可以使用插件来生成项目的文档,如JavaDoc文档、站点文档等。 6、多模块支持:Maven支持多
坐标(Coordinates)、打包方式(Packaging)、项目描述 项目子父级关系(parent) 依赖管理(dependency),冲突了怎么办 组合及其继承(modules)、生命周期及阶段、常用的命令 不同开发环境的部署( profile ) 插件( ...
该插件允许用户整合项目的输出,包括依赖,模块,网站文档和其他文档到一个单独的文档,即可用定制化打包。 创建的文档格式包括:zip, tar, tar.gz(tgz), gar.bz2(tbgz2), jar, dir,war 等等。四种预定义的描述器可用:...
将下载的压缩包解压到开发工具常用的目录,例如D:\developer\apache-maven-3.9.1-bin。 配置系统环境变量。在Windows系统中,进入“高级系统设置”,点击“环境变量”。在“系统变量”中编辑Path,添加Maven的bin...
它支持各种常用的构建任务,如编译、测试、打包、部署等,并且可以集成到持续集成工具中,如Jenkins。 通过Maven,您可以轻松地管理项目的依赖关系。您只需要在POM中指定依赖项的坐标,Maven就会自动下载相应的依赖...
在使用Maven2执行compile之后,这个目录中的所有文件及子目录,会复制到target/classes目录中,为以后的打包提供了方便。 • src/test/resources,负责管理项目测试的资源。在使用Maven2执行test-compile之后,这个...
maven-compiler-plugin打包插件升级为1.3.0,完善Linux下的脚本,并增加启动配置文件,可以到maven-compiler-plugin主页详细查看 默认下载器改为Apache Httpclient,备用为下载器OkHttp3实现 优化部分代码 demo...
maven_java项目
eclipse常用插件:maven/tomcat/svn/easyexplore(打开目录)/fatjar (jar 打包)
IDEA常用操作文档集合,包括:常用快捷键、导入Jar包快捷键、如何使用Maven打包部署项目、使用Maven打jar包、安装Scala插件、使用Git等等。
该项目主要作为集成Mirai-Console的调用方法框架模板,用于控制台加载其程序的主要实现,并打包生成jar插件。 同时该项目也负责了主要的查询功能实现:DND5e法术详细、COC7技能规则、抽取疯狂症状等。 此模板集合了...
通用用户管理系统, 实现最常用的用户注册、登录、资料管理、个人中心、第三方登录等基本需求,支持扩展二次开发。 > zheng-wechat-mp 微信公众号管理平台,除实现官网后台自动回复、菜单管理、素材管理、用户管理...
spring-boot-plus是一套集成spring boot常用开发组件的后台快速开发框架。是易于使用,快速,高效,功能丰富,...10、使用assembly maven插件进行不同环境打包部署,包含启动、重启命令,配置文件提取到外部config目录
打包进小工具集中,供大家参考和使用,里面包含了javaFx的一些功能的示例,如布局、国际化、第三方UI库(controlsfx、JFoenix等)、外部jar包加载(插件机制)等一些常用功能,想学习javaFx的同学可以参考参考。...
Plugins(插件)............................................................................................................... 47 Version Control(版本控制)..............................................
{1.13.3}打包备份与恢复}{42}{subsection.1.13.3} {1.13.3.1}\texttt {tar},\texttt {gzip}}{42}{subsubsection.1.13.3.1} {1.13.3.2}\texttt {zip}}{42}{subsubsection.1.13.3.2} {1.13.3.3}文本创建与编辑}{43...
该文档为官方webx框架文档,对webx进行了全面的讲解,非常实用,并附学习的Demo 为什么要用Webx而不是其它的开源框架? 现在有很多Java的Web框架可供选择,并且它们也都是免费的。例如: • Struts ...
Plugins(插件)............................................................................................................... 47 Version Control(版本控制)..............................................