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 | <!-- |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 8 | ~ Copyright ${year} Open Networking Foundation |
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> |
ONOS Jenkins User | c5ae209 | 2018-08-21 00:47:14 +0000 | [diff] [blame] | 35 | <onos.version>1.14.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> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 96 | <artifactId>javax.ws.rs-api</artifactId> |
Yuta HIGUCHI | c2af966 | 2017-12-08 10:34:01 -0800 | [diff] [blame] | 97 | <version>2.1</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 98 | <scope>provided</scope> |
| 99 | </dependency> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 100 | |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 101 | <dependency> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 102 | <groupId>org.glassfish.jersey.containers</groupId> |
| 103 | <artifactId>jersey-container-servlet</artifactId> |
Jian Li | 5d505f24 | 2018-02-24 01:45:31 +0900 | [diff] [blame] | 104 | <version>2.26</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 105 | <scope>provided</scope> |
| 106 | </dependency> |
| 107 | |
| 108 | <dependency> |
| 109 | <groupId>com.fasterxml.jackson.core</groupId> |
| 110 | <artifactId>jackson-databind</artifactId> |
Jian Li | 43f103d | 2017-02-03 02:00:35 +0900 | [diff] [blame] | 111 | <version>2.8.6</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 112 | <scope>provided</scope> |
| 113 | </dependency> |
| 114 | <dependency> |
| 115 | <groupId>com.fasterxml.jackson.core</groupId> |
| 116 | <artifactId>jackson-annotations</artifactId> |
Jian Li | 43f103d | 2017-02-03 02:00:35 +0900 | [diff] [blame] | 117 | <version>2.8.6</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 118 | <scope>provided</scope> |
| 119 | </dependency> |
| 120 | |
| 121 | <dependency> |
| 122 | <groupId>org.osgi</groupId> |
| 123 | <artifactId>org.osgi.core</artifactId> |
Jian Li | 3276d15 | 2016-04-13 15:30:32 -0700 | [diff] [blame] | 124 | <version>5.0.0</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.felix</groupId> |
| 129 | <artifactId>org.apache.felix.scr.annotations</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 130 | <version>1.9.12</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 131 | <scope>provided</scope> |
| 132 | </dependency> |
| 133 | <dependency> |
| 134 | <groupId>org.apache.karaf.shell</groupId> |
| 135 | <artifactId>org.apache.karaf.shell.console</artifactId> |
Jon Hall | b84df5d | 2017-01-31 11:19:48 -0800 | [diff] [blame] | 136 | <version>3.0.8</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 137 | <scope>provided</scope> |
| 138 | </dependency> |
| 139 | </dependencies> |
| 140 | |
| 141 | <build> |
| 142 | <plugins> |
| 143 | <plugin> |
| 144 | <groupId>org.apache.felix</groupId> |
| 145 | <artifactId>maven-bundle-plugin</artifactId> |
Yuta HIGUCHI | 6735683 | 2018-02-02 14:22:03 -0800 | [diff] [blame] | 146 | <version>3.3.0</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 147 | <extensions>true</extensions> |
| 148 | <configuration> |
| 149 | <instructions> |
| 150 | <_wab>src/main/webapp/</_wab> |
| 151 | <Include-Resource> |
| 152 | WEB-INF/classes/apidoc/swagger.json=target/swagger.json, |
| 153 | {maven-resources} |
| 154 | </Include-Resource> |
| 155 | <Bundle-SymbolicName> |
| 156 | ${project.groupId}.${project.artifactId} |
| 157 | </Bundle-SymbolicName> |
| 158 | <Import-Package> |
Brian O'Connor | a450bd0 | 2016-04-04 14:00:37 -0700 | [diff] [blame] | 159 | *,org.glassfish.jersey.servlet |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 160 | </Import-Package> |
| 161 | <Web-ContextPath>${web.context}</Web-ContextPath> |
| 162 | </instructions> |
| 163 | </configuration> |
| 164 | </plugin> |
| 165 | <plugin> |
| 166 | <groupId>org.apache.maven.plugins</groupId> |
| 167 | <artifactId>maven-compiler-plugin</artifactId> |
Yuta HIGUCHI | 6735683 | 2018-02-02 14:22:03 -0800 | [diff] [blame] | 168 | <version>3.7.0</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 169 | <configuration> |
| 170 | <source>1.8</source> |
| 171 | <target>1.8</target> |
| 172 | </configuration> |
| 173 | </plugin> |
| 174 | <plugin> |
| 175 | <groupId>org.apache.felix</groupId> |
| 176 | <artifactId>maven-scr-plugin</artifactId> |
Yuta HIGUCHI | 6735683 | 2018-02-02 14:22:03 -0800 | [diff] [blame] | 177 | <version>1.24.0</version> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 178 | <executions> |
| 179 | <execution> |
| 180 | <id>generate-scr-srcdescriptor</id> |
| 181 | <goals> |
| 182 | <goal>scr</goal> |
| 183 | </goals> |
| 184 | </execution> |
| 185 | </executions> |
| 186 | <configuration> |
| 187 | <supportedProjectTypes> |
| 188 | <supportedProjectType>bundle</supportedProjectType> |
| 189 | <supportedProjectType>war</supportedProjectType> |
| 190 | </supportedProjectTypes> |
| 191 | </configuration> |
| 192 | </plugin> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 193 | <plugin> |
| 194 | <groupId>org.onosproject</groupId> |
| 195 | <artifactId>onos-maven-plugin</artifactId> |
Yuta HIGUCHI | 6735683 | 2018-02-02 14:22:03 -0800 | [diff] [blame] | 196 | <version>1.11</version> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 197 | <executions> |
| 198 | <execution> |
| 199 | <id>cfg</id> |
| 200 | <phase>generate-resources</phase> |
| 201 | <goals> |
| 202 | <goal>cfg</goal> |
| 203 | </goals> |
| 204 | </execution> |
| 205 | <execution> |
| 206 | <id>swagger</id> |
| 207 | <phase>generate-sources</phase> |
| 208 | <goals> |
| 209 | <goal>swagger</goal> |
| 210 | </goals> |
| 211 | </execution> |
| 212 | <execution> |
| 213 | <id>app</id> |
| 214 | <phase>package</phase> |
| 215 | <goals> |
| 216 | <goal>app</goal> |
| 217 | </goals> |
| 218 | </execution> |
| 219 | </executions> |
| 220 | </plugin> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 221 | </plugins> |
| 222 | </build> |
| 223 | |
| 224 | </project> |