pom.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. 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">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>net.sf.launch4j.example</groupId>
  5. <artifactId>ExitCodeApp</artifactId>
  6. <version>1.0</version>
  7. <name>ExitCodeApp</name>
  8. <packaging>jar</packaging>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. </properties>
  12. <build>
  13. <sourceDirectory>src</sourceDirectory>
  14. <resources>
  15. <resource>
  16. <directory>src</directory>
  17. <excludes>
  18. <exclude>**/*.java</exclude>
  19. </excludes>
  20. </resource>
  21. </resources>
  22. <plugins>
  23. <plugin>
  24. <artifactId>maven-compiler-plugin</artifactId>
  25. <version>3.1</version>
  26. <configuration>
  27. <source>1.8</source>
  28. <target>1.8</target>
  29. </configuration>
  30. </plugin>
  31. <plugin>
  32. <groupId>com.akathist.maven.plugins.launch4j</groupId>
  33. <artifactId>launch4j-maven-plugin</artifactId>
  34. <version>1.7.22</version>
  35. <executions>
  36. <execution>
  37. <id>l4j</id>
  38. <phase>package</phase>
  39. <goals>
  40. <goal>launch4j</goal>
  41. </goals>
  42. <configuration>
  43. <headerType>console</headerType>
  44. <outfile>target/ExitCodeApp.exe</outfile>
  45. <jar>target/ExitCodeApp-1.0.jar</jar>
  46. <errTitle>ExitCodeApp</errTitle>
  47. <classPath>
  48. <mainClass>net.sf.launch4j.example.ExitCodeApp</mainClass>
  49. <addDependencies>false</addDependencies>
  50. <preCp>anything</preCp>
  51. </classPath>
  52. <jre>
  53. <path>%JAVA_HOME%;%PATH%</path>
  54. <minVersion>1.8.0</minVersion>
  55. </jre>
  56. <versionInfo>
  57. <fileVersion>1.0.0.0</fileVersion>
  58. <txtFileVersion>1.0</txtFileVersion>
  59. <fileDescription>Simple app for testing exit code.</fileDescription>
  60. <copyright>Copyright (C) 2022 GK</copyright>
  61. <productVersion>3.9.0.0</productVersion>
  62. <txtProductVersion>3.9</txtProductVersion>
  63. <productName>ExitCodeApp</productName>
  64. <internalName>ExitCodeApp</internalName>
  65. <originalFilename>ExitCodeApp.exe</originalFilename>
  66. </versionInfo>
  67. </configuration>
  68. </execution>
  69. </executions>
  70. </plugin>
  71. </plugins>
  72. </build>
  73. </project>