Giter Club home page Giter Club logo

templating-maven-plugin's Introduction

Templating Maven Plugin

Apache License, Version 2.0, January 2004 Maven Central Build Status

The Templating Maven Plugin handles copying files from a source to a given output directory, while filtering them. This plugin is useful to filter Java Source Code if you need for example to have things in that code replaced with some properties values.

Releasing

  • Make sure gpg-agent is running.
  • Execute mvn -B release:prepare release:perform

For publishing the site do the following:

cd target/checkout
mvn verify site site:stage scm-publish:publish-scm

templating-maven-plugin's People

Contributors

andham avatar batmat avatar cardil avatar dependabot[bot] avatar hboutemy avatar khmarbaise avatar kohlschuetter avatar mbenson avatar rfscholte avatar slachiewicz avatar stephenc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

templating-maven-plugin's Issues

MOJO-2014 IT test fails

Hi
I'm getting (templating-maven-plugin-1.0.0):
[INFO] Building: MOJO-2014/pom.xml
[INFO] run script verify.groovy
[INFO] ..FAILED (5.6 s)
[INFO] The post-build script did not succeed. assert javaClass.text.contains('public static final String FIRST_COLOR = "red"')
| | |
| | false
| package org.codehaus.mojo.templating.it;
|
| public class Colors {
|
| public static final String FIRST_COLOR = "${first-color}";
| public static final String SECOND_COLOR = "${second-color}";
| public static final String THIRD_COLOR = "${third-color}";
| }
/home/gil/rpmbuild/BUILD/templating-maven-plugin-1.0.0/target/it/MOJO-2014/target/generated-sources/java-templates/org/codehaus/mojo/templating/it/Colors.java

Environment:
Apache Maven 3.3.3 (NON-CANONICAL_2015-07-10T12:37:52_mockbuild; 2015-07-10T14:37:52+02:00)
Maven home: /usr/share/maven
Java version: 1.8.0_71, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-1.b15.fc23.i386/jre
Default locale: it_IT, platform encoding: UTF-8
OS name: "linux", version: "4.3.5-300.fc23.i686", arch: "i386", family: "unix"

Any ideas as to why?
Thanks in advance
Regards

Removed the plugin documentation from README.md

The problem here is that the whole documentation is duplicated by the README.md file. The same documentation is generated from sources and from site content src/site/apt/* during the site generation and release process. So best is to keep a single source of the truth instead of two locations which needed to be maintained.

Use of maven profiles

Hello.

In my project we have the next configuration:

<properties>
    <myProperty>defaultValue</myProperty>
</properties>
<profiles>
    <profile>
        <id>pre</id>
        <properties>
             <myProperty>valuePre</myProperty>
        </properties>
    </profile>
    <profile>
         <id>pro</id>
         <properties>
              <myProperty>valuePro</myProperty>
        </properties>
    </profile>
</profiles>

We use the default configuration of the plugin, and the goal "filter-sources".

We have a file where we are replacing the property ${myProperty} and the pluging works as intended, generating the java file with the value "defaultValue". However, if I try to compile the project with another profile, it is ignored, and the default value is taken.

Example:

mvn clean install -Ppre

The result is a .class file with the value "defaultValue".

Is there something I'm doing wrong or the plugin is not taking into account profiles?

Thanks.

Is the project abandoned?

Is this project abandoned, or are there plans to update and release new versions?
The latest 3.9.2 Maven release generates the following warnings with the last published version (1.0.0, from 2015):

[WARNING]   Plugin issue(s):
[WARNING]    * Plugin is a Maven 2.x plugin, which will be not supported in Maven 4.x
[WARNING]    * Plugin depends on plexus-container-default, which is EOL

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.