blob: 8a159d042ebedfb385de22d3795131b968efb19c [file] [log] [blame]
Jian Lic6c76dc2016-01-26 14:22:51 -08001#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 Vachuska36be65f2015-12-08 12:36:15 -08006<?xml version="1.0" encoding="UTF-8"?>
7<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07008 ~ Copyright ${year} Open Networking Foundation
Thomas Vachuska36be65f2015-12-08 12:36:15 -08009 ~
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 Casconebcc61712019-11-18 15:56:51 -080022<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 Vachuska36be65f2015-12-08 12:36:15 -080025 <modelVersion>4.0.0</modelVersion>
26
Carmelo Cascone27b97122019-11-12 10:34:05 -080027 <parent>
28 <groupId>org.onosproject</groupId>
29 <artifactId>onos-dependencies</artifactId>
30 <version>${onosVersion}</version>
31 </parent>
32
Thomas Vachuska36be65f2015-12-08 12:36:15 -080033 <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 Vachuska36be65f2015-12-08 12:36:15 -080042 <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 Cascone27b97122019-11-12 10:34:05 -080056 <scope>provided</scope>
Thomas Vachuska36be65f2015-12-08 12:36:15 -080057 </dependency>
58
59 <dependency>
60 <groupId>org.onosproject</groupId>
61 <artifactId>onlab-osgi</artifactId>
62 <version>${onos.version}</version>
Carmelo Cascone27b97122019-11-12 10:34:05 -080063 <scope>provided</scope>
Thomas Vachuska36be65f2015-12-08 12:36:15 -080064 </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 Li9d616492016-03-09 10:52:49 -080096 <artifactId>javax.ws.rs-api</artifactId>
Thomas Vachuska36be65f2015-12-08 12:36:15 -080097 <scope>provided</scope>
98 </dependency>
Jian Li9d616492016-03-09 10:52:49 -080099
Thomas Vachuska36be65f2015-12-08 12:36:15 -0800100 <dependency>
Jian Li9d616492016-03-09 10:52:49 -0800101 <groupId>org.glassfish.jersey.containers</groupId>
102 <artifactId>jersey-container-servlet</artifactId>
Thomas Vachuska36be65f2015-12-08 12:36:15 -0800103 <scope>provided</scope>
104 </dependency>
105
106 <dependency>
107 <groupId>com.fasterxml.jackson.core</groupId>
108 <artifactId>jackson-databind</artifactId>
Thomas Vachuska36be65f2015-12-08 12:36:15 -0800109 <scope>provided</scope>
110 </dependency>
111
112 <dependency>
Carmelo Cascone27b97122019-11-12 10:34:05 -0800113 <groupId>com.fasterxml.jackson.core</groupId>
114 <artifactId>jackson-annotations</artifactId>
Thomas Vachuska36be65f2015-12-08 12:36:15 -0800115 <scope>provided</scope>
116 </dependency>
Carmelo Cascone27b97122019-11-12 10:34:05 -0800117
Thomas Vachuska36be65f2015-12-08 12:36:15 -0800118 <dependency>
119 <groupId>org.apache.karaf.shell</groupId>
120 <artifactId>org.apache.karaf.shell.console</artifactId>
Thomas Vachuska36be65f2015-12-08 12:36:15 -0800121 <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 Vachuska36be65f2015-12-08 12:36:15 -0800130 <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 Vachuska36be65f2015-12-08 12:36:15 -0800137 <Import-Package>
Brian O'Connora450bd02016-04-04 14:00:37 -0700138 *,org.glassfish.jersey.servlet
Thomas Vachuska36be65f2015-12-08 12:36:15 -0800139 </Import-Package>
140 <Web-ContextPath>${web.context}</Web-ContextPath>
141 </instructions>
142 </configuration>
143 </plugin>
144 <plugin>
HIGUCHI Yuta9caa3a02016-01-09 23:17:54 -0800145 <groupId>org.onosproject</groupId>
146 <artifactId>onos-maven-plugin</artifactId>
HIGUCHI Yuta9caa3a02016-01-09 23:17:54 -0800147 </plugin>
Carmelo Casconebcc61712019-11-18 15:56:51 -0800148 <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 Vachuska36be65f2015-12-08 12:36:15 -0800157 </plugins>
158 </build>
159
160</project>