View Javadoc
1   package org.codehaus.modello.maven;
2   
3   import org.apache.maven.plugins.annotations.LifecyclePhase;
4   import org.apache.maven.plugins.annotations.Mojo;
5   
6   /*
7    * Copyright (c) 2004, Codehaus.org
8    *
9    * Permission is hereby granted, free of charge, to any person obtaining a copy of
10   * this software and associated documentation files (the "Software"), to deal in
11   * the Software without restriction, including without limitation the rights to
12   * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
13   * of the Software, and to permit persons to whom the Software is furnished to do
14   * so, subject to the following conditions:
15   *
16   * The above copyright notice and this permission notice shall be included in all
17   * copies or substantial portions of the Software.
18   *
19   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25   * SOFTWARE.
26   */
27  
28  /**
29   * Creates an XPP3 extended reader from the model. An extended reader populates the parsed model with metadata about the
30   * line/column from which the data was read if the model supports this.
31   *
32   * @since 1.4
33   * @author Benjamin Bentmann
34   */
35  @Mojo(name = "xpp3-extended-reader", defaultPhase = LifecyclePhase.GENERATE_SOURCES, threadSafe = true)
36  public class ModelloXpp3ExtendedReaderMojo extends ModelloXpp3ReaderMojo {
37  
38      @Override
39      protected String getGeneratorType() {
40          return "xpp3-extended-reader";
41      }
42  }