Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 1 | <?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> |
Brian O'Connor | 880dc20d | 2015-12-16 22:53:14 -0800 | [diff] [blame] | 29 | <onos.version>1.5.0-SNAPSHOT</onos.version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 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.*, |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 167 | org.onlab.osgi.*, |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 168 | org.onlab.util.*, |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 169 | org.onosproject.*, |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 170 | org.jboss.netty.util.* |
| 171 | </Import-Package> |
| 172 | <Web-ContextPath>${web.context}</Web-ContextPath> |
| 173 | </instructions> |
| 174 | </configuration> |
| 175 | </plugin> |
| 176 | <plugin> |
| 177 | <groupId>org.apache.maven.plugins</groupId> |
| 178 | <artifactId>maven-compiler-plugin</artifactId> |
| 179 | <version>2.5.1</version> |
| 180 | <configuration> |
| 181 | <source>1.8</source> |
| 182 | <target>1.8</target> |
| 183 | </configuration> |
| 184 | </plugin> |
| 185 | <plugin> |
| 186 | <groupId>org.apache.felix</groupId> |
| 187 | <artifactId>maven-scr-plugin</artifactId> |
| 188 | <version>1.20.0</version> |
| 189 | <executions> |
| 190 | <execution> |
| 191 | <id>generate-scr-srcdescriptor</id> |
| 192 | <goals> |
| 193 | <goal>scr</goal> |
| 194 | </goals> |
| 195 | </execution> |
| 196 | </executions> |
| 197 | <configuration> |
| 198 | <supportedProjectTypes> |
| 199 | <supportedProjectType>bundle</supportedProjectType> |
| 200 | <supportedProjectType>war</supportedProjectType> |
| 201 | </supportedProjectTypes> |
| 202 | </configuration> |
| 203 | </plugin> |
| 204 | </plugins> |
| 205 | </build> |
| 206 | |
| 207 | </project> |