Thomas Vachuska
Committed by Gerrit Code Review

ONOS-1290 Implemented OnosAppMojo for packaging and installing ONOS apps as Maven artifacts.

Change-Id: Id9452beea46f37bd0f0737f478f2a2541dc5deb9
......@@ -24,10 +24,12 @@
</parent>
<artifactId>onos-maven-plugin</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<description>Maven plugin for packaging ONOS applications or generating component configuration resources</description>
<description>Maven plugin for packaging ONOS applications or generating
component configuration resources
</description>
<dependencies>
<dependency>
......@@ -37,11 +39,35 @@
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.qdox</groupId>
<artifactId>qdox</artifactId>
<version>2.0-M3</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>18.0</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.1</version>
</dependency>
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>1.10</version>
</dependency>
<!-- dependencies to annotations -->
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
......
......@@ -45,13 +45,13 @@ public class OnosCfgMojo extends AbstractMojo {
/**
* The directory where the generated catalogue file will be put.
*/
@Parameter( defaultValue = "${basedir}" )
@Parameter(defaultValue = "${basedir}")
protected File srcDirectory;
/**
* The directory where the generated catalogue file will be put.
*/
@Parameter( defaultValue = "${project.build.outputDirectory}" )
@Parameter(defaultValue = "${project.build.outputDirectory}")
protected File dstDirectory;
@Override
......
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
~ Copyright 2015 Open Networking Laboratory
~
~ 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.
-->
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" name="${project.artifactId}-${feature.version}">
<repository>mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features</repository>
<feature name="${project.artifactId}" version="${feature.version}"
description="${project.description}">
<feature>onos-api</feature>
<bundle>mvn:${project.groupId}/${project.artifactId}/${project.version}</bundle>
</feature>
</features>