1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
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">
12 <groupId>org.opendaylight.controller</groupId>
13 <artifactId>config-parent</artifactId>
14 <version>0.6.0-SNAPSHOT</version>
15 <relativePath>../config-parent</relativePath>
18 <modelVersion>4.0.0</modelVersion>
19 <groupId>org.opendaylight.controller</groupId>
20 <artifactId>config-filtering-parent</artifactId>
21 <packaging>pom</packaging>
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>
33 <id>apply-filtering-before-attaching-config</id>
36 <exists>${config.file}</exists>
43 <artifactId>maven-resources-plugin</artifactId>
46 <id>copy-resources</id>
47 <phase>validate</phase>
49 <goal>copy-resources</goal>
52 <outputDirectory>${generated.config.dir}</outputDirectory>
55 <directory>${config.dir}</directory>
56 <filtering>true</filtering>
64 <groupId>org.codehaus.mojo</groupId>
65 <artifactId>build-helper-maven-plugin</artifactId>
68 <id>attach-artifacts</id>
70 <goal>attach-artifact</goal>
72 <phase>package</phase>
76 <file>${generated.config.file}</file>
78 <classifier>config</classifier>
89 <groupId>org.apache.maven.plugins</groupId>
90 <artifactId>maven-resources-plugin</artifactId>