blob: cc0c22584c3590ea3d9538fe5717d22bbf246d33 [file] [log] [blame]
Vinod Kumar S7a004de2016-02-05 16:15:09 +05301/*
2 * Copyright 2016 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 */
16
17package org.onosproject.yangutils.plugin.manager;
18
19import org.apache.maven.plugin.AbstractMojo;
20import org.apache.maven.plugin.MojoExecutionException;
21import org.apache.maven.plugin.MojoFailureException;
22import org.apache.maven.plugins.annotations.LifecyclePhase;
23import org.apache.maven.plugins.annotations.Mojo;
24import org.apache.maven.plugins.annotations.ResolutionScope;
25
26/**
27* ONOS YANG utility maven plugin.
28* Goal of plugin is yang2java
29* Execution phase in generate-sources
30* requiresDependencyResolution at compile time
31*/
32@Mojo(name = "yang2java", defaultPhase = LifecyclePhase.GENERATE_SOURCES,
33 requiresDependencyResolution = ResolutionScope.COMPILE, requiresProject = true)
34public class YangUtilManager extends AbstractMojo {
35
36 @Override
37 public void execute() throws MojoExecutionException, MojoFailureException {
38 //TODO: implement the MOJO plugin
39 }
40}