Skip to content
Commits on Source (2)
......@@ -3,7 +3,7 @@
<parent>
<artifactId>modello</artifactId>
<groupId>org.codehaus.modello</groupId>
<version>1.9.1</version>
<version>1.11</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......@@ -174,7 +174,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>2.0.0</version>
<version>3.0.1</version>
<configuration>
<projectsDirectory>src/it</projectsDirectory>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
......@@ -188,6 +188,7 @@
<filterProperties>
<plexusUtilsVersion>3.0.22</plexusUtilsVersion>
<junitVersion>3.8.2</junitVersion>
<java.version>${java.version}</java.version>
</filterProperties>
<goals>
<goal>clean</goal>
......
......@@ -31,21 +31,21 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>3.8.0</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<source>@java.version@</source>
<target>@java.version@</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
<version>2.22.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.modello</groupId>
......
......@@ -31,21 +31,21 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>3.8.0</version>
<configuration>
<source>1.4</source>
<target>1.4</target>
<source>@java.version@</source>
<target>@java.version@</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
<version>2.22.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.modello</groupId>
......
......@@ -29,21 +29,21 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>3.8.0</version>
<configuration>
<source>1.4</source>
<target>1.4</target>
<source>@java.version@</source>
<target>@java.version@</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
<version>2.22.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.modello</groupId>
......
......@@ -53,26 +53,26 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<version>3.8.0</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<source>@java.version@</source>
<target>@java.version@</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
<version>2.22.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
<version>3.7.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.modello</groupId>
......@@ -125,7 +125,7 @@
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<version>3.0.1</version>
<configuration>
<show>private</show>
<linksource>true</linksource>
......@@ -133,12 +133,12 @@
</plugin>
<plugin>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.3</version>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.6</version>
<version>3.0.0</version>
<reportSets>
<reportSet>
<reports>
......
......@@ -37,21 +37,21 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>3.8.0</version>
<configuration>
<source>1.4</source>
<target>1.4</target>
<source>@java.version@</source>
<target>@java.version@</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
<version>2.22.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.modello</groupId>
......
......@@ -29,21 +29,21 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>3.8.0</version>
<configuration>
<source>1.4</source>
<target>1.4</target>
<source>@java.version@</source>
<target>@java.version@</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
<version>2.22.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.modello</groupId>
......
......@@ -9,6 +9,15 @@
<description>Maven Model</description>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>@java.version@</source>
<target>@java.version@</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.modello</groupId>
<artifactId>modello-maven-plugin</artifactId>
......
......@@ -494,7 +494,7 @@
<code><![CDATA[
public String getId()
{
StringBuffer id = new StringBuffer();
StringBuilder id = new StringBuilder();
id.append( getGroupId() );
id.append( ":" );
......@@ -1748,7 +1748,7 @@
<code><![CDATA[
public String getId()
{
StringBuffer id = new StringBuffer();
StringBuilder id = new StringBuilder();
id.append( getGroupId() );
id.append( ":" );
......
......@@ -35,21 +35,21 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>3.8.0</version>
<configuration>
<source>1.4</source>
<target>1.4</target>
<source>@java.version@</source>
<target>@java.version@</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
<version>2.22.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.modello</groupId>
......
package org.codehaus.modello.maven;
/*
* Copyright (c) 2004-2012, Codehaus.org
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
/**
* Creates an Snake Yaml extended reader from the model. An extended reader populates the parsed model with metadata about
* the line/column from which the data was read if the model supports this.
*
* @since 1.8
* @author <a href="mailto:simonetripodi@apache.org">Simone Tripodi</a>
*/
@Mojo( name = "snakeyaml-extended-reader", defaultPhase = LifecyclePhase.GENERATE_SOURCES, threadSafe = true )
public class ModelloSnakeYamlExtendedReaderMojo
extends ModelloXpp3ReaderMojo
{
@Override
protected String getGeneratorType()
{
return "snakeyaml-extended-reader";
}
}
package org.codehaus.modello.maven;
/*
* Copyright (c) 2004, Codehaus.org
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
import java.util.Properties;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.codehaus.modello.ModelloParameterConstants;
/**
* Creates an XPP3 extended writer from the model. An extended writer renders the content with comments about the
* line/column from which the data was read if the model supports this.
*
* @author Hervé Boutemy
* @since 1.10
*/
@Mojo( name = "xpp3-extended-writer", defaultPhase = LifecyclePhase.GENERATE_SOURCES, threadSafe = true )
public class ModelloXpp3ExtendedWriterMojo
extends ModelloXpp3WriterMojo
{
/**
* The class name suffix for the generated writer.
*/
@Parameter( defaultValue = "Ex" )
private String extendedClassnameSuffix;
@Override
protected String getGeneratorType()
{
return "xpp3-extended-writer";
}
protected void customizeParameters( Properties parameters )
{
super.customizeParameters( parameters );
if ( extendedClassnameSuffix != null )
{
parameters.put( ModelloParameterConstants.EXTENDED_CLASSNAME_SUFFIX, extendedClassnameSuffix );
}
}
}
......@@ -25,7 +25,10 @@ Modello Maven Plugin
* {{{./xpp3-reader-mojo.html}modello:xpp3-reader}} Generates an XML Pull Parser reader from the Modello model.
* {{{./xpp3-extended-reader-mojo.html}modello:xpp3-extended-reader}} Generates an XML Pull Parser reader from the
Modello model that records line/column number metadata in the parsed model.
Modello model that records line/column number metadata and eventual source in the parsed model.
* {{{./xpp3-extended-writer-mojo.html}modello:xpp3-extended-writer}} Generates an XML Pull Parser writer from the
Modello model that writes line/column number and source info as comments on each line.
* {{{./dom4j-writer-mojo.html}modello:dom4j-writer}} Generates a DOM4J writer from the Modello model.
......@@ -37,6 +40,20 @@ Modello Maven Plugin
* {{{./jdom-writer-mojo.html}modello:jdom-writer}} Generates a {{{http://www.jdom.org/}jdom}} writer from the model that is capable of preserving element ordering and comments.
* {{{./jackson-writer-mojo.html}modello:jackson-writer}} Generates a JSON writer based on Jackson Streaming APIs from the Modello model.
* {{{./jackson-reader-mojo.html}modello:jackson-reader}} Generates a JSON reader based on Jackson Streaming APIs from the Modello model.
* {{{./jackson-extended-reader-mojo.html}modello:jackson-extended-reader}} Generates a JSON reader based on Jackson Streaming APIs from the.
Modello model that records line/column number metadata in the parsed model.
* {{{./snakeyaml-writer-mojo.html}modello:snakeyaml-writer}} Generates a YAML writer based on SnakeYaml Streaming APIs from the Modello model.
* {{{./snakeyaml-reader-mojo.html}modello:snakeyaml-reader}} Generates a YAML reader based on SnakeYaml Streaming APIs from the Modello model.
* {{{./snakeyaml-extended-reader-mojo.html}modello:snakeyaml-extended-reader}} Generates a YAML reader based on SnakeYaml Streaming APIs from the.
Modello model that records line/column number metadata in the parsed model.
* {{{./converters-mojo.html}modello:converters}} Generates classes that can convert between different versions of the model.
[]
......