blob: 029257351504ddc0d1a130a3fb115ec182e662bb [file] [log] [blame]
Sean Condona36f65c2019-05-20 08:21:41 +01001#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) )
6<?xml version="1.0" encoding="UTF-8"?>
7<!--
8 ~ Copyright ${year} Open Networking Foundation
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 <parent>
26 <groupId>${groupId}</groupId>
27 <artifactId>${artifactId}</artifactId>
28 <version>${version}</version>
29 <relativePath>../</relativePath>
30 </parent>
31
32 <artifactId>${artifactId}-app</artifactId>
33 <packaging>bundle</packaging>
34
35 <properties>
36 <onos.app.name>${package}.${artifactID}</onos.app.name>
37 <onos.app.title>Foo App</onos.app.title>
38 <onos.app.origin>Foo, Inc.</onos.app.origin>
39 <onos.app.category>UI</onos.app.category>
40 <onos.app.url>http://onosproject.org</onos.app.url>
41 <onos.app.readme>ONOS OSGi GUI2 Custom-View bundle archetype.</onos.app.readme>
42 </properties>
43
44 <dependencies>
45 <dependency>
46 <groupId>org.onosproject</groupId>
47 <artifactId>onos-api</artifactId>
48 <version>${onos.version}</version>
49 </dependency>
50
51 <dependency>
52 <groupId>org.onosproject</groupId>
53 <artifactId>onlab-osgi</artifactId>
54 <version>${onos.version}</version>
55 </dependency>
56
57 <dependency>
58 <groupId>junit</groupId>
59 <artifactId>junit</artifactId>
60 <version>4.12</version>
61 <scope>test</scope>
62 </dependency>
63
64 <dependency>
65 <groupId>org.onosproject</groupId>
66 <artifactId>onos-api</artifactId>
67 <version>${onos.version}</version>
68 <scope>test</scope>
69 <classifier>tests</classifier>
70 </dependency>
71
72 <dependency>
73 <groupId>org.osgi</groupId>
74 <artifactId>org.osgi.service.component.annotations</artifactId>
75 <version>1.4.0</version>
76 <scope>provided</scope>
77 </dependency>
78 </dependencies>
79
80 <build>
81 <plugins>
82 <plugin>
83 <groupId>org.apache.felix</groupId>
84 <artifactId>maven-bundle-plugin</artifactId>
85 <version>3.5.0</version>
86 <extensions>true</extensions>
87 </plugin>
88 <plugin>
89 <groupId>org.apache.maven.plugins</groupId>
90 <artifactId>maven-compiler-plugin</artifactId>
91 <version>3.8.0</version>
92 <configuration>
93 <source>1.8</source>
94 <target>1.8</target>
95 </configuration>
96 </plugin>
97 <plugin>
98 <groupId>org.apache.felix</groupId>
99 <artifactId>maven-scr-plugin</artifactId>
100 <version>1.26.0</version>
101 <configuration>
102 <supportedProjectTypes>
103 <supportedProjectType>bundle</supportedProjectType>
104 <supportedProjectType>war</supportedProjectType>
105 </supportedProjectTypes>
106 </configuration>
107 </plugin>
108 <plugin>
109 <groupId>org.onosproject</groupId>
110 <artifactId>onos-maven-plugin</artifactId>
111 <version>2.0</version>
112 <executions>
113 <execution>
114 <id>cfg</id>
115 <phase>generate-resources</phase>
116 <goals>
117 <goal>cfg</goal>
118 </goals>
119 </execution>
120 <execution>
121 <id>swagger</id>
122 <phase>generate-sources</phase>
123 <goals>
124 <goal>swagger</goal>
125 </goals>
126 </execution>
127 <execution>
128 <id>app</id>
129 <phase>package</phase>
130 <goals>
131 <goal>app</goal>
132 </goals>
133 </execution>
134 </executions>
135 </plugin>
136 </plugins>
137 </build>
138
139</project>