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 | fc7f22d | 2014-12-04 11:07:01 -0800 | [diff] [blame] | 6 | <?xml version="1.0" encoding="UTF-8"?> |
| 7 | <!-- |
Jian Li | c6c76dc | 2016-01-26 14:22:51 -0800 | [diff] [blame] | 8 | ~ Copyright ${year} Open Networking Laboratory |
Thomas Vachuska | fc7f22d | 2014-12-04 11:07:01 -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 | --> |
| 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 | <groupId>${groupId}</groupId> |
| 26 | <artifactId>${artifactId}</artifactId> |
| 27 | <version>${version}</version> |
| 28 | <packaging>bundle</packaging> |
| 29 | |
| 30 | <description>ONOS OSGi bundle archetype</description> |
| 31 | <url>http://onosproject.org</url> |
| 32 | |
| 33 | <properties> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 34 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
Brian O'Connor | e642f7c | 2016-05-23 18:33:04 -0700 | [diff] [blame] | 35 | <onos.version>1.7.0-SNAPSHOT</onos.version> |
Thomas Vachuska | a2ae422 | 2015-04-29 18:42:09 -0700 | [diff] [blame] | 36 | <!-- Uncomment to generate ONOS app from this module. |
| 37 | <onos.app.name>org.foo.app</onos.app.name> |
Simon Hunt | afae2f7 | 2016-03-04 21:18:23 -0800 | [diff] [blame] | 38 | <onos.app.title>Foo App</onos.app.title> |
Thomas Vachuska | a2ae422 | 2015-04-29 18:42:09 -0700 | [diff] [blame] | 39 | <onos.app.origin>Foo, Inc.</onos.app.origin> |
Jian Li | ed627a5 | 2016-01-19 14:29:18 -0800 | [diff] [blame] | 40 | <onos.app.category>default</onos.app.category> |
| 41 | <onos.app.url>http://onosproject.org</onos.app.url> |
| 42 | <onos.app.readme>ONOS OSGi bundle archetype.</onos.app.readme> |
Thomas Vachuska | a2ae422 | 2015-04-29 18:42:09 -0700 | [diff] [blame] | 43 | --> |
Thomas Vachuska | fc7f22d | 2014-12-04 11:07:01 -0800 | [diff] [blame] | 44 | </properties> |
| 45 | |
| 46 | <dependencies> |
| 47 | <dependency> |
| 48 | <groupId>org.onosproject</groupId> |
| 49 | <artifactId>onos-api</artifactId> |
| 50 | <version>${onos.version}</version> |
| 51 | </dependency> |
| 52 | |
| 53 | <dependency> |
| 54 | <groupId>org.onosproject</groupId> |
| 55 | <artifactId>onlab-osgi</artifactId> |
| 56 | <version>${onos.version}</version> |
| 57 | </dependency> |
| 58 | |
| 59 | <dependency> |
| 60 | <groupId>junit</groupId> |
| 61 | <artifactId>junit</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 62 | <version>4.12</version> |
Thomas Vachuska | fc7f22d | 2014-12-04 11:07:01 -0800 | [diff] [blame] | 63 | <scope>test</scope> |
| 64 | </dependency> |
| 65 | |
| 66 | <dependency> |
| 67 | <groupId>org.onosproject</groupId> |
| 68 | <artifactId>onos-api</artifactId> |
| 69 | <version>${onos.version}</version> |
| 70 | <scope>test</scope> |
| 71 | <classifier>tests</classifier> |
| 72 | </dependency> |
| 73 | |
| 74 | <dependency> |
| 75 | <groupId>org.apache.felix</groupId> |
| 76 | <artifactId>org.apache.felix.scr.annotations</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 77 | <version>1.9.12</version> |
Thomas Vachuska | fc7f22d | 2014-12-04 11:07:01 -0800 | [diff] [blame] | 78 | <scope>provided</scope> |
| 79 | </dependency> |
| 80 | </dependencies> |
| 81 | |
| 82 | <build> |
| 83 | <plugins> |
| 84 | <plugin> |
| 85 | <groupId>org.apache.felix</groupId> |
| 86 | <artifactId>maven-bundle-plugin</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 87 | <version>3.0.1</version> |
Thomas Vachuska | fc7f22d | 2014-12-04 11:07:01 -0800 | [diff] [blame] | 88 | <extensions>true</extensions> |
| 89 | </plugin> |
Brian O'Connor | 0b35191 | 2014-12-11 14:40:31 -0800 | [diff] [blame] | 90 | <plugin> |
| 91 | <groupId>org.apache.maven.plugins</groupId> |
| 92 | <artifactId>maven-compiler-plugin</artifactId> |
| 93 | <version>2.5.1</version> |
| 94 | <configuration> |
| 95 | <source>1.8</source> |
| 96 | <target>1.8</target> |
| 97 | </configuration> |
| 98 | </plugin> |
Thomas Vachuska | fc7f22d | 2014-12-04 11:07:01 -0800 | [diff] [blame] | 99 | <plugin> |
| 100 | <groupId>org.apache.felix</groupId> |
| 101 | <artifactId>maven-scr-plugin</artifactId> |
HIGUCHI Yuta | 9caa3a0 | 2016-01-09 23:17:54 -0800 | [diff] [blame] | 102 | <version>1.21.0</version> |
Thomas Vachuska | fc7f22d | 2014-12-04 11:07:01 -0800 | [diff] [blame] | 103 | <executions> |
| 104 | <execution> |
| 105 | <id>generate-scr-srcdescriptor</id> |
| 106 | <goals> |
| 107 | <goal>scr</goal> |
| 108 | </goals> |
| 109 | </execution> |
| 110 | </executions> |
| 111 | <configuration> |
| 112 | <supportedProjectTypes> |
| 113 | <supportedProjectType>bundle</supportedProjectType> |
| 114 | <supportedProjectType>war</supportedProjectType> |
| 115 | </supportedProjectTypes> |
| 116 | </configuration> |
| 117 | </plugin> |
Thomas Vachuska | 3ad8d4b | 2015-04-27 10:52:08 -0700 | [diff] [blame] | 118 | <plugin> |
| 119 | <groupId>org.onosproject</groupId> |
| 120 | <artifactId>onos-maven-plugin</artifactId> |
Thomas Vachuska | 5064bac | 2016-08-09 13:31:44 -0700 | [diff] [blame] | 121 | <version>1.10</version> |
Thomas Vachuska | 3ad8d4b | 2015-04-27 10:52:08 -0700 | [diff] [blame] | 122 | <executions> |
| 123 | <execution> |
| 124 | <id>cfg</id> |
| 125 | <phase>generate-resources</phase> |
| 126 | <goals> |
| 127 | <goal>cfg</goal> |
| 128 | </goals> |
| 129 | </execution> |
| 130 | <execution> |
Thomas Vachuska | 8f2d6e0 | 2015-08-28 10:29:15 -0700 | [diff] [blame] | 131 | <id>swagger</id> |
| 132 | <phase>generate-sources</phase> |
| 133 | <goals> |
| 134 | <goal>swagger</goal> |
| 135 | </goals> |
| 136 | </execution> |
| 137 | <execution> |
Thomas Vachuska | 3ad8d4b | 2015-04-27 10:52:08 -0700 | [diff] [blame] | 138 | <id>app</id> |
| 139 | <phase>package</phase> |
| 140 | <goals> |
| 141 | <goal>app</goal> |
| 142 | </goals> |
| 143 | </execution> |
| 144 | </executions> |
| 145 | </plugin> |
Thomas Vachuska | fc7f22d | 2014-12-04 11:07:01 -0800 | [diff] [blame] | 146 | </plugins> |
| 147 | </build> |
| 148 | |
| 149 | </project> |