加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pom.xml 40.15 KB
一键复制 编辑 原始数据 按行查看 历史
miukoo 提交于 2024-07-04 21:54 . 'V1.0.7版本发布'
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797
<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">
<parent>
<artifactId>madou-database</artifactId>
<groupId>com.madou</groupId>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>madou-database-mysql</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<artifactId>madou-database-relationship-base</artifactId>
<groupId>com.madou</groupId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.25</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-crypto</artifactId>
</dependency>
<!-- JCEF -->
<dependency>
<groupId>me.friwi</groupId>
<artifactId>jcefmaven</artifactId>
<version>116.0.19</version>
</dependency>
<dependency>
<groupId>me.friwi</groupId>
<artifactId>jcef-natives-macosx-amd64</artifactId>
<!-- <version>jcef-87476e9+cef-110.0.25+g75b1c96+chromium-110.0.5481.78</version>-->
<version>jcef-37f25dc+cef-116.0.19+gc6a20bc+chromium-116.0.5845.141</version>
</dependency>
<dependency>
<groupId>me.friwi</groupId>
<artifactId>jcef-natives-windows-amd64</artifactId>
<!-- <version>jcef-87476e9+cef-110.0.25+g75b1c96+chromium-110.0.5481.78</version>-->
<version>jcef-37f25dc+cef-116.0.19+gc6a20bc+chromium-116.0.5845.141</version>
</dependency>
<dependency>
<groupId>cn.gjsm</groupId>
<artifactId>openai</artifactId>
<version>0.1.4</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 二次加密 -->
<plugin>
<groupId>com.madou</groupId>
<artifactId>madou-maven-plugin</artifactId>
<version>${madou_maven_plugin_version_version}</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>madou</goal>
</goals>
</execution>
</executions>
<configuration>
<interfaces>com.madou.dbtool.mysql.manager.DataSourceManager</interfaces>
<excludes></excludes>
<annotations>com.madou.common.annotation.HideClass</annotations>
<privatekey>
${TINKLE_PRIVATE_KEY}
</privatekey>
</configuration>
</plugin>
<!-- 编译idea设计器视图-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>ideauidesigner-maven-plugin</artifactId>
<version>${ideauidesigner_maven_plugin_version_version}</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>javac2</goal>
</goals>
</execution>
</executions>
<configuration>
<fork>true</fork>
<debug>true</debug>
<failOnError>true</failOnError>
</configuration>
</plugin>
<!-- 拷贝所有的项目资源到一起,准备混淆 -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-project-class</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<overwrite>true</overwrite>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<resources>
<resource>
<directory>${basedir}/../madou-database-relationship-base/target/classes</directory>
</resource>
<resource>
<directory>${basedir}/../madou-database-common/target/classes</directory>
<excludes>
<exclude>**/document/**</exclude>
</excludes>
</resource>
<resource>
<directory>${basedir}/../madou-database-gui/target/classes</directory>
</resource>
<resource>
<directory>${basedir}/../madou-database-api/target/classes</directory>
</resource>
<resource>
<directory>${basedir}/../../madou-common/target/classes</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!--混淆源码-->
<plugin>
<groupId>com.github.wvengen</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>proguard</goal>
</goals>
</execution>
</executions>
<configuration>
<obfuscate>true</obfuscate>
<injar>classes</injar>
<!-- <attach>true</attach>-->
<!-- <outjar>${project.build.finalName}-small.jar</outjar>-->
<outputDirectory>${project.build.directory}</outputDirectory>
<options>
<option>-dontshrink</option>
<option>-dontoptimize</option>
<option>-useuniqueclassmembernames</option>
<option>-adaptclassstrings</option>
<option>-dontusemixedcaseclassnames</option>
<option>-obfuscationdictionary dictionary_rules.txt</option>
<option>-classobfuscationdictionary dictionary_rules.txt</option>
<option>-packageobfuscationdictionary dictionary_rules.txt</option>
<!-- <option>-keepattributes Signature,InnerClasses,SourceFile,LineNumberTable,*Annotation*</option>-->
<option>-keepattributes Signature,InnerClasses,*Annotation*</option>
<option>-keepclasseswithmembers public class * { public static void main(java.lang.String[]);}
</option>
<option>-keepclassmembers enum * { *; }</option>
<option>-keep @interface *</option>
<option>-keep class *$</option>
<option>-keep class com.madou.common.safe.utils.KeyUtils { *; }</option>
<option>-keep class com.madou.inters.util.MessageUtil { *; }</option>
<option>-keep class com.madou.dbtool.relationship.jcef.JcefObject { *; }</option>
<option>-keep class com.madou.common.annotation.HideClass { *; }</option>
<option>-keep class com.madou.bean.BeanFactory { *; }</option>
<option>-keep class com.madou.**.thread.* { *; }</option>
<option>-keep class com.madou.**.idea.* { *; }</option>
<option>-keep class com.madou.**Message { *; }</option>
<option>-keep class com.madou.**Trie* { *; }</option>
<option>-keep enum * { *; }</option>
<option>-keep class **.pojo.** { *;}</option>
<option>-keep class **.dto.** { *;}</option>
<option>-ignorewarnings</option>
</options>
<libs> <lib>D:/software/Java/jdk-1.8/jre/lib/rt.jar</lib> </libs>
</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>
<excludeArtifactIds>madou-database-api,madou-database-common,madou-database-gui,madou-common,madou-database-relationship-base
</excludeArtifactIds>
</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}/config</directory>
<targetPath>/config</targetPath>
<includes>
<include>mysql.conf</include>
</includes>
</resource>
<resource>
<directory>${basedir}/config</directory>
<includes>
<include>update.bat</include>
</includes>
</resource>
<resource>
<directory>${basedir}/../madou-database-updater/target</directory>
<includes>
<include>updater.jar</include>
</includes>
</resource>
<resource>
<directory>${basedir}/../madou-database-relationship-base/src/main/resources/templates</directory>
<targetPath>/templates</targetPath>
<includes>
<include>*.ftl</include>
</includes>
</resource>
<resource>
<directory>D:/software/Java/jdk-11/jre</directory>
<targetPath>/jre</targetPath>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>libs/</classpathPrefix>
<mainClass>com.madou.dbtool.mysql.test.MysqlDBToolFrame</mainClass>
</manifest>
</archive>
<excludes>
<exclude>*.jar</exclude>
<exclude>**/chrome-bundle/**</exclude>
</excludes>
</configuration>
</plugin>
<!--准备window+jre-->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resource-win+jre</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<overwrite>true</overwrite>
<outputDirectory>${basedir}/target/${project.artifactId}-win+jre</outputDirectory>
<resources>
<resource>
<directory>${basedir}/config</directory>
<targetPath>/config</targetPath>
<includes>
<include>mysql.conf</include>
</includes>
</resource>
<resource>
<directory>${basedir}/config/win+jre</directory>
<targetPath>/config</targetPath>
<includes>
<include>info</include>
</includes>
</resource>
<resource>
<directory>${basedir}/config</directory>
<includes>
<include>update.bat</include>
</includes>
</resource>
<resource>
<directory>${basedir}/../madou-database-updater/target</directory>
<includes>
<include>updater.jar</include>
</includes>
</resource>
<resource>
<directory>${basedir}/../madou-database-relationship-base/src/main/resources/templates</directory>
<targetPath>/templates</targetPath>
<includes>
<include>*.ftl</include>
</includes>
</resource>
<resource>
<directory>${basedir}/target/madou-database-mysql/libs</directory>
<targetPath>/libs</targetPath>
<excludes>
<include>jcef-natives-macosx*.jar</include>
</excludes>
</resource>
<resource>
<directory>D:/software/Java/jdk-11/jre</directory>
<targetPath>/jre</targetPath>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!--打包window+jre-->
<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-win+jre</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<headerType>gui</headerType>
<outfile>${basedir}/target/${project.artifactId}-win+jre/${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.dbtool.mysql.test.MysqlDBToolFrame</mainClass>
</classPath>
<icon>${basedir}/mysql.ico</icon>
<stayAlive>true</stayAlive>
<singleInstance>
<mutexName>TwinkleJava4Mysql</mutexName>
<windowTitle>Twinkle For Mysql</windowTitle>
</singleInstance>
<splash>
<file>${basedir}/config/splash.bmp</file>
<waitForWindow>true</waitForWindow>
<timeout>8</timeout>
<timeoutErr>false</timeoutErr>
</splash>
<jre>
<path>jre</path>
<runtimeBits>64/32</runtimeBits>
<initialHeapSize>128</initialHeapSize>
<maxHeapSize>2048</maxHeapSize>
<opts>-Dfile.encoding=UTF8 -Djava.net.useSystemProxies=true</opts>
</jre>
<versionInfo>
<fileVersion>1.0.0.0</fileVersion>
<txtFileVersion>1.0.0.0</txtFileVersion>
<fileDescription>Twinkle</fileDescription>
<copyright>Madou</copyright>
<productVersion>1.0.6.0</productVersion>
<txtProductVersion>1.0.0.0</txtProductVersion>
<productName>Twinkle4Mysql</productName>
<internalName>Twinkle4Mysql</internalName>
<originalFilename>Twinkle4Mysql.exe</originalFilename>
<language>SIMPLIFIED_CHINESE</language>
</versionInfo>
</configuration>
</execution>
</executions>
</plugin>
<!--准备window-jre-->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resource-win-jre</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<overwrite>true</overwrite>
<outputDirectory>${basedir}/target/${project.artifactId}-win-jre</outputDirectory>
<resources>
<resource>
<directory>${basedir}/config/win-jre</directory>
<targetPath>/config</targetPath>
<includes>
<include>info</include>
</includes>
</resource>
<resource>
<directory>${basedir}/config</directory>
<targetPath>/config</targetPath>
<includes>
<include>mysql.conf</include>
</includes>
</resource>
<resource>
<directory>${basedir}/config</directory>
<includes>
<include>update.bat</include>
</includes>
</resource>
<resource>
<directory>${basedir}/../madou-database-updater/target</directory>
<includes>
<include>updater.jar</include>
</includes>
</resource>
<resource>
<directory>${basedir}/../madou-database-relationship-base/src/main/resources/templates</directory>
<targetPath>/templates</targetPath>
<includes>
<include>*.ftl</include>
</includes>
</resource>
<resource>
<directory>${basedir}/target/madou-database-mysql/libs</directory>
<targetPath>/libs</targetPath>
<excludes>
<include>jcef-natives-macosx*.jar</include>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!--打包window-jre-->
<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-win-jre</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<headerType>gui</headerType>
<outfile>${basedir}/target/${project.artifactId}-win-jre/${project.artifactId}-jre.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.dbtool.mysql.test.MysqlDBToolFrame</mainClass>
</classPath>
<icon>${basedir}/mysql.ico</icon>
<stayAlive>true</stayAlive>
<singleInstance>
<mutexName>TwinkleJava4Mysql</mutexName>
<windowTitle>Twinkle Java For Mysql</windowTitle>
</singleInstance>
<splash>
<file>${basedir}/config/splash.bmp</file>
<waitForWindow>true</waitForWindow>
<timeout>8</timeout>
<timeoutErr>false</timeoutErr>
</splash>
<jre>
<path>%JAVA_HOME%;%PATH%</path>
<runtimeBits>64/32</runtimeBits>
<initialHeapSize>128</initialHeapSize>
<maxHeapSize>2048</maxHeapSize>
<opts>-Dfile.encoding=UTF8 -Djava.net.useSystemProxies=true</opts>
</jre>
<versionInfo>
<fileVersion>1.0.0.0</fileVersion>
<txtFileVersion>1.0.0.0</txtFileVersion>
<fileDescription>Twinkle</fileDescription>
<copyright>Madou</copyright>
<productVersion>1.0.6.0</productVersion>
<txtProductVersion>1.0.0.0</txtProductVersion>
<productName>Twinkle4Mysql</productName>
<internalName>Twinkle4Mysql</internalName>
<originalFilename>Twinkle4Mysql.exe</originalFilename>
<language>SIMPLIFIED_CHINESE</language>
</versionInfo>
</configuration>
</execution>
</executions>
</plugin>
<!--准备MAC资源+jre-->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resource-mac+jre</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<overwrite>true</overwrite>
<outputDirectory>${basedir}/target/${project.artifactId}-mac+jre</outputDirectory>
<resources>
<resource>
<directory>${basedir}/config</directory>
<targetPath>/config</targetPath>
<includes>
<include>mysql.conf</include>
</includes>
</resource>
<resource>
<directory>${basedir}/config/mac+jre</directory>
<targetPath>/config</targetPath>
<includes>
<include>info</include>
</includes>
</resource>
<resource>
<directory>${basedir}/config</directory>
<includes>
<include>update.sh</include>
</includes>
</resource>
<resource>
<directory>${basedir}/../madou-database-updater/target</directory>
<includes>
<include>updater.jar</include>
</includes>
</resource>
<resource>
<directory>${basedir}/../madou-database-relationship-base/src/main/resources/templates</directory>
<targetPath>/templates</targetPath>
<includes>
<include>*.ftl</include>
</includes>
</resource>
<resource>
<directory>${basedir}/target/madou-database-mysql/libs</directory>
<targetPath>/libs</targetPath>
<excludes>
<include>jcef-natives-windows*.jar</include>
</excludes>
</resource>
<resource>
<directory>${basedir}/target/</directory>
<includes>
<include>*.jar</include>
</includes>
</resource>
<resource>
<directory>E:/软件备份/软件备份/mac_jre/+jre/</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!--准备MAC资源-jre-->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resource-mac-jre</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<overwrite>true</overwrite>
<outputDirectory>${basedir}/target/${project.artifactId}-mac-jre</outputDirectory>
<resources>
<resource>
<directory>${basedir}/config</directory>
<targetPath>/config</targetPath>
<includes>
<include>mysql.conf</include>
</includes>
</resource>
<resource>
<directory>${basedir}/config/mac-jre</directory>
<targetPath>/config</targetPath>
<includes>
<include>info</include>
</includes>
</resource>
<resource>
<directory>${basedir}/config</directory>
<includes>
<include>update.sh</include>
</includes>
</resource>
<resource>
<directory>${basedir}/../madou-database-updater/target</directory>
<includes>
<include>updater.jar</include>
</includes>
</resource>
<resource>
<directory>${basedir}/../madou-database-relationship-base/src/main/resources/templates</directory>
<targetPath>/templates</targetPath>
<includes>
<include>*.ftl</include>
</includes>
</resource>
<resource>
<directory>${basedir}/target/madou-database-mysql/libs</directory>
<targetPath>/libs</targetPath>
<excludes>
<include>jcef-natives-windows*.jar</include>
</excludes>
</resource>
<resource>
<directory>${basedir}/target/</directory>
<includes>
<include>*.jar</include>
</includes>
</resource>
<resource>
<directory>E:/软件备份/软件备份/mac_jre/-jre/</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!--打包需要的压缩包-->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<descriptors>
<descriptor>${basedir}/assembly_mac+jre.xml</descriptor>
<descriptor>${basedir}/assembly_mac-jre.xml</descriptor>
<descriptor>${basedir}/assembly_win+jre.xml</descriptor>
<descriptor>${basedir}/assembly_win-jre.xml</descriptor>
</descriptors>
<appendAssemblyId>true</appendAssemblyId>
<finalName>upload/${project.artifactId}</finalName>
</configuration>
<executions>
<execution>
<id>make-assembly-win</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 生成安装文件+jre -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>inno_setup+jre</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>D:\software\Inno Setup 6\ISCC.exe</executable>
<arguments>
<argument>${basedir}/config/mysql+jre.iss</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<!-- 生成安装文件-jre -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>inno_setup-jre</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>D:\software\Inno Setup 6\ISCC.exe</executable>
<arguments>
<argument>${basedir}/config/mysql-jre.iss</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<!--生成更新明细文件-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>layout</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<commandlineArgs>-jar ${project.parent.basedir}/layout.jar mysql</commandlineArgs>
</configuration>
</execution>
</executions>
</plugin>
<!--上传win-jre的exe更新文件-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>2.0.2</version>
<executions>
<execution>
<id>upload-deploy-jre</id>
<phase>package</phase>
<goals>
<goal>upload</goal>
</goals>
<configuration>
<serverId>gjsm.cn</serverId>
<fromDir>target/madou-database-mysql-win-jre</fromDir>
<includes>
madou-database-mysql-jre.exe
</includes>
<url>scp://root:${GJSM_CN}@www.gjsm.cn/root/boom/file</url>
</configuration>
</execution>
</executions>
</plugin>
<!--上传压缩文件,并生成更新文件-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>2.0.2</version>
<executions>
<execution>
<id>upload-deploy</id>
<!-- 运行package打包的同时运行upload-single和sshexec -->
<phase>package</phase>
<goals>
<goal>upload</goal>
<goal>sshexec</goal>
</goals>
<configuration>
<serverId>gjsm.cn</serverId>
<fromDir>target/upload</fromDir>
<includes>
madou-database-mysql-win+jre.zip,madou-database-mysql-mac+jre.tar.gz,mysql-mac+jre-layout.properties,mysql-mac-jre-layout.properties,mysql-win+jre-layout.properties,mysql-win-jre-layout.properties
</includes>
<url>scp://root:${GJSM_CN}@www.gjsm.cn/root/boom/file</url>
<commands>
<command>sh /root/boom/sh/mysql.sh</command>
</commands>
<displayCommandOutputs>true</displayCommandOutputs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>3.5.2</version>
</extension>
</extensions>
</build>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化