Use nullOrNonPositive instead of nullOrNonZero
[controller.git] / opendaylight / config / config-filtering-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
4
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11   <parent>
12     <groupId>org.opendaylight.controller</groupId>
13     <artifactId>config-parent</artifactId>
14     <version>0.6.0-SNAPSHOT</version>
15     <relativePath>../config-parent</relativePath>
16   </parent>
17
18   <modelVersion>4.0.0</modelVersion>
19   <groupId>org.opendaylight.controller</groupId>
20   <artifactId>config-filtering-parent</artifactId>
21   <packaging>pom</packaging>
22
23   <properties>
24     <config.dir>src/main/config</config.dir>
25     <config.filename>default-config.xml</config.filename>
26     <config.file>${config.dir}/${config.filename}</config.file>
27     <generated.config.dir>${project.build.directory}/generated-config</generated.config.dir>
28     <generated.config.file>${generated.config.dir}/${config.filename}</generated.config.file>
29   </properties>
30
31   <profiles>
32     <profile>
33       <id>apply-filtering-before-attaching-config</id>
34       <activation>
35         <file>
36           <exists>${config.file}</exists>
37         </file>
38       </activation>
39       <build>
40         <pluginManagement>
41           <plugins>
42             <plugin>
43               <artifactId>maven-resources-plugin</artifactId>
44               <executions>
45                 <execution>
46                   <id>copy-resources</id>
47                   <phase>validate</phase>
48                   <goals>
49                     <goal>copy-resources</goal>
50                   </goals>
51                   <configuration>
52                     <outputDirectory>${generated.config.dir}</outputDirectory>
53                     <resources>
54                       <resource>
55                         <directory>${config.dir}</directory>
56                         <filtering>true</filtering>
57                       </resource>
58                     </resources>
59                   </configuration>
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                   <goals>
70                     <goal>attach-artifact</goal>
71                   </goals>
72                   <phase>package</phase>
73                   <configuration>
74                     <artifacts>
75                       <artifact>
76                         <file>${generated.config.file}</file>
77                         <type>xml</type>
78                         <classifier>config</classifier>
79                       </artifact>
80                     </artifacts>
81                   </configuration>
82                 </execution>
83               </executions>
84             </plugin>
85           </plugins>
86         </pluginManagement>
87         <plugins>
88           <plugin>
89             <groupId>org.apache.maven.plugins</groupId>
90             <artifactId>maven-resources-plugin</artifactId>
91           </plugin>
92         </plugins>
93       </build>
94     </profile>
95   </profiles>
96 </project>