bug 1128:POM Restructuring for Automated Release
[yangtools.git] / common / feature / pom.xml
1 <project>
2
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <groupId>org.opendaylight.yangtools</groupId>
7         <artifactId>yangtools-parent</artifactId>
8         <version>0.6.2-SNAPSHOT</version>
9         <relativePath>/../../common/parent/pom.xml</relativePath>
10     </parent>
11
12     <artifactId>features-file</artifactId>
13     <packaging>pom</packaging>
14
15     <properties>
16         <features.file>features.xml</features.file>
17     </properties>
18
19     <build>
20         <resources>
21             <resource>
22                 <directory>src/main/resources</directory>
23                 <filtering>true</filtering>
24             </resource>
25         </resources>
26         <plugins>
27             <plugin>
28                 <groupId>org.apache.maven.plugins</groupId>
29                 <artifactId>maven-resources-plugin</artifactId>
30                 <executions>
31                     <execution>
32                         <id>filter</id>
33                         <phase>generate-resources</phase>
34                         <goals>
35                             <goal>resources</goal>
36                         </goals>
37                     </execution>
38                 </executions>
39             </plugin>
40             <plugin>
41                 <groupId>org.codehaus.mojo</groupId>
42                 <artifactId>build-helper-maven-plugin</artifactId>
43                 <executions>
44                     <execution>
45                         <id>attach-artifacts</id>
46                         <phase>package</phase>
47                         <goals>
48                             <goal>attach-artifact</goal>
49                         </goals>
50                         <configuration>
51                             <artifacts>
52                                 <artifact>
53                                     <file>${project.build.directory}/classes/${features.file}</file>
54                                     <type>xml</type>
55                                     <classifier>features</classifier>
56                                 </artifact>
57                             </artifacts>
58                         </configuration>
59                     </execution>
60                 </executions>
61             </plugin>
62         </plugins>
63     </build>
64 </project>
65