Read Files Maven Plugin

Reads File into Maven Properties

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка
Группа

Группа

org.honton.chas
Идентификатор

Идентификатор

readfiles-maven-plugin
Последняя версия

Последняя версия

0.0.1
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

Read Files Maven Plugin
Reads File into Maven Properties
Ссылка на сайт

Ссылка на сайт

https://github.com/chonton/readfiles-maven-plugin
Система контроля версий

Система контроля версий

https://github.com/chonton/readfiles-maven-plugin

Скачать readfiles-maven-plugin

Как подключить последнюю версию

<plugin>
    <groupId>org.honton.chas</groupId>
    <artifactId>readfiles-maven-plugin</artifactId>
    <version>0.0.1</version>
</plugin>

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-plugin-api jar 3.0

provided (1)

Идентификатор библиотеки Тип Версия
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.2

Модули Проекта

Данный проект не имеет модулей.

readfiles-maven-plugin

Read files into maven properties.

Mojo details at plugin info

Just one goal: readfiles sets maven properties to the contents of files. Each file is read fully and the contents are set to maven properties of the same name as the files.

Parameter Default Description
files The list of files to read
encoding ${project.build.sourceEncoding} The character encoding of the file (UTF-8 if not specified)
prefix Prefix each property name with this value
skip ${readfiles.skip} Skip executing the plugin

Typical use:

  <build>
    <plugins>

      <plugin>
        <groupId>org.honton.chas</groupId>
        <artifactId>readfiles-maven-plugin</artifactId>
        <version>0.0.1</version>
        <executions>
          <execution>
            <id>configurations</id>
            <goals>
              <goal>readfiles</goal>
            </goals>
            <configuration>
              <files>
                <!-- set application.json property -->
                <file>${basedir}/src/main/resources/application.json</file>
                <!-- set environment.conf property -->
                <file>${basedir}/src/main/resources/environment.conf</file>
              </files>
            </configuration>
          </execution>
          <execution>
            <id>index.html</id>
            <goals>
              <goal>readfiles</goal>
            </goals>
            <configuration>
              <encoding>iso-8859-1</encoding>
              <prefix>page.</prefix>
              <files>
                <!-- set page.index.html property -->
                <file>${basedir}/src/main/resources/index.html</file>
              </files>
            </configuration>
          </execution>
        </executions>
      </plugin>

    </plugins>
  </build>

Версии библиотеки

Версия
0.0.1