blob: c9e747c9fa59ede797a9f788753e9efe5f970227 [file] [log] [blame]
Thomas Vachuskafc7f22d2014-12-04 11:07:01 -08001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright 2014 Open Networking Laboratory
4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
17<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
18 <modelVersion>4.0.0</modelVersion>
19
20 <groupId>${groupId}</groupId>
21 <artifactId>${artifactId}</artifactId>
22 <version>${version}</version>
23 <packaging>bundle</packaging>
24
25 <description>ONOS OSGi bundle archetype</description>
26 <url>http://onosproject.org</url>
27
28 <properties>
Brian O'Connorafc2d7d2015-06-05 23:31:25 -070029 <onos.version>1.3.0-SNAPSHOT</onos.version>
Thomas Vachuskaa2ae4222015-04-29 18:42:09 -070030 <!-- Uncomment to generate ONOS app from this module.
31 <onos.app.name>org.foo.app</onos.app.name>
32 <onos.app.origin>Foo, Inc.</onos.app.origin>
33 -->
Thomas Vachuskafc7f22d2014-12-04 11:07:01 -080034 </properties>
35
36 <dependencies>
37 <dependency>
38 <groupId>org.onosproject</groupId>
39 <artifactId>onos-api</artifactId>
40 <version>${onos.version}</version>
41 </dependency>
42
43 <dependency>
44 <groupId>org.onosproject</groupId>
45 <artifactId>onlab-osgi</artifactId>
46 <version>${onos.version}</version>
47 </dependency>
48
49 <dependency>
50 <groupId>junit</groupId>
51 <artifactId>junit</artifactId>
52 <version>4.11</version>
53 <scope>test</scope>
54 </dependency>
55
56 <dependency>
57 <groupId>org.onosproject</groupId>
58 <artifactId>onos-api</artifactId>
59 <version>${onos.version}</version>
60 <scope>test</scope>
61 <classifier>tests</classifier>
62 </dependency>
63
64 <dependency>
65 <groupId>org.apache.felix</groupId>
66 <artifactId>org.apache.felix.scr.annotations</artifactId>
67 <version>1.9.8</version>
68 <scope>provided</scope>
69 </dependency>
70 </dependencies>
71
72 <build>
73 <plugins>
74 <plugin>
75 <groupId>org.apache.felix</groupId>
76 <artifactId>maven-bundle-plugin</artifactId>
77 <version>2.5.3</version>
78 <extensions>true</extensions>
79 </plugin>
Brian O'Connor0b351912014-12-11 14:40:31 -080080 <plugin>
81 <groupId>org.apache.maven.plugins</groupId>
82 <artifactId>maven-compiler-plugin</artifactId>
83 <version>2.5.1</version>
84 <configuration>
85 <source>1.8</source>
86 <target>1.8</target>
87 </configuration>
88 </plugin>
Thomas Vachuskafc7f22d2014-12-04 11:07:01 -080089 <plugin>
90 <groupId>org.apache.felix</groupId>
91 <artifactId>maven-scr-plugin</artifactId>
92 <version>1.20.0</version>
93 <executions>
94 <execution>
95 <id>generate-scr-srcdescriptor</id>
96 <goals>
97 <goal>scr</goal>
98 </goals>
99 </execution>
100 </executions>
101 <configuration>
102 <supportedProjectTypes>
103 <supportedProjectType>bundle</supportedProjectType>
104 <supportedProjectType>war</supportedProjectType>
105 </supportedProjectTypes>
106 </configuration>
107 </plugin>
Thomas Vachuska3ad8d4b2015-04-27 10:52:08 -0700108 <plugin>
109 <groupId>org.onosproject</groupId>
110 <artifactId>onos-maven-plugin</artifactId>
Thomas Vachuska8f2d6e02015-08-28 10:29:15 -0700111 <version>1.5</version>
Thomas Vachuska3ad8d4b2015-04-27 10:52:08 -0700112 <executions>
113 <execution>
114 <id>cfg</id>
115 <phase>generate-resources</phase>
116 <goals>
117 <goal>cfg</goal>
118 </goals>
119 </execution>
120 <execution>
Thomas Vachuska8f2d6e02015-08-28 10:29:15 -0700121 <id>swagger</id>
122 <phase>generate-sources</phase>
123 <goals>
124 <goal>swagger</goal>
125 </goals>
126 </execution>
127 <execution>
Thomas Vachuska3ad8d4b2015-04-27 10:52:08 -0700128 <id>app</id>
129 <phase>package</phase>
130 <goals>
131 <goal>app</goal>
132 </goals>
133 </execution>
134 </executions>
135 </plugin>
Thomas Vachuskafc7f22d2014-12-04 11:07:01 -0800136 </plugins>
137 </build>
138
139</project>