| #set( $dummy = "" ) |
| #set( $date = $dummy.getClass().forName("java.util.Date").newInstance() ) |
| #set( $format = $dummy.getClass().forName("java.text.SimpleDateFormat").newInstance() ) |
| #set( $pattern = $format.applyPattern("yyyy") ) |
| #set( $year = $format.format($date) ) |
| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ Copyright ${year} Open Networking Foundation |
| ~ |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| ~ you may not use this file except in compliance with the License. |
| ~ You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| <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"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>${groupId}</groupId> |
| <artifactId>${artifactId}</artifactId> |
| <version>${version}</version> |
| <relativePath>../</relativePath> |
| </parent> |
| |
| <artifactId>${artifactId}-app</artifactId> |
| <packaging>bundle</packaging> |
| |
| <properties> |
| <onos.app.name>${package}.${artifactId}</onos.app.name> |
| <onos.app.title>${appNameTitle} App</onos.app.title> |
| <onos.app.origin>Foo, Inc.</onos.app.origin> |
| <onos.app.category>UI</onos.app.category> |
| <onos.app.url>http://onosproject.org</onos.app.url> |
| <onos.app.readme>ONOS OSGi GUI2 Custom-View bundle archetype.</onos.app.readme> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.onosproject</groupId> |
| <artifactId>onos-api</artifactId> |
| <version>${onos.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.onosproject</groupId> |
| <artifactId>onlab-osgi</artifactId> |
| <version>${onos.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Add a cross dependency on the gui app, as we want to copy the outputs below--> |
| <dependency> |
| <groupId>${groupId}</groupId> |
| <artifactId>${artifactId}-gui</artifactId> |
| <version>${version}</version> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.onosproject</groupId> |
| <artifactId>onos-api</artifactId> |
| <version>${onos.version}</version> |
| <scope>test</scope> |
| <classifier>tests</classifier> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.onosproject</groupId> |
| <artifactId>onos-maven-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>3.1.0</version> |
| <executions> |
| <execution> |
| <id>copy-resources</id> |
| <!-- here the phase you need --> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>src/main/resources</outputDirectory> |
| <resources> |
| <resource> |
| <directory>../web/${artifactId}-gui/dist/${artifactId}-gui</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |