|
1 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
2 | | - 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> |
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <parent> |
| 7 | + <groupId>com.aliyun.odps</groupId> |
| 8 | + <artifactId>odps-sdk</artifactId> |
| 9 | + <version>0.31.6-public</version> |
| 10 | + </parent> |
4 | 11 |
|
5 | | - <parent> |
6 | 12 | <groupId>com.aliyun.odps</groupId> |
7 | | - <artifactId>odps-sdk</artifactId> |
| 13 | + <artifactId>odps-lot-proto</artifactId> |
8 | 14 | <version>0.31.6-public</version> |
9 | | - </parent> |
10 | | - |
11 | | - <groupId>com.aliyun.odps</groupId> |
12 | | - <artifactId>odps-lot-proto</artifactId> |
13 | | - <version>0.31.6-public</version> |
14 | | - <packaging>jar</packaging> |
| 15 | + <packaging>jar</packaging> |
| 16 | + |
| 17 | + <name>odps-lot-proto</name> |
| 18 | + |
| 19 | + <build> |
| 20 | + <plugins> |
| 21 | + <plugin> |
| 22 | + <groupId>org.apache.maven.plugins</groupId> |
| 23 | + <artifactId>maven-antrun-plugin</artifactId> |
| 24 | + <version>1.8</version> |
| 25 | + <executions> |
| 26 | + <execution> |
| 27 | + <id>compile-protoc</id> |
| 28 | + <phase>generate-sources</phase> |
| 29 | + <configuration> |
| 30 | + <tasks> |
| 31 | + <mkdir dir="target/generated-sources"/> |
| 32 | + <path id="proto.path"> |
| 33 | + <fileset dir="./common/"> |
| 34 | + <include name="**/*.proto"/> |
| 35 | + </fileset> |
| 36 | + <fileset dir="./lot/"> |
| 37 | + <include name="**/*.proto"/> |
| 38 | + </fileset> |
| 39 | + </path> |
| 40 | + <pathconvert pathsep=" " property="proto.files" |
| 41 | + refid="proto.path"/> |
| 42 | + <exec executable="../protoc/protoc-2.4.1.sh" failonerror="true" |
| 43 | + osfamily="unix"> |
| 44 | + <arg value="--java_out=${basedir}/target/generated-sources"/> |
| 45 | + <arg value="-I${basedir}"/> |
| 46 | + <arg line="${proto.files}"/> |
| 47 | + </exec> |
| 48 | + <exec executable="../protoc/protoc-2.4.1.sh" failonerror="true" |
| 49 | + osfamily="mac"> |
| 50 | + <arg value="--java_out=${basedir}/target/generated-sources"/> |
| 51 | + <arg value="-I${basedir}"/> |
| 52 | + <arg line="${proto.files}"/> |
| 53 | + </exec> |
| 54 | + <exec executable="${basedir}/../protoc/protoc.exe" |
| 55 | + failonerror="true" osfamily="windows"> |
| 56 | + <arg value="--java_out=${basedir}/target/generated-sources"/> |
| 57 | + <arg value="-I${basedir}"/> |
| 58 | + <arg line="${proto.files}"/> |
| 59 | + </exec> |
15 | 60 |
|
16 | | - <name>odps-lot-proto</name> |
| 61 | + </tasks> |
| 62 | + <sourceRoot>target/generated-sources</sourceRoot> |
| 63 | + </configuration> |
| 64 | + <goals> |
| 65 | + <goal>run</goal> |
| 66 | + </goals> |
| 67 | + </execution> |
| 68 | + </executions> |
| 69 | + </plugin> |
17 | 70 |
|
18 | | - <build> |
19 | | - <plugins> |
20 | | - <plugin> |
21 | | - <groupId>org.apache.maven.plugins</groupId> |
22 | | - <artifactId>maven-antrun-plugin</artifactId> |
23 | | - <version>1.8</version> |
24 | | - <executions> |
25 | | - <execution> |
26 | | - <id>compile-protoc</id> |
27 | | - <phase>generate-sources</phase> |
28 | | - <configuration> |
29 | | - <tasks> |
30 | | - <mkdir dir="target/generated-sources" /> |
31 | | - <path id="proto.path"> |
32 | | - <fileset dir="./common/"> |
33 | | - <include name="**/*.proto" /> |
34 | | - </fileset> |
35 | | - <fileset dir="./lot/"> |
36 | | - <include name="**/*.proto" /> |
37 | | - </fileset> |
38 | | - </path> |
39 | | - <pathconvert pathsep=" " property="proto.files" |
40 | | - refid="proto.path" /> |
41 | | - <exec executable="../protoc/protoc-2.4.1.sh" failonerror="true" osfamily="unix"> |
42 | | - <arg value="--java_out=${basedir}/target/generated-sources" /> |
43 | | - <arg value="-I${basedir}"/> |
44 | | - <arg line="${proto.files}" /> |
45 | | - </exec> |
46 | | - <exec executable="../protoc/protoc-2.4.1.sh" failonerror="true" osfamily="mac"> |
47 | | - <arg value="--java_out=${basedir}/target/generated-sources" /> |
48 | | - <arg value="-I${basedir}"/> |
49 | | - <arg line="${proto.files}" /> |
50 | | - </exec> |
51 | | - <exec executable="${basedir}/../protoc/protoc.exe" failonerror="true" osfamily="windows"> |
52 | | - <arg value="--java_out=${basedir}/target/generated-sources" /> |
53 | | - <arg value="-I${basedir}"/> |
54 | | - <arg line="${proto.files}" /> |
55 | | - </exec> |
| 71 | + <plugin> |
| 72 | + <groupId>org.apache.maven.plugins</groupId> |
| 73 | + <artifactId>maven-shade-plugin</artifactId> |
| 74 | + </plugin> |
| 75 | + </plugins> |
| 76 | + </build> |
56 | 77 |
|
57 | | - </tasks> |
58 | | - <sourceRoot>target/generated-sources</sourceRoot> |
59 | | - </configuration> |
60 | | - <goals> |
61 | | - <goal>run</goal> |
62 | | - </goals> |
63 | | - </execution> |
64 | | - </executions> |
65 | | - </plugin> |
66 | | - </plugins> |
67 | | - </build> |
68 | | - |
69 | | - <properties> |
70 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
71 | | - </properties> |
| 78 | + <properties> |
| 79 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 80 | + </properties> |
72 | 81 |
|
73 | | - <dependencies> |
74 | | - <dependency> |
75 | | - <groupId>com.google.protobuf</groupId> |
76 | | - <artifactId>protobuf-java</artifactId> |
77 | | - </dependency> |
78 | | - </dependencies> |
| 82 | + <dependencies> |
| 83 | + <dependency> |
| 84 | + <groupId>com.google.protobuf</groupId> |
| 85 | + <artifactId>protobuf-java</artifactId> |
| 86 | + </dependency> |
| 87 | + </dependencies> |
79 | 88 | </project> |
0 commit comments