Merge changes Idfae5b92,Ibc4de535,Iad341cb0,I5e0be59b,Id51f6680
[transportpce.git] / features / odl-transportpce-inventory / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright © 2016 Orange and others. All rights reserved. This program and the accompanying materials
3     are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution,
4     and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL -->
5 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
7   <modelVersion>4.0.0</modelVersion>
8
9   <parent>
10     <groupId>org.opendaylight.odlparent</groupId>
11     <artifactId>single-feature-parent</artifactId>
12     <version>9.0.15</version>
13     <relativePath/>
14   </parent>
15
16   <groupId>org.opendaylight.transportpce</groupId>
17   <artifactId>odl-transportpce-inventory</artifactId>
18   <version>5.0.0-SNAPSHOT</version>
19   <packaging>feature</packaging>
20   <name>OpenDaylight :: transportpce :: Inventory</name>
21
22   <properties>
23     <transportpce.db.host>localhost:3306</transportpce.db.host>
24     <transportpce.db.database>transportpce</transportpce.db.database>
25     <transportpce.db.username>root</transportpce.db.username>
26     <transportpce.db.password>root</transportpce.db.password>
27     <transporpce.device.backup.folder>data/transportpce/devicebackup</transporpce.device.backup.folder>
28     <transporpce.device.backup.prefix></transporpce.device.backup.prefix>
29     <transporpce.device.backup.period>600</transporpce.device.backup.period>
30     <!-- skipping single feature test because DataSource is not available in Pax4j (H2 possible workaround) -->
31     <skip.karaf.featureTest>true</skip.karaf.featureTest>
32   </properties>
33
34   <dependencies>
35     <dependency>
36       <groupId>org.opendaylight.transportpce</groupId>
37       <artifactId>odl-transportpce</artifactId>
38       <version>${project.version}</version>
39       <classifier>features</classifier>
40       <type>xml</type>
41     </dependency>
42     <dependency>
43       <groupId>org.opendaylight.transportpce</groupId>
44       <artifactId>transportpce-inventory</artifactId>
45       <version>${project.version}</version>
46     </dependency>
47   </dependencies>
48
49   <build>
50     <plugins>
51       <plugin>
52         <artifactId>maven-resources-plugin</artifactId>
53         <executions>
54           <execution>
55             <id>copy-resources</id>
56             <phase>validate</phase>
57             <goals>
58               <goal>copy-resources</goal>
59             </goals>
60             <configuration>
61               <outputDirectory>${basedir}/target/resources</outputDirectory>
62               <resources>
63                 <resource>
64                   <directory>src/main/resources</directory>
65                   <filtering>true</filtering>
66                 </resource>
67               </resources>
68             </configuration>
69           </execution>
70         </executions>
71       </plugin>
72       <plugin>
73         <groupId>org.codehaus.mojo</groupId>
74         <artifactId>build-helper-maven-plugin</artifactId>
75         <executions>
76           <execution>
77             <id>attach-db-artifact</id>
78             <phase>package</phase>
79             <goals>
80               <goal>attach-artifact</goal>
81             </goals>
82             <configuration>
83               <artifacts>
84                 <artifact>
85                   <file>target/resources/org.ops4j.datasource-transporpce.cfg</file>
86                   <type>cfg</type>
87                   <classifier>datasource</classifier>
88                 </artifact>
89                 <artifact>
90                   <file>target/resources/org.opendaylight.transportpce.job.cfg</file>
91                   <type>cfg</type>
92                   <classifier>config</classifier>
93                 </artifact>
94               </artifacts>
95             </configuration>
96           </execution>
97         </executions>
98       </plugin>
99     </plugins>
100   </build>
101 </project>