blob: f442ed0f8966d574148ac17b08fa257b9a775ea3 [file] [log] [blame]
Thomas Vachuska36be65f2015-12-08 12:36:15 -08001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright 2014-2015 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 REST API bundle archetype</description>
26 <url>http://onosproject.org</url>
27
28 <properties>
29 <onos.version>1.4.0-SNAPSHOT</onos.version>
30
31 <web.context>/onos/${artifactId}</web.context>
32 <api.version>1.0.0</api.version>
33 <api.title>Sample app REST API</api.title>
34 <api.description>
35 Sample application REST API
36 </api.description>
37 <api.package>${package}</api.package>
38 </properties>
39
40 <dependencies>
41 <dependency>
42 <groupId>org.onosproject</groupId>
43 <artifactId>onos-api</artifactId>
44 <version>${onos.version}</version>
45 </dependency>
46
47 <dependency>
48 <groupId>org.onosproject</groupId>
49 <artifactId>onlab-osgi</artifactId>
50 <version>${onos.version}</version>
51 </dependency>
52
53 <dependency>
54 <groupId>junit</groupId>
55 <artifactId>junit</artifactId>
56 <version>4.11</version>
57 <scope>test</scope>
58 </dependency>
59
60 <dependency>
61 <groupId>org.onosproject</groupId>
62 <artifactId>onos-cli</artifactId>
63 <version>${onos.version}</version>
64 <scope>provided</scope>
65 </dependency>
66
67 <dependency>
68 <groupId>org.onosproject</groupId>
69 <artifactId>onos-api</artifactId>
70 <version>${onos.version}</version>
71 <scope>test</scope>
72 <classifier>tests</classifier>
73 </dependency>
74
75 <dependency>
76 <groupId>org.onosproject</groupId>
77 <artifactId>onos-rest</artifactId>
78 <version>${onos.version}</version>
79 <scope>provided</scope>
80 </dependency>
81 <dependency>
82 <groupId>org.onosproject</groupId>
83 <artifactId>onlab-rest</artifactId>
84 <version>${onos.version}</version>
85 <scope>provided</scope>
86 </dependency>
87
88 <dependency>
89 <groupId>javax.ws.rs</groupId>
90 <artifactId>jsr311-api</artifactId>
91 <version>1.1.1</version>
92 <scope>provided</scope>
93 </dependency>
94 <dependency>
95 <groupId>com.sun.jersey</groupId>
96 <artifactId>jersey-servlet</artifactId>
97 <version>1.19</version>
98 <scope>provided</scope>
99 </dependency>
100
101 <dependency>
102 <groupId>com.fasterxml.jackson.core</groupId>
103 <artifactId>jackson-databind</artifactId>
104 <version>2.4.2</version>
105 <scope>provided</scope>
106 </dependency>
107 <dependency>
108 <groupId>com.fasterxml.jackson.core</groupId>
109 <artifactId>jackson-annotations</artifactId>
110 <version>2.4.2</version>
111 <scope>provided</scope>
112 </dependency>
113
114 <dependency>
115 <groupId>org.osgi</groupId>
116 <artifactId>org.osgi.core</artifactId>
117 <version>4.3.1</version>
118 <scope>provided</scope>
119 </dependency>
120 <dependency>
121 <groupId>org.apache.felix</groupId>
122 <artifactId>org.apache.felix.scr.annotations</artifactId>
123 <version>1.9.8</version>
124 <scope>provided</scope>
125 </dependency>
126 <dependency>
127 <groupId>org.apache.karaf.shell</groupId>
128 <artifactId>org.apache.karaf.shell.console</artifactId>
129 <version>3.0.3</version>
130 <scope>provided</scope>
131 </dependency>
132 </dependencies>
133
134 <build>
135 <plugins>
136 <plugin>
137 <groupId>org.apache.felix</groupId>
138 <artifactId>maven-bundle-plugin</artifactId>
139 <version>2.5.3</version>
140 <extensions>true</extensions>
141 <configuration>
142 <instructions>
143 <_wab>src/main/webapp/</_wab>
144 <Include-Resource>
145 WEB-INF/classes/apidoc/swagger.json=target/swagger.json,
146 {maven-resources}
147 </Include-Resource>
148 <Bundle-SymbolicName>
149 ${project.groupId}.${project.artifactId}
150 </Bundle-SymbolicName>
151 <Import-Package>
152 org.slf4j,
153 org.osgi.framework,
154 javax.ws.rs,
155 javax.ws.rs.core,
156 com.sun.jersey.api.core,
157 com.sun.jersey.spi.container.servlet,
158 com.sun.jersey.server.impl.container.servlet,
159 com.fasterxml.jackson.databind,
160 com.fasterxml.jackson.databind.node,
161 com.fasterxml.jackson.core,
162 org.apache.karaf.shell.commands,
163 org.apache.karaf.shell.console,
164 com.google.common.*,
165 org.onlab.packet.*,
166 org.onlab.rest.*,
167 org.onosproject.*,
168 org.onlab.util.*,
169 org.jboss.netty.util.*
170 </Import-Package>
171 <Web-ContextPath>${web.context}</Web-ContextPath>
172 </instructions>
173 </configuration>
174 </plugin>
175 <plugin>
176 <groupId>org.apache.maven.plugins</groupId>
177 <artifactId>maven-compiler-plugin</artifactId>
178 <version>2.5.1</version>
179 <configuration>
180 <source>1.8</source>
181 <target>1.8</target>
182 </configuration>
183 </plugin>
184 <plugin>
185 <groupId>org.apache.felix</groupId>
186 <artifactId>maven-scr-plugin</artifactId>
187 <version>1.20.0</version>
188 <executions>
189 <execution>
190 <id>generate-scr-srcdescriptor</id>
191 <goals>
192 <goal>scr</goal>
193 </goals>
194 </execution>
195 </executions>
196 <configuration>
197 <supportedProjectTypes>
198 <supportedProjectType>bundle</supportedProjectType>
199 <supportedProjectType>war</supportedProjectType>
200 </supportedProjectTypes>
201 </configuration>
202 </plugin>
203 </plugins>
204 </build>
205
206</project>