Experiment: fix base.directory vs. basedir
[yangtools.git] / yang / yang-parser-rfc7950 / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>bundle-parent</artifactId>
15         <version>4.0.0-SNAPSHOT</version>
16         <relativePath/>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <groupId>org.opendaylight.yangtools</groupId>
21     <artifactId>yang-parser-rfc7950</artifactId>
22     <version>2.1.0-SNAPSHOT</version>
23     <packaging>bundle</packaging>
24     <name>${project.artifactId}</name>
25     <description>RFC6020/RFC7950 parser support</description>
26
27     <properties>
28         <sonar.jacoco.reportPath>${project.basedir}/../../target/jacoco.exec</sonar.jacoco.reportPath>
29     </properties>
30
31     <dependencyManagement>
32         <dependencies>
33             <dependency>
34                 <groupId>org.opendaylight.yangtools</groupId>
35                 <artifactId>yangtools-artifacts</artifactId>
36                 <version>2.1.0-SNAPSHOT</version>
37                 <scope>import</scope>
38                 <type>pom</type>
39             </dependency>
40         </dependencies>
41     </dependencyManagement>
42
43     <dependencies>
44         <dependency>
45             <groupId>com.google.guava</groupId>
46             <artifactId>guava</artifactId>
47         </dependency>
48         <dependency>
49             <groupId>${project.groupId}</groupId>
50             <artifactId>concepts</artifactId>
51         </dependency>
52         <dependency>
53             <groupId>${project.groupId}</groupId>
54             <artifactId>yang-common</artifactId>
55         </dependency>
56         <dependency>
57             <groupId>${project.groupId}</groupId>
58             <artifactId>yang-model-api</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>${project.groupId}</groupId>
62             <artifactId>yang-parser-api</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>${project.groupId}</groupId>
66             <artifactId>yang-parser-reactor</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>${project.groupId}</groupId>
70             <artifactId>yang-parser-spi</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>${project.groupId}</groupId>
74             <artifactId>yang-model-util</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>${project.groupId}</groupId>
78             <artifactId>openconfig-model-api</artifactId>
79         </dependency>
80
81         <dependency>
82             <groupId>org.antlr</groupId>
83             <artifactId>antlr4-runtime</artifactId>
84         </dependency>
85
86         <dependency>
87             <groupId>ch.qos.logback</groupId>
88             <artifactId>logback-classic</artifactId>
89             <scope>test</scope>
90         </dependency>
91     </dependencies>
92
93     <build>
94         <plugins>
95             <plugin>
96                 <groupId>org.antlr</groupId>
97                 <artifactId>antlr4-maven-plugin</artifactId>
98                 <executions>
99                     <execution>
100                         <goals>
101                             <goal>antlr4</goal>
102                         </goals>
103                     </execution>
104                 </executions>
105                 <configuration>
106                     <sourceDirectory>src/main/antlr</sourceDirectory>
107                     <outputDirectory>${project.build.directory}/generated-sources/parser/org/opendaylight/yangtools/antlrv4/code/gen</outputDirectory>
108                     <visitor>true</visitor>
109                     <listener>true</listener>
110                 </configuration>
111             </plugin>
112             <plugin>
113                 <groupId>org.codehaus.mojo</groupId>
114                 <artifactId>build-helper-maven-plugin</artifactId>
115             </plugin>
116             <plugin>
117                 <groupId>org.apache.maven.plugins</groupId>
118                 <artifactId>maven-checkstyle-plugin</artifactId>
119                 <configuration>
120                     <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
121                 </configuration>
122             </plugin>
123             <plugin>
124                 <groupId>org.apache.maven.plugins</groupId>
125                 <artifactId>maven-javadoc-plugin</artifactId>
126                 <configuration>
127                     <excludePackageNames>
128                         *.opendaylight.yangtools.antlrv4.code.gen
129                     </excludePackageNames>
130                 </configuration>
131             </plugin>
132             <plugin>
133                 <groupId>org.jacoco</groupId>
134                 <artifactId>jacoco-maven-plugin</artifactId>
135                 <executions>
136                     <execution>
137                         <id>pre-unit-test</id>
138                         <goals>
139                             <goal>prepare-agent</goal>
140                         </goals>
141                         <configuration>
142                             <destFile>${project.build.directory}/code-coverage/jacoco.exec</destFile>
143                         </configuration>
144                     </execution>
145                     <execution>
146                         <id>post-unit-test</id>
147                         <goals>
148                             <goal>report</goal>
149                         </goals>
150                         <configuration>
151                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
152                         </configuration>
153                     </execution>
154                 </executions>
155             </plugin>
156         </plugins>
157     </build>
158
159 </project>