Add bnd-parent
[odlparent.git] / bnd-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2021 PANTHEON.tech, s.r.o. 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"
11     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12     <modelVersion>4.0.0</modelVersion>
13
14     <parent>
15         <groupId>org.opendaylight.odlparent</groupId>
16         <artifactId>odlparent</artifactId>
17         <version>9.0.7-SNAPSHOT</version>
18         <relativePath>../odlparent</relativePath>
19     </parent>
20
21     <artifactId>bnd-parent</artifactId>
22     <packaging>pom</packaging>
23     <name>ODL :: odlparent :: ${project.artifactId}</name>
24
25     <!-- Annotations processed by bnd-maven-plugin -->
26     <dependencyManagement>
27         <dependencies>
28             <dependency>
29                 <groupId>biz.aQute.bnd</groupId>
30                 <artifactId>biz.aQute.bnd.annotation</artifactId>
31                 <version>5.3.0</version>
32                 <scope>provided</scope>
33             </dependency>
34         </dependencies>
35     </dependencyManagement>
36
37     <build>
38         <pluginManagement>
39             <plugins>
40                 <plugin>
41                     <groupId>biz.aQute.bnd</groupId>
42                     <artifactId>bnd-maven-plugin</artifactId>
43                     <version>5.3.0</version>
44                 </plugin>
45             </plugins>
46         </pluginManagement>
47
48         <plugins>
49             <plugin>
50                 <artifactId>maven-javadoc-plugin</artifactId>
51             </plugin>
52             <plugin>
53                 <artifactId>maven-source-plugin</artifactId>
54             </plugin>
55             <plugin>
56                 <groupId>biz.aQute.bnd</groupId>
57                 <artifactId>bnd-maven-plugin</artifactId>
58                 <executions>
59                     <execution>
60                         <goals>
61                             <goal>bnd-process</goal>
62                         </goals>
63                     </execution>
64                 </executions>
65             </plugin>
66             <!--
67                 See https://github.com/bndtools/bnd/tree/master/maven/bnd-maven-plugin#important-note
68                 and https://issues.apache.org/jira/browse/MJAR-193
69             -->
70             <plugin>
71                 <groupId>org.apache.maven.plugins</groupId>
72                 <artifactId>maven-jar-plugin</artifactId>
73                 <configuration>
74                     <archive>
75                         <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
76                     </archive>
77                 </configuration>
78             </plugin>
79         </plugins>
80     </build>
81 </project>