Project

General

Profile

1 51263 claudio.at
<?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
    <modelVersion>4.0.0</modelVersion>
6
7
    <parent>
8
        <groupId>eu.dnetlib.dhp</groupId>
9
        <artifactId>dhp</artifactId>
10
        <version>1.0.0-SNAPSHOT</version>
11
    </parent>
12
13
    <artifactId>dhp-schemas</artifactId>
14
    <packaging>jar</packaging>
15
16
    <dependencies>
17
        <dependency>
18
            <groupId>org.apache.avro</groupId>
19
            <artifactId>avro</artifactId>
20
        </dependency>
21
    </dependencies>
22
23
    <build>
24
        <plugins>
25
            <!-- Plugin that generates Java classes from Avro schemas -->
26
            <plugin>
27
                <groupId>org.apache.avro</groupId>
28
                <artifactId>avro-maven-plugin</artifactId>
29
                <executions>
30
                    <execution>
31
                        <phase>generate-sources</phase>
32
                        <goals>
33
                            <goal>schema</goal>
34
                            <goal>idl-protocol</goal>
35
                        </goals>
36
                    </execution>
37
                </executions>
38
            </plugin>
39
            <!-- This plugin makes the Maven->Update Project Configuration
40
			not forget about the "target/generated-sources/avro" source path-->
41
            <plugin>
42
                <groupId>org.codehaus.mojo</groupId>
43
                <artifactId>build-helper-maven-plugin</artifactId>
44
                <executions>
45
                    <execution>
46
                        <id>add-source</id>
47
                        <phase>generate-sources</phase>
48
                        <goals>
49
                            <goal>add-source</goal>
50
                        </goals>
51
                        <configuration>
52
                            <sources>
53
                                <source>${project.build.directory}/generated-sources/avro/</source>
54
                            </sources>
55
                        </configuration>
56
                    </execution>
57
                </executions>
58
            </plugin>
59
        </plugins>
60
    </build>
61
62
</project>