|
|
@@ -39,13 +39,13 @@
|
|
|
</dependency>
|
|
|
<!-- JSON -->
|
|
|
<dependency>
|
|
|
- <groupId>com.alibaba</groupId>
|
|
|
- <artifactId>fastjson</artifactId>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>fastjson</artifactId>
|
|
|
</dependency>
|
|
|
<!-- httpClient -->
|
|
|
<dependency>
|
|
|
- <groupId>org.apache.httpcomponents</groupId>
|
|
|
- <artifactId>httpclient</artifactId>
|
|
|
+ <groupId>org.apache.httpcomponents</groupId>
|
|
|
+ <artifactId>httpclient</artifactId>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
<build>
|
|
|
@@ -54,6 +54,48 @@
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
</plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.akathist.maven.plugins.launch4j</groupId>
|
|
|
+ <artifactId>launch4j-maven-plugin</artifactId>
|
|
|
+ <version>1.7.25</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>l4j</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>launch4j</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ <configuration>
|
|
|
+ <jar>${project.build.directory}/${artifactId}-${version}.jar</jar>
|
|
|
+ <headerType>console</headerType>
|
|
|
+ <outfile>${project.build.directory}/device-client.exe</outfile>
|
|
|
+ <downloadUrl>http://java.com/download</downloadUrl>
|
|
|
+ <classPath>
|
|
|
+ <mainClass>org.springframework.boot.loader.JarLauncher</mainClass>
|
|
|
+ </classPath>
|
|
|
+ <icon>src/main/resources/icon.ico</icon>
|
|
|
+ <stayAlive>true</stayAlive>
|
|
|
+ <restartOnCrash>true</restartOnCrash>
|
|
|
+ <jre>
|
|
|
+ <minVersion>1.8.0</minVersion>
|
|
|
+ <jdkPreference>preferJre</jdkPreference>
|
|
|
+ </jre>
|
|
|
+ <versionInfo>
|
|
|
+ <fileVersion>1.0.0.0</fileVersion>
|
|
|
+ <txtFileVersion>${project.version}</txtFileVersion>
|
|
|
+ <fileDescription>${project.name}</fileDescription>
|
|
|
+ <copyright>2018 usoftchina.com</copyright>
|
|
|
+ <productVersion>1.0.0.0</productVersion>
|
|
|
+ <txtProductVersion>1.0.0.0</txtProductVersion>
|
|
|
+ <productName>${project.name}</productName>
|
|
|
+ <companyName>usoftchina.com</companyName>
|
|
|
+ <internalName>device-client</internalName>
|
|
|
+ <originalFilename>device-client.exe</originalFilename>
|
|
|
+ </versionInfo>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</project>
|