blob: 9b3990349678c49f5d16febd797bf0631bf76786 [file] [log] [blame]
Thomas Vachuska8c8b0372015-03-10 11:11:24 -07001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.maven;
17
18import org.apache.maven.plugin.AbstractMojo;
19import org.apache.maven.plugin.MojoExecutionException;
20import org.apache.maven.plugins.annotations.LifecyclePhase;
21import org.apache.maven.plugins.annotations.Mojo;
22import org.apache.maven.plugins.annotations.Parameter;
23
24import java.util.List;
25
26/**
27 * Produces ONOS application archive.
28 */
29@Mojo(name = "app", defaultPhase = LifecyclePhase.PACKAGE)
30public class OnosAppMojo extends AbstractMojo {
31
32 @Parameter
33 private String name;
34
35 @Parameter
36 private String version;
37
38 @Parameter
39 private String origin;
40
41 @Parameter
42 private String description;
43
44 @Parameter
45 private String featuresRepo;
46
47 @Parameter
48 private String features;
49
50 @Parameter
51 private String permissions;
52
53 @Parameter
54 private List<String> artifacts;
55
56
57 public void execute() throws MojoExecutionException {
58 getLog().info("Building ONOS application archive " + name + " version " + version);
59
60 }
61}
62
63