]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <!-- | |
3 | Licensed to the Apache Software Foundation (ASF) under one | |
4 | or more contributor license agreements. See the NOTICE file | |
5 | distributed with this work for additional information | |
6 | regarding copyright ownership. The ASF licenses this file | |
7 | to you under the Apache License, Version 2.0 (the | |
8 | "License"); you may not use this file except in compliance | |
9 | with the License. You may obtain a copy of the License at | |
10 | ||
11 | http://www.apache.org/licenses/LICENSE-2.0 | |
12 | ||
13 | Unless required by applicable law or agreed to in writing, | |
14 | software distributed under the License is distributed on an | |
15 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
16 | KIND, either express or implied. See the License for the | |
17 | specific language governing permissions and limitations | |
18 | under the License. | |
19 | --> | |
20 | <project | |
21 | xmlns="http://maven.apache.org/POM/4.0.0" | |
22 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
23 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
24 | ||
25 | <modelVersion>4.0.0</modelVersion> | |
26 | <groupId>org.apache.thrift</groupId> | |
27 | <artifactId>thrift-maven-plugin</artifactId> | |
28 | <packaging>maven-plugin</packaging> | |
29 | <name>thrift-maven-plugin</name> | |
30 | <version>1.0.0</version> | |
31 | <build> | |
32 | <plugins> | |
33 | <plugin> | |
34 | <groupId>org.apache.maven.plugins</groupId> | |
35 | <artifactId>maven-compiler-plugin</artifactId> | |
36 | <version>3.8.1</version> | |
37 | <configuration> | |
38 | <source>1.8</source> | |
39 | <target>1.8</target> | |
40 | </configuration> | |
41 | </plugin> | |
42 | <plugin> | |
43 | <groupId>org.apache.maven.plugins</groupId> | |
44 | <artifactId>maven-surefire-plugin</artifactId> | |
45 | <version>2.14.1</version> | |
46 | <configuration> | |
47 | <systemPropertyVariables> | |
48 | <thriftExecutable>${thrift.compiler}</thriftExecutable> | |
49 | </systemPropertyVariables> | |
50 | </configuration> | |
51 | </plugin> | |
52 | <plugin> | |
53 | <groupId>org.apache.maven.plugins</groupId> | |
54 | <artifactId>maven-antrun-plugin</artifactId> | |
55 | <version>1.8</version> | |
56 | <executions> | |
57 | <execution> | |
58 | <id>generate-jar-for-test</id> | |
59 | <phase>generate-test-resources</phase> | |
60 | <configuration> | |
61 | <target> | |
62 | <jar destfile="${project.build.directory}/SharedIdl.jar" basedir="${basedir}/src/test/resources" includes="**/*.thrift" /> | |
63 | </target> | |
64 | </configuration> | |
65 | <goals> | |
66 | <goal>run</goal> | |
67 | </goals> | |
68 | </execution> | |
69 | </executions> | |
70 | </plugin> | |
71 | </plugins> | |
72 | </build> | |
73 | <dependencies> | |
74 | <dependency> | |
75 | <groupId>junit</groupId> | |
76 | <artifactId>junit</artifactId> | |
77 | <version>4.11</version> | |
78 | <scope>test</scope> | |
79 | </dependency> | |
80 | <dependency> | |
81 | <groupId>org.apache.maven</groupId> | |
82 | <artifactId>maven-plugin-api</artifactId> | |
83 | <version>3.1.0</version> | |
84 | </dependency> | |
85 | <dependency> | |
86 | <groupId>org.apache.maven</groupId> | |
87 | <artifactId>maven-project</artifactId> | |
88 | <version>2.2.1</version> | |
89 | </dependency> | |
90 | <dependency> | |
91 | <groupId>com.google.guava</groupId> | |
92 | <artifactId>guava</artifactId> | |
93 | <version>14.0.1</version> | |
94 | </dependency> | |
95 | <dependency> | |
96 | <groupId>org.codehaus.plexus</groupId> | |
97 | <artifactId>plexus-utils</artifactId> | |
98 | <version>3.0.14</version> | |
99 | </dependency> | |
100 | <dependency> | |
101 | <groupId>org.mockito</groupId> | |
102 | <artifactId>mockito-all</artifactId> | |
103 | <version>1.10.19</version> | |
104 | <scope>test</scope> | |
105 | </dependency> | |
106 | </dependencies> | |
107 | <properties> | |
108 | <thrift.root>${basedir}/../..</thrift.root> | |
109 | <thrift.compiler>${thrift.root}/compiler/cpp/thrift</thrift.compiler> | |
110 | <thrift.test.home>${thrift.root}/test</thrift.test.home> | |
111 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
112 | </properties> | |
113 | </project> |