-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpom.xml
133 lines (128 loc) · 5.83 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.ohosdev</groupId>
<artifactId>hapviewer</artifactId>
<version>1.1.0</version>
<name>HapViewer</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>21</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<javafx.version>21-ea+5</javafx.version>
<javafx.staticSdk.version>21-ea+5</javafx.staticSdk.version>
<gluonfx-maven-plugin.version>1.0.22</gluonfx-maven-plugin.version>
<!--<junit.version>5.8.2</junit.version>-->
<start-class>org.ohosdev.hapviewer.App</start-class>
</properties>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>org.controlsfx</groupId>
<artifactId>controlsfx</artifactId>
<version>11.1.2</version>
</dependency>
<!--suppress VulnerableLibrariesLocal -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.16</version>
</dependency>
<!--<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>-->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.9.0</version>
<configuration>
<release>${java.version}</release>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version>
<configuration>
<mainClass>${start-class}</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>com.gluonhq</groupId>
<artifactId>gluonfx-maven-plugin</artifactId>
<version>${gluonfx-maven-plugin.version}</version>
<configuration>
<target>host</target>
<mainClass>${start-class}</mainClass>
<!--
<javaStaticSdkVersion>11-ea+10</javaStaticSdkVersion>
-->
<javafxStaticSdkVersion>${javafx.staticSdk.version}</javafxStaticSdkVersion>
<!-- JavaFx 中使用 ResourceBundle.getBundle("xxxxxx") 的路径,如果没有则不需要配置 -->
<!--<bundlesList>
<list>com.mueeee.desktopjavafx</list>
</bundlesList>-->
<!-- 允许的资源文件后缀 -->
<resourcesList>
<list>.*\\.properties$</list>
</resourcesList>
<!-- 涉及反射的类 -->
<reflectionList>
<list>org.ohosdev.hapviewer.ctrl.Index</list>
<list>org.ohosdev.hapviewer.ctrl.About</list>
</reflectionList>
<nativeImageArgs>
<!-- “快速构建”模式,以减少在开发过程中生成本机可执行文件所需的时间。请注意,此模式可能会对峰值性能和生成的可执行文件的大小产生负面影响,因此建议仅用于开发目的。 -->
<!--<arg>-Ob</arg>-->
<arg>--add-exports=org.graalvm.nativeimage.builder/com.oracle.svm.core.jdk=ALL-UNNAMED</arg>
<!-- Native-image building on Windows currently only supports target architecture: AMD64 (?? unsupported)) -->
<arg>-H:-CheckToolchain</arg>
</nativeImageArgs>
<releaseConfiguration>
<!-- all targets -->
<!--<packageType></packageType>-->
<description>A cross-platform HAP viewer (API 9+ support)</description>
<vendor>OHOS Dev</vendor>
<version>${version}</version>
<!-- macOS -->
<macAppStore>false</macAppStore>
<macSigningUserName>OHOS Dev</macSigningUserName>
<!--<macAppCategory>public.app-category.utilities</macAppCategory>-->
</releaseConfiguration>
</configuration>
<executions>
<execution>
<goals>
<goal>build</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>