Wicket I18N Maven Plugin

Plugin for generating Java constants containing Wicket I18N keys

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка Wicket Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

com.jeroensteenbeeke
Идентификатор

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

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

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

1.1
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

Wicket I18N Maven Plugin
Plugin for generating Java constants containing Wicket I18N keys
Ссылка на сайт

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

https://github.com/jsteenbeeke/wicket-i18n-plugin
Система контроля версий

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

https://github.com/jsteenbeeke/wicket-i18n-plugin

Скачать wicket-i18n-maven-plugin

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

<plugin>
    <groupId>com.jeroensteenbeeke</groupId>
    <artifactId>wicket-i18n-maven-plugin</artifactId>
    <version>1.1</version>
</plugin>

Зависимости

compile (7)

Идентификатор библиотеки Тип Версия
com.google.guava : guava jar 19.0
javax.servlet : servlet-api jar 3.0-alpha-1
org.apache.maven : maven-plugin-api jar 3.3.9
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4
org.apache.wicket : wicket-core jar 7.2.0
org.slf4j : slf4j-simple jar 1.7.13
org.sonatype.plexus : plexus-build-api jar 0.0.7

provided (1)

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

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

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

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

wicket-i18n-plugin

A Maven plugin for gathering wicket:message keys from Wicket components and property files into a convenient constant class.

Configuration

Add the following segment to the <plugins> section of your POM's <build> tag.

<plugin>
	<groupId>com.jeroensteenbeeke</groupId>
	<artifactId>wicket-i18n-maven-plugin</artifactId>
	<version>1.1</version>
	<configuration>
		<packagePrefix>your.package.prefix</packagePrefix>
		<monitoredPackages>
			<monitoredPackage>path.to.your.web.package</monitoredPackage>
		</monitoredPackages>
	</configuration>
	<executions>
		<execution>
			<id>generate-sources</id>
			<phase>generate-sources</phase>
			<goals>
				<goal>generate</goal>
			</goals>
		</execution>
	</executions>
</plugin>

This will create a minimal config that will scan the indicated monitoredPackage, and read the keys from any Wicket component HTML file it finds. In addition to this basic setup, there are a number of options to expand the functionality of this plugin.

Option Required Type
packagePrefix Yes String
monitoredPackages Yes List of Strings
propertyFiles No List of Strings
rootClassName No (defaults to I18N) String
javaDirectory No (defaults to src/main/java) String
outputDirectory No (defaults to target/generated-sources/wicket-i18n String

Execution

To run the plugin, simply run mvn generate-sources in your project directory.

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

Версия
1.1
1.0