Committed by
Gerrit Code Review
ONOS-1290 Implemented OnosAppMojo for packaging and installing ONOS apps as Maven artifacts.
Change-Id: Id9452beea46f37bd0f0737f478f2a2541dc5deb9
Showing
4 changed files
with
54 additions
and
4 deletions
... | @@ -24,10 +24,12 @@ | ... | @@ -24,10 +24,12 @@ |
24 | </parent> | 24 | </parent> |
25 | 25 | ||
26 | <artifactId>onos-maven-plugin</artifactId> | 26 | <artifactId>onos-maven-plugin</artifactId> |
27 | - <version>1.2.0-SNAPSHOT</version> | 27 | + <version>1.2-SNAPSHOT</version> |
28 | <packaging>maven-plugin</packaging> | 28 | <packaging>maven-plugin</packaging> |
29 | 29 | ||
30 | - <description>Maven plugin for packaging ONOS applications or generating component configuration resources</description> | 30 | + <description>Maven plugin for packaging ONOS applications or generating |
31 | + component configuration resources | ||
32 | + </description> | ||
31 | 33 | ||
32 | <dependencies> | 34 | <dependencies> |
33 | <dependency> | 35 | <dependency> |
... | @@ -37,11 +39,35 @@ | ... | @@ -37,11 +39,35 @@ |
37 | </dependency> | 39 | </dependency> |
38 | 40 | ||
39 | <dependency> | 41 | <dependency> |
42 | + <groupId>org.apache.maven</groupId> | ||
43 | + <artifactId>maven-project</artifactId> | ||
44 | + <version>2.0</version> | ||
45 | + </dependency> | ||
46 | + | ||
47 | + <dependency> | ||
40 | <groupId>com.thoughtworks.qdox</groupId> | 48 | <groupId>com.thoughtworks.qdox</groupId> |
41 | <artifactId>qdox</artifactId> | 49 | <artifactId>qdox</artifactId> |
42 | <version>2.0-M3</version> | 50 | <version>2.0-M3</version> |
43 | </dependency> | 51 | </dependency> |
44 | 52 | ||
53 | + <dependency> | ||
54 | + <groupId>com.google.guava</groupId> | ||
55 | + <artifactId>guava</artifactId> | ||
56 | + <version>18.0</version> | ||
57 | + </dependency> | ||
58 | + | ||
59 | + <dependency> | ||
60 | + <groupId>commons-collections</groupId> | ||
61 | + <artifactId>commons-collections</artifactId> | ||
62 | + <version>3.2.1</version> | ||
63 | + </dependency> | ||
64 | + | ||
65 | + <dependency> | ||
66 | + <groupId>commons-configuration</groupId> | ||
67 | + <artifactId>commons-configuration</artifactId> | ||
68 | + <version>1.10</version> | ||
69 | + </dependency> | ||
70 | + | ||
45 | <!-- dependencies to annotations --> | 71 | <!-- dependencies to annotations --> |
46 | <dependency> | 72 | <dependency> |
47 | <groupId>org.apache.maven.plugin-tools</groupId> | 73 | <groupId>org.apache.maven.plugin-tools</groupId> | ... | ... |
This diff is collapsed. Click to expand it.
... | @@ -45,13 +45,13 @@ public class OnosCfgMojo extends AbstractMojo { | ... | @@ -45,13 +45,13 @@ public class OnosCfgMojo extends AbstractMojo { |
45 | /** | 45 | /** |
46 | * The directory where the generated catalogue file will be put. | 46 | * The directory where the generated catalogue file will be put. |
47 | */ | 47 | */ |
48 | - @Parameter( defaultValue = "${basedir}" ) | 48 | + @Parameter(defaultValue = "${basedir}") |
49 | protected File srcDirectory; | 49 | protected File srcDirectory; |
50 | 50 | ||
51 | /** | 51 | /** |
52 | * The directory where the generated catalogue file will be put. | 52 | * The directory where the generated catalogue file will be put. |
53 | */ | 53 | */ |
54 | - @Parameter( defaultValue = "${project.build.outputDirectory}" ) | 54 | + @Parameter(defaultValue = "${project.build.outputDirectory}") |
55 | protected File dstDirectory; | 55 | protected File dstDirectory; |
56 | 56 | ||
57 | @Override | 57 | @Override | ... | ... |
1 | +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
2 | +<!-- | ||
3 | + ~ Copyright 2015 Open Networking Laboratory | ||
4 | + ~ | ||
5 | + ~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
6 | + ~ you may not use this file except in compliance with the License. | ||
7 | + ~ You may obtain a copy of the License at | ||
8 | + ~ | ||
9 | + ~ http://www.apache.org/licenses/LICENSE-2.0 | ||
10 | + ~ | ||
11 | + ~ Unless required by applicable law or agreed to in writing, software | ||
12 | + ~ distributed under the License is distributed on an "AS IS" BASIS, | ||
13 | + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
14 | + ~ See the License for the specific language governing permissions and | ||
15 | + ~ limitations under the License. | ||
16 | + --> | ||
17 | +<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" name="${project.artifactId}-${feature.version}"> | ||
18 | + <repository>mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features</repository> | ||
19 | + <feature name="${project.artifactId}" version="${feature.version}" | ||
20 | + description="${project.description}"> | ||
21 | + <feature>onos-api</feature> | ||
22 | + <bundle>mvn:${project.groupId}/${project.artifactId}/${project.version}</bundle> | ||
23 | + </feature> | ||
24 | +</features> |
-
Please register or login to post a comment