build: Support docker for unsupported distros
[iotivity.git] / cloud / interface / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4
5         <parent>
6                 <groupId>org.iotivity.cloud</groupId>
7                 <artifactId>cloud</artifactId>
8                 <version>0.0.1-SNAPSHOT</version>
9         </parent>
10
11         <groupId>org.iotivity.cloud</groupId>
12         <artifactId>CloudInterface</artifactId>
13
14         <properties>
15                 <docker.image.name>iotivity/interface</docker.image.name>
16         </properties>
17
18
19         <dependencies>
20                 <!-- Local -->
21                 <dependency>
22                         <groupId>org.iotivity.cloud</groupId>
23                         <artifactId>CloudStack</artifactId>
24                 </dependency>
25
26                 <!-- Testing -->
27                 <dependency>
28                         <groupId>org.powermock</groupId>
29                         <artifactId>powermock-api-mockito</artifactId>
30                         <scope>test</scope>
31                 </dependency>
32                 <dependency>
33                         <groupId>org.powermock</groupId>
34                         <artifactId>powermock-core</artifactId>
35                         <scope>test</scope>
36                 </dependency>
37                 <dependency>
38                         <groupId>org.powermock</groupId>
39                         <artifactId>powermock-module-junit4</artifactId>
40                         <scope>test</scope>
41                 </dependency>
42         </dependencies>
43
44         <build>
45                 <plugins>
46                         <plugin>
47                                 <inherited>true</inherited>
48                                 <groupId>org.apache.maven.plugins</groupId>
49                                 <artifactId>maven-compiler-plugin</artifactId>
50                                 <configuration>
51                                         <source>1.8</source>
52                                         <target>1.8</target>
53                                         <encoding>UTF-8</encoding>
54                                 </configuration>
55                         </plugin>
56                         <plugin>
57                                 <groupId>org.apache.maven.plugins</groupId>
58                                 <artifactId>maven-jar-plugin</artifactId>
59                                 <configuration>
60                                         <archive>
61                                                 <manifest>
62                                                         <mainClass>org.iotivity.cloud.ciserver.CloudInterfaceServer</mainClass>
63                                                         <addClasspath>true</addClasspath>
64                                                         <classpathPrefix>lib/</classpathPrefix>
65                                                 </manifest>
66                                         </archive>
67                                 </configuration>
68                         </plugin>
69                         <plugin>
70                                 <groupId>org.apache.maven.plugins</groupId>
71                                 <artifactId>maven-dependency-plugin</artifactId>
72                                 <executions>
73                                         <execution>
74                                                 <id>copy-dependencies</id>
75                                                 <phase>package</phase>
76                                                 <goals>
77                                                         <goal>copy-dependencies</goal>
78                                                 </goals>
79                                         </execution>
80                                 </executions>
81                                 <configuration>
82                                         <outputDirectory>target/lib</outputDirectory>
83                                         <overWriteIfNewer>true</overWriteIfNewer>
84                                 </configuration>
85                         </plugin>
86                         <plugin>
87                                 <groupId>io.fabric8</groupId>
88                                 <artifactId>docker-maven-plugin</artifactId>
89                                 <version>0.26.0</version>
90                                 <configuration>
91                                         <images>
92                                                 <image>
93                                                         <name>${docker.image.name}</name>
94                                                         <build>
95                                                                 <dockerFileDir>${project.basedir}</dockerFileDir>
96                                                                 <tags>
97                                                                         <tag>${docker.image.version}</tag>
98                                                                 </tags>
99                                                         </build>
100                                                 </image>
101                                         </images>
102                                 </configuration>
103                         </plugin>
104                 </plugins>
105         </build>
106 </project>