Debian Codegraph @

doc/examples/java-example/pom.xml

raw
1 <!--
2 - Licensed to the Apache Software Foundation (ASF) under one
3 - or more contributor license agreements. See the NOTICE file
4 - distributed with this work for additional information
5 - regarding copyright ownership. The ASF licenses this file
6 - to you under the Apache License, Version 2.0 (the
7 - "License"); you may not use this file except in compliance
8 - with the License. You may obtain a copy of the License at
9 -
10 - https://www.apache.org/licenses/LICENSE-2.0
11 -
12 - Unless required by applicable law or agreed to in writing,
13 - software distributed under the License is distributed on an
14 - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 - KIND, either express or implied. See the License for the
16 - specific language governing permissions and limitations
17 - under the License.
18 -->
19 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
21 <modelVersion>4.0.0</modelVersion>
22 <groupId>example</groupId>
23 <artifactId>java-example</artifactId>
24 <packaging>jar</packaging>
25 <version>1.0-SNAPSHOT</version>
26 <name>java-example</name>
27 <url>https://maven.apache.org</url>
28 <properties>
29 <avro.version>1.12.1</avro.version>
30 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
31 </properties>
32 <dependencies>
33 <dependency>
34 <groupId>junit</groupId>
35 <artifactId>junit</artifactId>
36 <version>3.8.1</version>
37 <scope>test</scope>
38 </dependency>
39 <dependency>
40 <groupId>org.apache.avro</groupId>
41 <artifactId>avro</artifactId>
42 <version>${avro.version}</version>
43 </dependency>
44 </dependencies>
45 <build>
46 <plugins>
47 <plugin>
48 <groupId>org.apache.maven.plugins</groupId>
49 <artifactId>maven-compiler-plugin</artifactId>
50 <version>3.8.1</version>
51 <configuration>
52 <source>11</source>
53 <target>11</target>
54 </configuration>
55 </plugin>
56 <plugin>
57 <groupId>org.apache.avro</groupId>
58 <artifactId>avro-maven-plugin</artifactId>
59 <version>${avro.version}</version>
60 <configuration>
61 <sourceDirectory>${project.basedir}/../</sourceDirectory>
62 <outputDirectory>${project.basedir}/src/main/java/</outputDirectory>
63 </configuration>
64 <executions>
65 <execution>
66 <phase>generate-sources</phase>
67 <goals>
68 <goal>schema</goal>
69 </goals>
70 </execution>
71 </executions>
72 </plugin>
73 </plugins>
74 <pluginManagement>
75 <plugins>
76 <plugin>
77 <groupId>org.eclipse.m2e</groupId>
78 <artifactId>lifecycle-mapping</artifactId>
79 <version>1.0.0</version>
80 <configuration>
81 <lifecycleMappingMetadata>
82 <pluginExecutions>
83 <pluginExecution>
84 <pluginExecutionFilter>
85 <groupId>org.apache.avro</groupId>
86 <artifactId>avro-maven-plugin</artifactId>
87 <versionRange>[${avro.version},)</versionRange>
88 <goals>
89 <goal>schema</goal>
90 </goals>
91 </pluginExecutionFilter>
92 <action>
93 <execute/>
94 </action>
95 </pluginExecution>
96 </pluginExecutions>
97 </lifecycleMappingMetadata>
98 </configuration>
99 </plugin>
100 </plugins>
101 </pluginManagement>
102 </build>
103 </project>