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
6    <parent>
7        <groupId>com.ohos</groupId>
8        <artifactId>hapsigntool</artifactId>
9        <version>${version}</version>
10    </parent>
11    <modelVersion>4.0.0</modelVersion>
12    <artifactId>hap_sign_tool</artifactId>
13
14    <dependencies>
15        <dependency>
16            <groupId>com.ohos</groupId>
17            <artifactId>hap_sign_tool_lib</artifactId>
18            <version>${version}</version>
19        </dependency>
20        <dependency>
21            <groupId>com.google.code.gson</groupId>
22            <artifactId>gson</artifactId>
23        </dependency>
24        <dependency>
25            <groupId>org.bouncycastle</groupId>
26            <artifactId>bcpkix-jdk18on</artifactId>
27        </dependency>
28        <dependency>
29            <groupId>org.apache.logging.log4j</groupId>
30            <artifactId>log4j-core</artifactId>
31        </dependency>
32        <dependency>
33            <groupId>org.apache.logging.log4j</groupId>
34            <artifactId>log4j-api</artifactId>
35        </dependency>
36        <dependency>
37            <groupId>org.junit.jupiter</groupId>
38            <artifactId>junit-jupiter-engine</artifactId>
39        </dependency>
40        <dependency>
41            <groupId>org.junit.jupiter</groupId>
42            <artifactId>junit-jupiter-api</artifactId>
43        </dependency>
44    </dependencies>
45
46    <build>
47        <plugins>
48            <plugin>
49                <groupId>org.apache.maven.plugins</groupId>
50                <artifactId>maven-compiler-plugin</artifactId>
51                <version>3.12.1</version>
52                <configuration>
53                    <source>1.8</source>
54                    <target>1.8</target>
55                    <encoding>UTF-8</encoding>
56                    <showWarnings>true</showWarnings>
57                    <compilerArgs>
58                        <arg>-Xlint:all</arg>
59                    </compilerArgs>
60                </configuration>
61            </plugin>
62            <plugin>
63                <groupId>org.apache.maven.plugins</groupId>
64                <artifactId>maven-surefire-plugin</artifactId>
65                <version>3.2.5</version>
66            </plugin>
67            <plugin>
68                <groupId>org.apache.maven.plugins</groupId>
69                <artifactId>maven-resources-plugin</artifactId>
70                <version>3.3.1</version>
71                <configuration>
72                    <encoding>UTF-8</encoding>
73                </configuration>
74            </plugin>
75            <plugin>
76                <groupId>org.apache.maven.plugins</groupId>
77                <artifactId>maven-shade-plugin</artifactId>
78                <version>3.2.4</version>
79                <executions>
80                    <execution>
81                        <phase>package</phase>
82                        <goals>
83                            <goal>shade</goal>
84                        </goals>
85                    </execution>
86                </executions>
87                <configuration>
88                    <finalName>hap-sign-tool</finalName>
89                    <outputDirectory>../hap_sign_tool/build/libs</outputDirectory>
90                    <transformers>
91                        <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
92                            <mainClass>com.ohos.hapsigntool.HapSignTool</mainClass>
93                        </transformer>
94                    </transformers>
95                    <artifactSet>
96                        <includes>
97                            <include>*:*</include>
98                        </includes>
99                    </artifactSet>
100                    <filters>
101                        <filter>
102                            <artifact>*:*</artifact>
103                            <excludes>
104                                <exclude>**/module-info.class</exclude>
105                                <exclude>module-info.class</exclude>
106                                <exclude>META-INF/*.SF</exclude>
107                                <exclude>META-INF/*.DSA</exclude>
108                                <exclude>META-INF/*.RSA</exclude>
109                                <exclude>META-INF/DEPENDENCIES</exclude>
110                                <exclude>META-INF/LICENSE</exclude>
111                                <exclude>META-INF/NOTICE</exclude>
112                                <exclude>META-INF/LICENSE.txt</exclude>
113                                <exclude>META-INF/NOTICE.txt</exclude>
114                                <exclude>META-INF/MANIFEST.MF</exclude>
115                            </excludes>
116                        </filter>
117                    </filters>
118                </configuration>
119            </plugin>
120        </plugins>
121    </build>
122</project>