velocity-maven-plugin Maven Mojo

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.vdubus
ArtifactId

ArtifactId

velocity-maven-plugin
Last Version

Last Version

1.1.3
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

velocity-maven-plugin Maven Mojo
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project URL

Project URL

https://github.com/vdubus/velocity-maven-plugin
Source Code Management

Source Code Management

https://github.com/vdubus/velocity-maven-plugin

Download velocity-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.vdubus</groupId>
    <artifactId>velocity-maven-plugin</artifactId>
    <version>1.1.3</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.2.3
org.apache.maven : maven-project jar 3.0-alpha-2
org.apache.velocity : velocity jar 1.7

Project Modules

There are no modules declared in this project.

README

Introduction

The plugin name is velocity-maven-plugin and there is a single goal: velocity.

Original code is available on google code project.

This version fix these issues:

Example Addition to POM

<plugin>
	<groupId>com.github.vdubus</groupId>
	<artifactId>velocity-maven-plugin</artifactId>
	<version>1.1.2</version>
	<executions>
		<execution>
			<id>Generate source velocity</id>
			<phase>generate-sources</phase>
			<goals>
				<goal>velocity</goal>
			</goals>
			<configuration>
				<removeExtension>.vm</removeExtension>
				<templateFiles>
					<directory>src/main/resources</directory>
					<includes>
						<include>**/*.vm</include>
					</includes>
				</templateFiles>
				<templateValues>
					<test>testValue</test>
				</templateValues>
			</configuration>
		</execution>
	</executions>
</plugin>

Options

Option Name Default Notes
encoding ${project.build.sourceEncoding} This option also has null check that sets the value to "UTF-8"
outputDirectory ${project.build.directory}
removeExtension no default Set this parameter if you want the plugin to remove an unwanted extension when saving result. For example foo.xml.vtl ==> foo.xml if removeExtension = '.vtl'.
templateFiles Required, no default. This is required, but a default may be added later
templateValues Required, no default. This is the properties list you wish to have merged with your templates

Versions

Version
1.1.3