Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mp911de/configurator-maven-plugin
Home of the configurator-maven-plugin.
https://github.com/mp911de/configurator-maven-plugin
Last synced: 8 days ago
JSON representation
Home of the configurator-maven-plugin.
- Host: GitHub
- URL: https://github.com/mp911de/configurator-maven-plugin
- Owner: mp911de
- Created: 2013-04-08T12:26:21.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2020-06-13T10:08:16.000Z (over 4 years ago)
- Last Synced: 2024-10-09T08:21:41.896Z (30 days ago)
- Language: Java
- Homepage:
- Size: 695 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://buildhive.cloudbees.com/job/mp911de/job/configurator-maven-plugin/badge/icon)](https://buildhive.cloudbees.com/job/mp911de/job/configurator-maven-plugin/)
Introduction
=============The configurator-maven-plugin is used to configure a JAR, WAR or EAR file after the build with properties.
You define one or more template files (naming pattern *.template.*) which will
be processed. Template variables are replaced by property values.Example:
Template-File **config.template.properties**
```
[email protected]@
[email protected]@
```Properties-File **production.properties**
```
db.username=mark
db.url=jdbc:mysql://...
```will become then
**config.properties**
```
username=mark
url=jdbc:mysql://...
```This method is intended primarily for Java Web Applications and Java Enterprise Applications which are packaged as WAR
or EAR file. As soon as you start packaging and deploying (artifact repository) environment-configured artifacts, the are
not portable anymore. With this plugin you are able to create templated artifacts. Just before deployment you finalize
the configuration by injecting property values into your WAR/EAR.All WAR's/JAR's within an EAR/WAR/JAR will be processed (recursive).
See also [Maven Site](http://mp911de.github.io/configurator-maven-plugin) for more details.
Maven Configuration
-------------------```xml
...
de.paluch.maven.configurator
configurator-maven-plugin
1.0.1
...
de.paluch.maven.configurator
configurator-maven-plugin
1.0.1
junit
junit
4.11
production.properties
...
...
```Goals
----------* **configurator:configure** configures the build file from your current project
* **configurator:configure-artifact** configures an arbitrary, external artifact.# License
* [MIT License](http://www.opensource.org/licenses/mit-license.php)