logo velocity-maven-plugin Maven Mojo

homepage: code.google.com/p/velocity-maven-plugin
fresh index:
last release: 5 years ago, first release: 7 years ago
packaging: maven-plugin
get this artifact from: central
see this artifact on: search.maven.org




This chart shows how much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:


select version:

Add this snippet into pom.xml inside tag <project><build><plugins>:




Switch to artifact.
goals:
velocity:velocity

Often used code snippets:

<plugin>
  <groupId>com.googlecode.velocity-maven-plugin</groupId>
  <artifactId>velocity-maven-plugin</artifactId>
  <executions>
    <execution>
      <id>generate-aws-cloud-formation-template</id>
      <phase>generate-resources</phase>
      <goals>
        <goal>velocity</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <templateFiles>
      <directory>src/main/resources</directory>
      <includes>
        <include>herd.localdb.template.vm</include>
      </includes>
    </templateFiles>
    <outputDirectory>target/classes</outputDirectory>
    <removeExtension>.vm</removeExtension>
    <templateValues>
      <herdTagVersion>${herd.tag.version}</herdTagVersion>
      <herdLastMajorDatabaseReleaseVersion>${herd.last.major.database.release.version}</herdLastMajorDatabaseReleaseVersion>
      <activitiVersion>${activiti.version}</activitiVersion>
      <herdPostgresUpgradeScripts>${herd.postgres.upgrade.scripts}</herdPostgresUpgradeScripts>
    </templateValues>
  </configuration>
</plugin>
<plugin>
  <groupId>com.googlecode.velocity-maven-plugin</groupId>
  <artifactId>velocity-maven-plugin</artifactId>
  <executions>
    <execution>
      <id>generate-aws-cloud-formation-template</id>
      <phase>generate-resources</phase>
      <goals>
        <goal>velocity</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <templateFiles>
      <directory>src/main/resources</directory>
      <includes>
        <include>herd.localdb.template.vm</include>
      </includes>
    </templateFiles>
    <outputDirectory>target/classes</outputDirectory>
    <removeExtension>.vm</removeExtension>
    <templateValues>
      <herdTagVersion>${herd.tag.version}</herdTagVersion>
      <herdLastMajorDatabaseReleaseVersion>${herd.last.major.database.release.version}</herdLastMajorDatabaseReleaseVersion>
      <activitiVersion>${activiti.version}</activitiVersion>
      <herdPostgresUpgradeScripts>${herd.postgres.upgrade.scripts}</herdPostgresUpgradeScripts>
      <herdUIVersion>${herd-ui.version}</herdUIVersion>
    </templateValues>
  </configuration>
</plugin>

© Jiri Pinkas 2015 - 2018. All rights reserved. Admin login To submit bugs / feature requests please use this github page
related: JavaVids | Top Java Blogs | Java školení | 4npm - npm search | monitored using: sitemonitoring
Apache and Apache Maven are trademarks of the Apache Software Foundation. The Central Repository is a service mark of Sonatype, Inc.