-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpom.xml
90 lines (85 loc) · 3.75 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
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.akkw</groupId>
<artifactId>protobuf-utils</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>protobuf-utils-coder</module>
<module>protobuf-utils-test</module>
</modules>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<javassist.version>3.18.2-GA</javassist.version>
<protobuf.version>3.16.3</protobuf.version>
<os.plugin.version>1.7.1</os.plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.akkw</groupId>
<artifactId>protobuf-utils-test</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobuf.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>${javassist.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>${os.plugin.version}</version>
</extension>
</extensions>
<pluginManagement>
<plugins>
<!-- Grpc coding plug-in-->
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.0</version>
<configuration>
<!-- 工具版本 -->
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
<!--默认值,proto源文件路径-->
<protoSourceRoot>${project.basedir}/protobuf-utils-test/src/main/proto</protoSourceRoot>
<!--默认值,proto目标java文件路径-->
<outputDirectory>${project.basedir}/protobuf-utils-test/src/main/java</outputDirectory>
<!--设置是否在生成java文件之前清空outputDirectory的文件,默认值为true,设置为false时也会覆盖同名文件-->
<clearOutputDirectory>false</clearOutputDirectory>
<pluginId>protobuf-test</pluginId>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<!-- <goal>compile-custom</goal>-->
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>