Yuta HIGUCHI | 6771ef6 | 2017-12-19 11:37:48 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | <modelVersion>4.0.0</modelVersion> |
| 5 | <groupId>org.onosproject</groupId> |
| 6 | <artifactId>apache-karaf-offline</artifactId> |
| 7 | <version>3.0.8</version> |
| 8 | <name>${project.artifactId}</name> |
| 9 | <description>Maven POM for Offline Karaf server</description> |
| 10 | <packaging>karaf-assembly</packaging> |
| 11 | |
| 12 | <!-- based on https://github.com/juttayaya/karaf/tree/master/karaf3/offline-karaf--> |
| 13 | <url>http://onosproject.org/</url> |
| 14 | |
| 15 | <scm> |
| 16 | <connection>scm:git:https://gerrit.onosproject.org/onos</connection> |
| 17 | <developerConnection>scm:git:https://gerrit.onosproject.org/onos |
| 18 | </developerConnection> |
| 19 | <url>http://gerrit.onosproject.org/</url> |
| 20 | </scm> |
| 21 | |
| 22 | <licenses> |
| 23 | <license> |
| 24 | <name>Apache License, Version 2.0</name> |
| 25 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 26 | </license> |
| 27 | </licenses> |
| 28 | |
| 29 | <developers> |
| 30 | <developer> |
| 31 | <organization>Open Networking Lab</organization> |
| 32 | <url>http://onlab.us</url> |
| 33 | </developer> |
| 34 | </developers> |
| 35 | |
| 36 | <properties> |
| 37 | <karaf.version>3.0.8</karaf.version> |
| 38 | <!-- maven-compiler-plugin setting. |
| 39 | Karaf 3 runs on Java 7 or later --> |
| 40 | <!-- Specific Maven Plugin Versions --> |
| 41 | <!-- Karaf Maven Plugin does not have to be same as Karaf Server version |
| 42 | For example, Karaf Maven Plugin 3.0.2 has bug uploading to password protected Nexus Repo |
| 43 | So I used Karaf Maven Plugin 3.0.3 to build a Karaf 3.0.2 Server --> |
| 44 | <karaf.plugin.version>${karaf.version}</karaf.plugin.version> |
| 45 | </properties> |
| 46 | |
| 47 | <distributionManagement> |
| 48 | <snapshotRepository> |
| 49 | <id>ossrh</id> |
| 50 | <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 51 | </snapshotRepository> |
| 52 | <repository> |
| 53 | <id>ossrh</id> |
| 54 | <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 55 | </repository> |
| 56 | </distributionManagement> |
| 57 | |
| 58 | <dependencyManagement> |
| 59 | <!-- Import Karaf POM to use the correct version of the Karaf dependencies --> |
| 60 | <dependencies> |
| 61 | <dependency> |
| 62 | <groupId>org.apache.karaf</groupId> |
| 63 | <artifactId>karaf</artifactId> |
| 64 | <version>${karaf.version}</version> |
| 65 | <type>pom</type> |
| 66 | <scope>import</scope> |
| 67 | </dependency> |
| 68 | </dependencies> |
| 69 | </dependencyManagement> |
| 70 | <dependencies> |
| 71 | <dependency> |
| 72 | <!-- scope is compile so all features (there is only one) are installed into startup.properties and |
| 73 | the feature repo itself is not added in etc/org.apache.karaf.features.cfg file --> |
| 74 | <groupId>org.apache.karaf.features</groupId> |
| 75 | <artifactId>framework</artifactId> |
| 76 | <type>kar</type> |
| 77 | <scope>compile</scope> |
| 78 | </dependency> |
| 79 | |
| 80 | <dependency> |
| 81 | <!-- Scope is runtime so the feature repo is listed in etc/org.apache.karaf.features.cfg file, |
| 82 | and features will installed into the system directory. |
| 83 | |
| 84 | This imports the standard Karaf features described at |
| 85 | https://repo1.maven.org/maven2/org/apache/karaf/features/standard/3.0.4/standard-3.0.4-features.xml |
| 86 | These features are installed in the karaf-maven-plugin configuration |
| 87 | --> |
| 88 | <groupId>org.apache.karaf.features</groupId> |
| 89 | <artifactId>standard</artifactId> |
| 90 | <classifier>features</classifier> |
| 91 | <type>xml</type> |
| 92 | <scope>runtime</scope> |
| 93 | </dependency> |
| 94 | <!-- https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/2.15.2/apache-camel-2.15.2-features.xml --> |
| 95 | <!-- <dependency> |
| 96 | <groupId>org.apache.camel.karaf</groupId> |
| 97 | <artifactId>apache-camel</artifactId> |
| 98 | <version>${camel.version}</version> |
| 99 | <classifier>features</classifier> |
| 100 | <type>xml</type> |
| 101 | <scope>runtime</scope> |
| 102 | </dependency> --> |
| 103 | <!-- https://repo1.maven.org/maven2/org/apache/karaf/features/spring/3.0.4/spring-3.0.4-features.xml |
| 104 | Needed for Camel feature dependency |
| 105 | --> |
| 106 | <!-- <dependency> |
| 107 | <groupId>org.apache.karaf.features</groupId> |
| 108 | <artifactId>spring</artifactId> |
| 109 | <version>${karaf.version}</version> |
| 110 | <classifier>features</classifier> |
| 111 | <type>xml</type> |
| 112 | <scope>runtime</scope> |
| 113 | </dependency> --> |
| 114 | </dependencies> |
| 115 | <build> |
| 116 | <plugins> |
| 117 | <plugin> |
| 118 | <groupId>org.apache.karaf.tooling</groupId> |
| 119 | <artifactId>karaf-maven-plugin</artifactId> |
| 120 | <!-- Plugin requires at minimum 3.0.3 version for dependency=true bug fix |
| 121 | https://issues.apache.org/jira/browse/KARAF-2596 --> |
| 122 | <version>${karaf.plugin.version}</version> |
| 123 | <extensions>true</extensions> |
| 124 | <configuration> |
| 125 | <karafVersion>${karaf.version}</karafVersion> |
| 126 | <!-- ignoreDependencyFlag is true forces plugin to also |
| 127 | download feature dependent libraries --> |
| 128 | <ignoreDependencyFlag>true</ignoreDependencyFlag> |
| 129 | <!-- bootFeatures starts up these features when Karaf first boots up. |
| 130 | The feature names are obtained from the features.xml in the |
| 131 | dependencies section |
| 132 | --> |
| 133 | <bootFeatures> |
| 134 | <feature>standard</feature> |
| 135 | <feature>ssh</feature> |
| 136 | <feature>scr</feature> |
| 137 | <feature>war</feature> |
| 138 | <feature>webconsole</feature> |
| 139 | </bootFeatures> |
| 140 | <!-- installedFeatures only installs the libraries in the ${KARAF_HOME}/system directory |
| 141 | but the user will have to start it up manually via Karaf command line feature:install |
| 142 | --> |
| 143 | <installedFeatures> |
| 144 | <!-- <feature>jndi</feature> --> |
| 145 | </installedFeatures> |
| 146 | </configuration> |
| 147 | </plugin> |
| 148 | <plugin> |
| 149 | <groupId>org.apache.maven.plugins</groupId> |
| 150 | <artifactId>maven-dependency-plugin</artifactId> |
| 151 | <!-- <executions> |
| 152 | <execution> |
| 153 | <id>copy</id> |
| 154 | <phase>generate-resources</phase> |
| 155 | <goals> |
| 156 | <goal>copy</goal> |
| 157 | </goals> |
| 158 | <configuration> |
| 159 | <artifactItems> |
| 160 | <artifactItem> |
| 161 | <groupId>org.apache.karaf.jaas</groupId> |
| 162 | <artifactId>org.apache.karaf.jaas.boot</artifactId> |
| 163 | <version>${karaf.version}</version> |
| 164 | <outputDirectory>target/assembly/system/org/apache/karaf/jaas/org.apache.karaf.jaas.boot</outputDirectory> |
| 165 | </artifactItem> |
| 166 | </artifactItems> |
| 167 | </configuration> |
| 168 | </execution> |
| 169 | </executions> --> |
| 170 | </plugin> |
| 171 | |
| 172 | <plugin> |
| 173 | <groupId>org.sonatype.plugins</groupId> |
| 174 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 175 | <version>1.6.8</version> |
| 176 | <extensions>true</extensions> |
| 177 | <configuration> |
| 178 | <serverId>ossrh</serverId> |
| 179 | <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 180 | <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 181 | </configuration> |
| 182 | </plugin> |
| 183 | |
| 184 | <plugin> |
| 185 | <groupId>org.apache.maven.plugins</groupId> |
| 186 | <artifactId>maven-gpg-plugin</artifactId> |
| 187 | <version>1.6</version> |
| 188 | <executions> |
| 189 | <execution> |
| 190 | <id>sign-artifacts</id> |
| 191 | <phase>verify</phase> |
| 192 | <goals> |
| 193 | <goal>sign</goal> |
| 194 | </goals> |
| 195 | </execution> |
| 196 | </executions> |
| 197 | </plugin> |
| 198 | |
| 199 | </plugins> |
| 200 | </build> |
| 201 | <repositories> |
| 202 | <!-- This is the repository location of org.eclipse.equinox:region:jar:1.0.0.v20110506 |
| 203 | for the "region" Karaf feature |
| 204 | --> |
| 205 | <!-- <repository> |
| 206 | <id>servicemix</id> |
| 207 | <name>ServiceMix Repo for Karaf</name> |
| 208 | <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url> |
| 209 | </repository> --> |
| 210 | </repositories> |
| 211 | </project> |