Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 3 | ~ Copyright 2014-2016 Open Networking Laboratory |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 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> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 29 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
Brian O'Connor | 880dc20d | 2015-12-16 22:53:14 -0800 | [diff] [blame] | 30 | <onos.version>1.5.0-SNAPSHOT</onos.version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 31 | |
| 32 | <web.context>/onos/${artifactId}</web.context> |
| 33 | <api.version>1.0.0</api.version> |
| 34 | <api.title>Sample app REST API</api.title> |
| 35 | <api.description> |
| 36 | Sample application REST API |
| 37 | </api.description> |
| 38 | <api.package>${package}</api.package> |
| 39 | </properties> |
| 40 | |
| 41 | <dependencies> |
| 42 | <dependency> |
| 43 | <groupId>org.onosproject</groupId> |
| 44 | <artifactId>onos-api</artifactId> |
| 45 | <version>${onos.version}</version> |
| 46 | </dependency> |
| 47 | |
| 48 | <dependency> |
| 49 | <groupId>org.onosproject</groupId> |
| 50 | <artifactId>onlab-osgi</artifactId> |
| 51 | <version>${onos.version}</version> |
| 52 | </dependency> |
| 53 | |
| 54 | <dependency> |
| 55 | <groupId>junit</groupId> |
| 56 | <artifactId>junit</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 57 | <version>4.12</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 58 | <scope>test</scope> |
| 59 | </dependency> |
| 60 | |
| 61 | <dependency> |
| 62 | <groupId>org.onosproject</groupId> |
| 63 | <artifactId>onos-cli</artifactId> |
| 64 | <version>${onos.version}</version> |
| 65 | <scope>provided</scope> |
| 66 | </dependency> |
| 67 | |
| 68 | <dependency> |
| 69 | <groupId>org.onosproject</groupId> |
| 70 | <artifactId>onos-api</artifactId> |
| 71 | <version>${onos.version}</version> |
| 72 | <scope>test</scope> |
| 73 | <classifier>tests</classifier> |
| 74 | </dependency> |
| 75 | |
| 76 | <dependency> |
| 77 | <groupId>org.onosproject</groupId> |
| 78 | <artifactId>onos-rest</artifactId> |
| 79 | <version>${onos.version}</version> |
| 80 | <scope>provided</scope> |
| 81 | </dependency> |
| 82 | <dependency> |
| 83 | <groupId>org.onosproject</groupId> |
| 84 | <artifactId>onlab-rest</artifactId> |
| 85 | <version>${onos.version}</version> |
| 86 | <scope>provided</scope> |
| 87 | </dependency> |
| 88 | |
| 89 | <dependency> |
| 90 | <groupId>javax.ws.rs</groupId> |
| 91 | <artifactId>jsr311-api</artifactId> |
| 92 | <version>1.1.1</version> |
| 93 | <scope>provided</scope> |
| 94 | </dependency> |
| 95 | <dependency> |
| 96 | <groupId>com.sun.jersey</groupId> |
| 97 | <artifactId>jersey-servlet</artifactId> |
| 98 | <version>1.19</version> |
| 99 | <scope>provided</scope> |
| 100 | </dependency> |
| 101 | |
| 102 | <dependency> |
| 103 | <groupId>com.fasterxml.jackson.core</groupId> |
| 104 | <artifactId>jackson-databind</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 105 | <version>2.6.4</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 106 | <scope>provided</scope> |
| 107 | </dependency> |
| 108 | <dependency> |
| 109 | <groupId>com.fasterxml.jackson.core</groupId> |
| 110 | <artifactId>jackson-annotations</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 111 | <version>2.6.4</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 112 | <scope>provided</scope> |
| 113 | </dependency> |
| 114 | |
| 115 | <dependency> |
| 116 | <groupId>org.osgi</groupId> |
| 117 | <artifactId>org.osgi.core</artifactId> |
| 118 | <version>4.3.1</version> |
| 119 | <scope>provided</scope> |
| 120 | </dependency> |
| 121 | <dependency> |
| 122 | <groupId>org.apache.felix</groupId> |
| 123 | <artifactId>org.apache.felix.scr.annotations</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 124 | <version>1.9.12</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 125 | <scope>provided</scope> |
| 126 | </dependency> |
| 127 | <dependency> |
| 128 | <groupId>org.apache.karaf.shell</groupId> |
| 129 | <artifactId>org.apache.karaf.shell.console</artifactId> |
| 130 | <version>3.0.3</version> |
| 131 | <scope>provided</scope> |
| 132 | </dependency> |
| 133 | </dependencies> |
| 134 | |
| 135 | <build> |
| 136 | <plugins> |
| 137 | <plugin> |
| 138 | <groupId>org.apache.felix</groupId> |
| 139 | <artifactId>maven-bundle-plugin</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 140 | <version>3.0.1</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 141 | <extensions>true</extensions> |
| 142 | <configuration> |
| 143 | <instructions> |
| 144 | <_wab>src/main/webapp/</_wab> |
| 145 | <Include-Resource> |
| 146 | WEB-INF/classes/apidoc/swagger.json=target/swagger.json, |
| 147 | {maven-resources} |
| 148 | </Include-Resource> |
| 149 | <Bundle-SymbolicName> |
| 150 | ${project.groupId}.${project.artifactId} |
| 151 | </Bundle-SymbolicName> |
| 152 | <Import-Package> |
| 153 | org.slf4j, |
| 154 | org.osgi.framework, |
| 155 | javax.ws.rs, |
| 156 | javax.ws.rs.core, |
| 157 | com.sun.jersey.api.core, |
| 158 | com.sun.jersey.spi.container.servlet, |
| 159 | com.sun.jersey.server.impl.container.servlet, |
| 160 | com.fasterxml.jackson.databind, |
| 161 | com.fasterxml.jackson.databind.node, |
| 162 | com.fasterxml.jackson.core, |
| 163 | org.apache.karaf.shell.commands, |
| 164 | org.apache.karaf.shell.console, |
| 165 | com.google.common.*, |
| 166 | org.onlab.packet.*, |
| 167 | org.onlab.rest.*, |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 168 | org.onlab.osgi.*, |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 169 | org.onlab.util.*, |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 170 | org.onosproject.*, |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 171 | org.jboss.netty.util.* |
| 172 | </Import-Package> |
| 173 | <Web-ContextPath>${web.context}</Web-ContextPath> |
| 174 | </instructions> |
| 175 | </configuration> |
| 176 | </plugin> |
| 177 | <plugin> |
| 178 | <groupId>org.apache.maven.plugins</groupId> |
| 179 | <artifactId>maven-compiler-plugin</artifactId> |
| 180 | <version>2.5.1</version> |
| 181 | <configuration> |
| 182 | <source>1.8</source> |
| 183 | <target>1.8</target> |
| 184 | </configuration> |
| 185 | </plugin> |
| 186 | <plugin> |
| 187 | <groupId>org.apache.felix</groupId> |
| 188 | <artifactId>maven-scr-plugin</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 189 | <version>1.21.0</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 190 | <executions> |
| 191 | <execution> |
| 192 | <id>generate-scr-srcdescriptor</id> |
| 193 | <goals> |
| 194 | <goal>scr</goal> |
| 195 | </goals> |
| 196 | </execution> |
| 197 | </executions> |
| 198 | <configuration> |
| 199 | <supportedProjectTypes> |
| 200 | <supportedProjectType>bundle</supportedProjectType> |
| 201 | <supportedProjectType>war</supportedProjectType> |
| 202 | </supportedProjectTypes> |
| 203 | </configuration> |
| 204 | </plugin> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 205 | <plugin> |
| 206 | <groupId>org.onosproject</groupId> |
| 207 | <artifactId>onos-maven-plugin</artifactId> |
| 208 | <version>1.5</version> |
| 209 | <executions> |
| 210 | <execution> |
| 211 | <id>cfg</id> |
| 212 | <phase>generate-resources</phase> |
| 213 | <goals> |
| 214 | <goal>cfg</goal> |
| 215 | </goals> |
| 216 | </execution> |
| 217 | <execution> |
| 218 | <id>swagger</id> |
| 219 | <phase>generate-sources</phase> |
| 220 | <goals> |
| 221 | <goal>swagger</goal> |
| 222 | </goals> |
| 223 | </execution> |
| 224 | <execution> |
| 225 | <id>app</id> |
| 226 | <phase>package</phase> |
| 227 | <goals> |
| 228 | <goal>app</goal> |
| 229 | </goals> |
| 230 | </execution> |
| 231 | </executions> |
| 232 | </plugin> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 233 | </plugins> |
| 234 | </build> |
| 235 | |
| 236 | </project> |