Merge "Introduce Identifiables"
[yangtools.git] / common / features / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2014 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"
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    <parent>
14       <groupId>org.opendaylight.yangtools</groupId>
15       <artifactId>yangtools-parent</artifactId>
16       <version>0.6.2-SNAPSHOT</version>
17       <relativePath>../parent/pom.xml</relativePath>
18    </parent>
19    <artifactId>features-yangtools</artifactId>
20    <packaging>pom</packaging>
21    <properties>
22       <features.file>features.xml</features.file>
23    </properties>
24    <build>
25       <resources>
26          <resource>
27             <directory>src/main/resources</directory>
28             <filtering>true</filtering>
29          </resource>
30       </resources>
31       <plugins>
32          <plugin>
33             <groupId>org.apache.karaf.tooling</groupId>
34             <artifactId>karaf-maven-plugin</artifactId>
35             <version>${karaf.version}</version>
36             <extensions>true</extensions>
37             <executions>
38                <execution>
39                   <id>features-create-kar</id>
40                   <goals>
41                      <goal>features-create-kar</goal>
42                   </goals>
43                   <configuration>
44                      <featuresFile>${project.build.directory}/classes/${features.file}</featuresFile>
45                   </configuration>
46                </execution>
47             </executions>
48         <!-- There is no useful configuration for the kar mojo. The features-generate-descriptor mojo configuration may be useful -->
49          </plugin>
50          <plugin>
51             <groupId>org.apache.maven.plugins</groupId>
52             <artifactId>maven-resources-plugin</artifactId>
53             <executions>
54                <execution>
55                   <id>filter</id>
56                   <phase>generate-resources</phase>
57                   <goals>
58                      <goal>resources</goal>
59                   </goals>
60                </execution>
61             </executions>
62          </plugin>
63          <plugin>
64             <groupId>org.codehaus.mojo</groupId>
65             <artifactId>build-helper-maven-plugin</artifactId>
66             <executions>
67                <execution>
68                   <id>attach-artifacts</id>
69                   <phase>package</phase>
70                   <goals>
71                      <goal>attach-artifact</goal>
72                   </goals>
73                   <configuration>
74                      <artifacts>
75                         <artifact>
76                            <file>${project.build.directory}/classes/${features.file}</file>
77                            <type>xml</type>
78                            <classifier>features</classifier>
79                         </artifact>
80                      </artifacts>
81                   </configuration>
82                </execution>
83             </executions>
84          </plugin>
85       </plugins>
86    </build>
87 </project>