Jian Li | c6c76dc | 2016-01-26 14:22:51 -0800 | [diff] [blame] | 1 | #set( $dummy = "" ) |
| 2 | #set( $date = $dummy.getClass().forName("java.util.Date").newInstance() ) |
| 3 | #set( $format = $dummy.getClass().forName("java.text.SimpleDateFormat").newInstance() ) |
| 4 | #set( $pattern = $format.applyPattern("yyyy") ) |
| 5 | #set( $year = $format.format($date) ) |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 6 | <?xml version="1.0" encoding="UTF-8"?> |
| 7 | <!-- |
Jian Li | c6c76dc | 2016-01-26 14:22:51 -0800 | [diff] [blame] | 8 | ~ Copyright ${year} Open Networking Laboratory |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 9 | ~ |
| 10 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 11 | ~ you may not use this file except in compliance with the License. |
| 12 | ~ You may obtain a copy of the License at |
| 13 | ~ |
| 14 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 15 | ~ |
| 16 | ~ Unless required by applicable law or agreed to in writing, software |
| 17 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 18 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 19 | ~ See the License for the specific language governing permissions and |
| 20 | ~ limitations under the License. |
| 21 | --> |
| 22 | <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"> |
| 23 | <modelVersion>4.0.0</modelVersion> |
| 24 | |
| 25 | <groupId>${groupId}</groupId> |
| 26 | <artifactId>${artifactId}</artifactId> |
| 27 | <version>${version}</version> |
| 28 | <packaging>bundle</packaging> |
| 29 | |
| 30 | <description>ONOS REST API bundle archetype</description> |
| 31 | <url>http://onosproject.org</url> |
| 32 | |
| 33 | <properties> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 34 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
Brian O'Connor | 955c316 | 2016-03-10 15:27:19 -0800 | [diff] [blame] | 35 | <onos.version>1.6.0-SNAPSHOT</onos.version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 36 | |
| 37 | <web.context>/onos/${artifactId}</web.context> |
| 38 | <api.version>1.0.0</api.version> |
| 39 | <api.title>Sample app REST API</api.title> |
| 40 | <api.description> |
| 41 | Sample application REST API |
| 42 | </api.description> |
| 43 | <api.package>${package}</api.package> |
| 44 | </properties> |
| 45 | |
| 46 | <dependencies> |
| 47 | <dependency> |
| 48 | <groupId>org.onosproject</groupId> |
| 49 | <artifactId>onos-api</artifactId> |
| 50 | <version>${onos.version}</version> |
| 51 | </dependency> |
| 52 | |
| 53 | <dependency> |
| 54 | <groupId>org.onosproject</groupId> |
| 55 | <artifactId>onlab-osgi</artifactId> |
| 56 | <version>${onos.version}</version> |
| 57 | </dependency> |
| 58 | |
| 59 | <dependency> |
| 60 | <groupId>junit</groupId> |
| 61 | <artifactId>junit</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 62 | <version>4.12</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 63 | <scope>test</scope> |
| 64 | </dependency> |
| 65 | |
| 66 | <dependency> |
| 67 | <groupId>org.onosproject</groupId> |
| 68 | <artifactId>onos-cli</artifactId> |
| 69 | <version>${onos.version}</version> |
| 70 | <scope>provided</scope> |
| 71 | </dependency> |
| 72 | |
| 73 | <dependency> |
| 74 | <groupId>org.onosproject</groupId> |
| 75 | <artifactId>onos-api</artifactId> |
| 76 | <version>${onos.version}</version> |
| 77 | <scope>test</scope> |
| 78 | <classifier>tests</classifier> |
| 79 | </dependency> |
| 80 | |
| 81 | <dependency> |
| 82 | <groupId>org.onosproject</groupId> |
| 83 | <artifactId>onos-rest</artifactId> |
| 84 | <version>${onos.version}</version> |
| 85 | <scope>provided</scope> |
| 86 | </dependency> |
| 87 | <dependency> |
| 88 | <groupId>org.onosproject</groupId> |
| 89 | <artifactId>onlab-rest</artifactId> |
| 90 | <version>${onos.version}</version> |
| 91 | <scope>provided</scope> |
| 92 | </dependency> |
| 93 | |
| 94 | <dependency> |
| 95 | <groupId>javax.ws.rs</groupId> |
| 96 | <artifactId>jsr311-api</artifactId> |
| 97 | <version>1.1.1</version> |
| 98 | <scope>provided</scope> |
| 99 | </dependency> |
| 100 | <dependency> |
| 101 | <groupId>com.sun.jersey</groupId> |
| 102 | <artifactId>jersey-servlet</artifactId> |
| 103 | <version>1.19</version> |
| 104 | <scope>provided</scope> |
| 105 | </dependency> |
| 106 | |
| 107 | <dependency> |
| 108 | <groupId>com.fasterxml.jackson.core</groupId> |
| 109 | <artifactId>jackson-databind</artifactId> |
Jian Li | a9a1bbd | 2016-01-22 00:34:49 -0800 | [diff] [blame] | 110 | <version>2.7.0</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 111 | <scope>provided</scope> |
| 112 | </dependency> |
| 113 | <dependency> |
| 114 | <groupId>com.fasterxml.jackson.core</groupId> |
| 115 | <artifactId>jackson-annotations</artifactId> |
Jian Li | a9a1bbd | 2016-01-22 00:34:49 -0800 | [diff] [blame] | 116 | <version>2.7.0</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 117 | <scope>provided</scope> |
| 118 | </dependency> |
| 119 | |
| 120 | <dependency> |
| 121 | <groupId>org.osgi</groupId> |
| 122 | <artifactId>org.osgi.core</artifactId> |
| 123 | <version>4.3.1</version> |
| 124 | <scope>provided</scope> |
| 125 | </dependency> |
| 126 | <dependency> |
| 127 | <groupId>org.apache.felix</groupId> |
| 128 | <artifactId>org.apache.felix.scr.annotations</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 129 | <version>1.9.12</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 130 | <scope>provided</scope> |
| 131 | </dependency> |
| 132 | <dependency> |
| 133 | <groupId>org.apache.karaf.shell</groupId> |
| 134 | <artifactId>org.apache.karaf.shell.console</artifactId> |
Jian Li | 1159916 | 2016-01-15 15:46:16 -0800 | [diff] [blame] | 135 | <version>3.0.5</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 136 | <scope>provided</scope> |
| 137 | </dependency> |
| 138 | </dependencies> |
| 139 | |
| 140 | <build> |
| 141 | <plugins> |
| 142 | <plugin> |
| 143 | <groupId>org.apache.felix</groupId> |
| 144 | <artifactId>maven-bundle-plugin</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 145 | <version>3.0.1</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 146 | <extensions>true</extensions> |
| 147 | <configuration> |
| 148 | <instructions> |
| 149 | <_wab>src/main/webapp/</_wab> |
| 150 | <Include-Resource> |
| 151 | WEB-INF/classes/apidoc/swagger.json=target/swagger.json, |
| 152 | {maven-resources} |
| 153 | </Include-Resource> |
| 154 | <Bundle-SymbolicName> |
| 155 | ${project.groupId}.${project.artifactId} |
| 156 | </Bundle-SymbolicName> |
| 157 | <Import-Package> |
| 158 | org.slf4j, |
| 159 | org.osgi.framework, |
| 160 | javax.ws.rs, |
| 161 | javax.ws.rs.core, |
| 162 | com.sun.jersey.api.core, |
| 163 | com.sun.jersey.spi.container.servlet, |
| 164 | com.sun.jersey.server.impl.container.servlet, |
| 165 | com.fasterxml.jackson.databind, |
| 166 | com.fasterxml.jackson.databind.node, |
| 167 | com.fasterxml.jackson.core, |
| 168 | org.apache.karaf.shell.commands, |
| 169 | org.apache.karaf.shell.console, |
| 170 | com.google.common.*, |
| 171 | org.onlab.packet.*, |
| 172 | org.onlab.rest.*, |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 173 | org.onlab.osgi.*, |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 174 | org.onlab.util.*, |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 175 | org.onosproject.*, |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 176 | org.jboss.netty.util.* |
| 177 | </Import-Package> |
| 178 | <Web-ContextPath>${web.context}</Web-ContextPath> |
| 179 | </instructions> |
| 180 | </configuration> |
| 181 | </plugin> |
| 182 | <plugin> |
| 183 | <groupId>org.apache.maven.plugins</groupId> |
| 184 | <artifactId>maven-compiler-plugin</artifactId> |
| 185 | <version>2.5.1</version> |
| 186 | <configuration> |
| 187 | <source>1.8</source> |
| 188 | <target>1.8</target> |
| 189 | </configuration> |
| 190 | </plugin> |
| 191 | <plugin> |
| 192 | <groupId>org.apache.felix</groupId> |
| 193 | <artifactId>maven-scr-plugin</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 194 | <version>1.21.0</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 195 | <executions> |
| 196 | <execution> |
| 197 | <id>generate-scr-srcdescriptor</id> |
| 198 | <goals> |
| 199 | <goal>scr</goal> |
| 200 | </goals> |
| 201 | </execution> |
| 202 | </executions> |
| 203 | <configuration> |
| 204 | <supportedProjectTypes> |
| 205 | <supportedProjectType>bundle</supportedProjectType> |
| 206 | <supportedProjectType>war</supportedProjectType> |
| 207 | </supportedProjectTypes> |
| 208 | </configuration> |
| 209 | </plugin> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 210 | <plugin> |
| 211 | <groupId>org.onosproject</groupId> |
| 212 | <artifactId>onos-maven-plugin</artifactId> |
Thomas Vachuska | 551e0ba | 2016-03-11 12:33:45 -0800 | [diff] [blame] | 213 | <version>1.9</version> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 214 | <executions> |
| 215 | <execution> |
| 216 | <id>cfg</id> |
| 217 | <phase>generate-resources</phase> |
| 218 | <goals> |
| 219 | <goal>cfg</goal> |
| 220 | </goals> |
| 221 | </execution> |
| 222 | <execution> |
| 223 | <id>swagger</id> |
| 224 | <phase>generate-sources</phase> |
| 225 | <goals> |
| 226 | <goal>swagger</goal> |
| 227 | </goals> |
| 228 | </execution> |
| 229 | <execution> |
| 230 | <id>app</id> |
| 231 | <phase>package</phase> |
| 232 | <goals> |
| 233 | <goal>app</goal> |
| 234 | </goals> |
| 235 | </execution> |
| 236 | </executions> |
| 237 | </plugin> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 238 | </plugins> |
| 239 | </build> |
| 240 | |
| 241 | </project> |