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 | --> |
Carmelo Cascone | bcc6171 | 2019-11-18 15:56:51 -0800 | [diff] [blame] | 22 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 23 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 25 | <modelVersion>4.0.0</modelVersion> |
| 26 | |
Carmelo Cascone | 27b9712 | 2019-11-12 10:34:05 -0800 | [diff] [blame] | 27 | <parent> |
| 28 | <groupId>org.onosproject</groupId> |
| 29 | <artifactId>onos-dependencies</artifactId> |
| 30 | <version>${onosVersion}</version> |
| 31 | </parent> |
| 32 | |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 33 | <groupId>${groupId}</groupId> |
| 34 | <artifactId>${artifactId}</artifactId> |
| 35 | <version>${version}</version> |
| 36 | <packaging>bundle</packaging> |
| 37 | |
| 38 | <description>ONOS REST API bundle archetype</description> |
| 39 | <url>http://onosproject.org</url> |
| 40 | |
| 41 | <properties> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 42 | <web.context>/onos/${artifactId}</web.context> |
| 43 | <api.version>1.0.0</api.version> |
| 44 | <api.title>Sample app REST API</api.title> |
| 45 | <api.description> |
| 46 | Sample application REST API |
| 47 | </api.description> |
| 48 | <api.package>${package}</api.package> |
| 49 | </properties> |
| 50 | |
| 51 | <dependencies> |
| 52 | <dependency> |
| 53 | <groupId>org.onosproject</groupId> |
| 54 | <artifactId>onos-api</artifactId> |
| 55 | <version>${onos.version}</version> |
Carmelo Cascone | 27b9712 | 2019-11-12 10:34:05 -0800 | [diff] [blame] | 56 | <scope>provided</scope> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 57 | </dependency> |
| 58 | |
| 59 | <dependency> |
| 60 | <groupId>org.onosproject</groupId> |
| 61 | <artifactId>onlab-osgi</artifactId> |
| 62 | <version>${onos.version}</version> |
Carmelo Cascone | 27b9712 | 2019-11-12 10:34:05 -0800 | [diff] [blame] | 63 | <scope>provided</scope> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 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> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 97 | <scope>provided</scope> |
| 98 | </dependency> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 99 | |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 100 | <dependency> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 101 | <groupId>org.glassfish.jersey.containers</groupId> |
| 102 | <artifactId>jersey-container-servlet</artifactId> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 103 | <scope>provided</scope> |
| 104 | </dependency> |
| 105 | |
| 106 | <dependency> |
| 107 | <groupId>com.fasterxml.jackson.core</groupId> |
| 108 | <artifactId>jackson-databind</artifactId> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 109 | <scope>provided</scope> |
| 110 | </dependency> |
| 111 | |
| 112 | <dependency> |
Carmelo Cascone | 27b9712 | 2019-11-12 10:34:05 -0800 | [diff] [blame] | 113 | <groupId>com.fasterxml.jackson.core</groupId> |
| 114 | <artifactId>jackson-annotations</artifactId> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 115 | <scope>provided</scope> |
| 116 | </dependency> |
Carmelo Cascone | 27b9712 | 2019-11-12 10:34:05 -0800 | [diff] [blame] | 117 | |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 118 | <dependency> |
| 119 | <groupId>org.apache.karaf.shell</groupId> |
| 120 | <artifactId>org.apache.karaf.shell.console</artifactId> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 121 | <scope>provided</scope> |
| 122 | </dependency> |
| 123 | </dependencies> |
| 124 | |
| 125 | <build> |
| 126 | <plugins> |
| 127 | <plugin> |
| 128 | <groupId>org.apache.felix</groupId> |
| 129 | <artifactId>maven-bundle-plugin</artifactId> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 130 | <configuration> |
| 131 | <instructions> |
| 132 | <_wab>src/main/webapp/</_wab> |
| 133 | <Include-Resource> |
| 134 | WEB-INF/classes/apidoc/swagger.json=target/swagger.json, |
| 135 | {maven-resources} |
| 136 | </Include-Resource> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 137 | <Import-Package> |
Brian O'Connor | a450bd0 | 2016-04-04 14:00:37 -0700 | [diff] [blame] | 138 | *,org.glassfish.jersey.servlet |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 139 | </Import-Package> |
| 140 | <Web-ContextPath>${web.context}</Web-ContextPath> |
| 141 | </instructions> |
| 142 | </configuration> |
| 143 | </plugin> |
| 144 | <plugin> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 145 | <groupId>org.onosproject</groupId> |
| 146 | <artifactId>onos-maven-plugin</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 147 | </plugin> |
Carmelo Cascone | bcc6171 | 2019-11-18 15:56:51 -0800 | [diff] [blame] | 148 | <plugin> |
| 149 | <groupId>org.apache.maven.plugins</groupId> |
| 150 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 151 | <!-- Uncomment to disable checkstyle validation |
| 152 | <configuration> |
| 153 | <skip>true</skip> |
| 154 | </configuration> |
| 155 | --> |
| 156 | </plugin> |
Thomas Vachuska | 36be65f | 2015-12-08 12:36:15 -0800 | [diff] [blame] | 157 | </plugins> |
| 158 | </build> |
| 159 | |
| 160 | </project> |