Sean Condon | a36f65c | 2019-05-20 08:21:41 +0100 | [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) ) |
| 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> |
Sean Condon | 27f06da | 2019-05-25 17:02:14 +0100 | [diff] [blame] | 36 | <onos.app.name>${package}.${artifactId}</onos.app.name> |
Sean Condon | 13f42b7 | 2019-05-31 16:17:52 +0100 | [diff] [blame] | 37 | <onos.app.title>${appNameTitle} App</onos.app.title> |
Sean Condon | a36f65c | 2019-05-20 08:21:41 +0100 | [diff] [blame] | 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> |
Carmelo Cascone | 27b9712 | 2019-11-12 10:34:05 -0800 | [diff] [blame] | 49 | <scope>provided</scope> |
Sean Condon | a36f65c | 2019-05-20 08:21:41 +0100 | [diff] [blame] | 50 | </dependency> |
| 51 | |
| 52 | <dependency> |
| 53 | <groupId>org.onosproject</groupId> |
| 54 | <artifactId>onlab-osgi</artifactId> |
| 55 | <version>${onos.version}</version> |
Carmelo Cascone | 27b9712 | 2019-11-12 10:34:05 -0800 | [diff] [blame] | 56 | <scope>provided</scope> |
Sean Condon | a36f65c | 2019-05-20 08:21:41 +0100 | [diff] [blame] | 57 | </dependency> |
| 58 | |
Sean Condon | 6a6f9a0 | 2020-01-09 14:09:36 +0000 | [diff] [blame] | 59 | <!-- Add a cross dependency on the gui app, as we want to copy the outputs below--> |
| 60 | <dependency> |
| 61 | <groupId>${groupId}</groupId> |
| 62 | <artifactId>${artifactId}-gui</artifactId> |
| 63 | <version>${version}</version> |
| 64 | <scope>compile</scope> |
| 65 | </dependency> |
| 66 | |
Sean Condon | a36f65c | 2019-05-20 08:21:41 +0100 | [diff] [blame] | 67 | <dependency> |
| 68 | <groupId>org.onosproject</groupId> |
| 69 | <artifactId>onos-api</artifactId> |
| 70 | <version>${onos.version}</version> |
| 71 | <scope>test</scope> |
| 72 | <classifier>tests</classifier> |
| 73 | </dependency> |
Sean Condon | a36f65c | 2019-05-20 08:21:41 +0100 | [diff] [blame] | 74 | </dependencies> |
| 75 | |
| 76 | <build> |
| 77 | <plugins> |
| 78 | <plugin> |
Sean Condon | a36f65c | 2019-05-20 08:21:41 +0100 | [diff] [blame] | 79 | <groupId>org.onosproject</groupId> |
| 80 | <artifactId>onos-maven-plugin</artifactId> |
Sean Condon | a36f65c | 2019-05-20 08:21:41 +0100 | [diff] [blame] | 81 | </plugin> |
Sean Condon | 6a6f9a0 | 2020-01-09 14:09:36 +0000 | [diff] [blame] | 82 | <plugin> |
| 83 | <artifactId>maven-resources-plugin</artifactId> |
| 84 | <version>3.1.0</version> |
| 85 | <executions> |
| 86 | <execution> |
| 87 | <id>copy-resources</id> |
| 88 | <!-- here the phase you need --> |
| 89 | <phase>process-resources</phase> |
| 90 | <goals> |
| 91 | <goal>copy-resources</goal> |
| 92 | </goals> |
| 93 | <configuration> |
| 94 | <outputDirectory>src/main/resources</outputDirectory> |
| 95 | <resources> |
| 96 | <resource> |
| 97 | <directory>../web/${artifactId}-gui/dist/${artifactId}-gui</directory> |
| 98 | <filtering>true</filtering> |
| 99 | </resource> |
| 100 | </resources> |
| 101 | </configuration> |
| 102 | </execution> |
| 103 | </executions> |
| 104 | </plugin> |
Sean Condon | a36f65c | 2019-05-20 08:21:41 +0100 | [diff] [blame] | 105 | </plugins> |
| 106 | </build> |
| 107 | |
| 108 | </project> |