|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + |
| 7 | + <groupId>sh.ball</groupId> |
| 8 | + <artifactId>patchable</artifactId> |
| 9 | + <version>0.0.0</version> |
| 10 | + |
| 11 | + <name>patchable</name> |
| 12 | + |
| 13 | + <properties> |
| 14 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 15 | + <maven.compiler.release>19</maven.compiler.release> |
| 16 | + <javafx.version>19</javafx.version> |
| 17 | + <appMainClass>sh.ball.gui.Launcher</appMainClass> |
| 18 | + </properties> |
| 19 | + |
| 20 | + <build> |
| 21 | + <plugins> |
| 22 | + <plugin> |
| 23 | + <artifactId>maven-clean-plugin</artifactId> |
| 24 | + <version>2.4.1</version> |
| 25 | + <executions> |
| 26 | + <execution> |
| 27 | + <id>auto-clean</id> |
| 28 | + <phase>initialize</phase> |
| 29 | + <goals> |
| 30 | + <goal>clean</goal> |
| 31 | + </goals> |
| 32 | + </execution> |
| 33 | + </executions> |
| 34 | + </plugin> |
| 35 | + <plugin> |
| 36 | + <artifactId>maven-jar-plugin</artifactId> |
| 37 | + <version>3.2.0</version> |
| 38 | + <executions> |
| 39 | + <execution> |
| 40 | + <id>default-jar</id> |
| 41 | + <phase>none</phase> |
| 42 | + <configuration> |
| 43 | + <finalName>unwanted</finalName> |
| 44 | + <classifier>unwanted</classifier> |
| 45 | + </configuration> |
| 46 | + </execution> |
| 47 | + </executions> |
| 48 | + </plugin> |
| 49 | + <plugin> |
| 50 | + <artifactId>maven-assembly-plugin</artifactId> |
| 51 | + <configuration> |
| 52 | + <archive> |
| 53 | + <manifest> |
| 54 | + <mainClass>${appMainClass}</mainClass> |
| 55 | + </manifest> |
| 56 | + </archive> |
| 57 | + <descriptorRefs> |
| 58 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 59 | + </descriptorRefs> |
| 60 | + <appendAssemblyId>false</appendAssemblyId> |
| 61 | + <outputDirectory>${project.build.directory}/lib</outputDirectory> |
| 62 | + </configuration> |
| 63 | + <executions> |
| 64 | + <execution> |
| 65 | + <id>make-assembly</id> |
| 66 | + <phase>package</phase> |
| 67 | + <goals> |
| 68 | + <goal>single</goal> |
| 69 | + </goals> |
| 70 | + </execution> |
| 71 | + </executions> |
| 72 | + </plugin> |
| 73 | + <plugin> |
| 74 | + <groupId>org.apache.maven.plugins</groupId> |
| 75 | + <artifactId>maven-compiler-plugin</artifactId> |
| 76 | + <version>3.8.1</version> |
| 77 | + <configuration> |
| 78 | + <source>${maven.compiler.release}</source> |
| 79 | + <target>${maven.compiler.release}</target> |
| 80 | + </configuration> |
| 81 | + </plugin> |
| 82 | + <plugin> |
| 83 | + <groupId>org.panteleyev</groupId> |
| 84 | + <artifactId>jpackage-maven-plugin</artifactId> |
| 85 | + <version>1.4.0</version> |
| 86 | + |
| 87 | + <configuration> |
| 88 | + <name>patchable</name> |
| 89 | + <description>patchable</description> |
| 90 | + <appVersion>${project.version}</appVersion> |
| 91 | + <vendor>james.ball.sh</vendor> |
| 92 | + <input>${project.build.directory}/lib</input> |
| 93 | + <mainJar>patchable-${project.version}.jar</mainJar> |
| 94 | + <mainClass>${appMainClass}</mainClass> |
| 95 | + <destination>${project.build.directory}/lib</destination> |
| 96 | + <javaOptions> |
| 97 | + <option>-Dfile.encoding=UTF-8</option> |
| 98 | + </javaOptions> |
| 99 | + </configuration> |
| 100 | + |
| 101 | + <executions> |
| 102 | + <execution> |
| 103 | + <id>win</id> |
| 104 | + <configuration> |
| 105 | + <winMenu>true</winMenu> |
| 106 | + <winMenuGroup>patchable</winMenuGroup> |
| 107 | + </configuration> |
| 108 | + </execution> |
| 109 | + <execution> |
| 110 | + <id>debian</id> |
| 111 | + </execution> |
| 112 | + <execution> |
| 113 | + <id>mac</id> |
| 114 | + <configuration> |
| 115 | + <type>PKG</type> |
| 116 | + <macPackageName>patchable</macPackageName> |
| 117 | + <macBundleIdentifier>Patchable-${project.version}</macBundleIdentifier> |
| 118 | + <macBundleName>patchable</macBundleName> |
| 119 | + </configuration> |
| 120 | + </execution> |
| 121 | + </executions> |
| 122 | + </plugin> |
| 123 | + </plugins> |
| 124 | + </build> |
| 125 | + <repositories> |
| 126 | + <repository> |
| 127 | + <id>jitpack.io</id> |
| 128 | + <name>jitpack</name> |
| 129 | + <url>https://jitpack.io</url> |
| 130 | + </repository> |
| 131 | + </repositories> |
| 132 | + <dependencies> |
| 133 | + <!-- https://sjoerdvankreel.github.io/xt-audio/ --> |
| 134 | + <dependency> |
| 135 | + <groupId>com.github.sjoerdvankreel</groupId> |
| 136 | + <artifactId>xt.audio</artifactId> |
| 137 | + <version>2.0</version> |
| 138 | + </dependency> |
| 139 | + <dependency> |
| 140 | + <groupId>org.openjfx</groupId> |
| 141 | + <artifactId>javafx-fxml</artifactId> |
| 142 | + <version>${javafx.version}</version> |
| 143 | + </dependency> |
| 144 | + <dependency> |
| 145 | + <groupId>org.openjfx</groupId> |
| 146 | + <artifactId>javafx-controls</artifactId> |
| 147 | + <version>${javafx.version}</version> |
| 148 | + </dependency> |
| 149 | + <dependency> |
| 150 | + <groupId>org.openjfx</groupId> |
| 151 | + <artifactId>javafx-web</artifactId> |
| 152 | + <version>${javafx.version}</version> |
| 153 | + </dependency> |
| 154 | + <!-- https://mvnrepository.com/artifact/com.github.axet/TarsosDSP --> |
| 155 | + <dependency> |
| 156 | + <groupId>com.github.axet</groupId> |
| 157 | + <artifactId>TarsosDSP</artifactId> |
| 158 | + <version>2.4-1</version> |
| 159 | + </dependency> |
| 160 | + </dependencies> |
| 161 | + <profiles> |
| 162 | + <profile> |
| 163 | + <id>win</id> |
| 164 | + |
| 165 | + <activation> |
| 166 | + <os><family>windows</family></os> |
| 167 | + </activation> |
| 168 | + |
| 169 | + <dependencies> |
| 170 | + <dependency> |
| 171 | + <groupId>org.openjfx</groupId> |
| 172 | + <artifactId>javafx-graphics </artifactId> |
| 173 | + <version>${javafx.version}</version> |
| 174 | + <classifier>win</classifier> |
| 175 | + </dependency> |
| 176 | + </dependencies> |
| 177 | + </profile> |
| 178 | + |
| 179 | + <profile> |
| 180 | + <id>mac</id> |
| 181 | + |
| 182 | + <activation> |
| 183 | + <os><family>mac</family></os> |
| 184 | + </activation> |
| 185 | + |
| 186 | + <dependencies> |
| 187 | + <dependency> |
| 188 | + <groupId>org.openjfx</groupId> |
| 189 | + <artifactId>javafx-graphics </artifactId> |
| 190 | + <version>${javafx.version}</version> |
| 191 | + <classifier>mac</classifier> |
| 192 | + </dependency> |
| 193 | + </dependencies> |
| 194 | + </profile> |
| 195 | + |
| 196 | + <profile> |
| 197 | + <id>linux</id> |
| 198 | + |
| 199 | + <activation> |
| 200 | + <os><family>unix</family></os> |
| 201 | + </activation> |
| 202 | + |
| 203 | + <dependencies> |
| 204 | + <dependency> |
| 205 | + <groupId>org.openjfx</groupId> |
| 206 | + <artifactId>javafx-graphics </artifactId> |
| 207 | + <version>${javafx.version}</version> |
| 208 | + <classifier>linux</classifier> |
| 209 | + </dependency> |
| 210 | + </dependencies> |
| 211 | + </profile> |
| 212 | + |
| 213 | + </profiles> |
| 214 | +</project> |
0 commit comments