代码拉取完成,页面将自动刷新
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>football</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>football</name>
<url>http://maven.apache.org</url>
<properties>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>javazoom</groupId>
<artifactId>jlayer</artifactId>
<version>1.0.1</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>libs/</classpathPrefix>
<!-- 你的程序的运行入口类 ************-->
<mainClass>com.madou.yy.football.Football</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<!-- 拷贝打包的资源,到打包好的环境中-->
<!--在编译阶段生成 libs内容-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>compile</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/${project.artifactId}/libs</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<copyPom>false</copyPom>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resource-windows</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<overwrite>true</overwrite>
<outputDirectory>${basedir}/target/${project.artifactId}</outputDirectory>
<resources>
<!--拷贝的素材(图片、声音)-->
<resource>
<directory>${basedir}/static</directory>
<targetPath>/static</targetPath>
</resource>
<!--拷贝jre ************ -->
<resource>
<directory>C:/Java/jdk1.8.0_281/jre</directory>
<targetPath>/jre</targetPath>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>2.1.2</version>
<executions>
<!-- GUI exe -->
<execution>
<id>l4j-gui</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<headerType>gui</headerType>
<outfile>${basedir}/target/${project.artifactId}/${project.artifactId}.exe</outfile>
<jar>${basedir}/target/${project.artifactId}-${project.version}.jar</jar>
<errTitle>App Err</errTitle>
<downloadUrl>http://boom.gjsm.cn/doc/index.html</downloadUrl>
<supportUrl>http://boom.gjsm.cn/doc/index.html</supportUrl>
<classPath>
<!-- 你的程序的运行入口类 ************-->
<mainClass>com.madou.yy.football.Football</mainClass>
</classPath>
<stayAlive>true</stayAlive>
<singleInstance>
<mutexName>MadouJava4Yang</mutexName>
<windowTitle>Madou Java For Yang</windowTitle>
</singleInstance>
<jre>
<!-- exe默认查找的jre路径 ************-->
<path>jre</path>
<runtimeBits>64/32</runtimeBits>
<initialHeapSize>128</initialHeapSize>
<maxHeapSize>2048</maxHeapSize>
<opts>-Dfile.encoding=UTF8</opts>
</jre>
<versionInfo>
<fileVersion>1.0.0.0</fileVersion>
<txtFileVersion>1.0.0.0</txtFileVersion>
<fileDescription>Madou</fileDescription>
<copyright>Madou</copyright>
<productVersion>1.0.0.0</productVersion>
<txtProductVersion>1.0.0.0</txtProductVersion>
<productName>MadouJava4Yang</productName>
<internalName>MadouJava4Yang</internalName>
<originalFilename>MadouJava4Yang.exe</originalFilename>
<language>SIMPLIFIED_CHINESE</language>
</versionInfo>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。