Comments (6)
Do you have a use case for this wished behaviour ?
from properties-maven-plugin.
Yes, of cause.
In my project I have a number of property files, that are currently used by Ant. Those property files get loaded in a defined order: first files from user directory, than shared files from git repositories.
This allows users to change any property value from the shared property files (from git repositories) by defining those properties first in the user property files. (Ones defined, the property value stays the same)
Now in Maven, I would like to just load all property files simulating the Ant behavior. This is not possible without such feature, that I propose here.
from properties-maven-plugin.
Can you tell what kind of information those properties contain?
from properties-maven-plugin.
Sure:
- Options controlling some build steps:
- like code coverage configuration (On/Off, Packages to instrument)
- usage of different compilers (Eclipse Compiler / JDK compiler)
- URLs/Credentials to different application servers. Used for IT-tests, remote configuration, load tests.
- JDBC connections to different databases
- Paths to some tools, like Unlocker.exe on Windows
(needed to remove files, that are used by other programs, like Eclipse)
The default configuration is commited to the Git repository. But any developer can change any property value by putting it into his local property file. Ant loads local files first, than files from Git repository.
So my goal is just to simulate Ant behavior on Maven. This will allow me to use the same property files with both Ant and Maven.
from properties-maven-plugin.
I'd find an override option useful as well. We've developed a tool (really an orchestration of several existing Maven plugins) and are loading several "default" properties into the pom using this plugin to cut down on the number of properties required for each project to define. If the project overrides the default, we'd like to keep that existing property, if they don't define it, then we'd like to load the default value from a file in a utility jar.
from properties-maven-plugin.
Has this change merged and available for use?
from properties-maven-plugin.
Related Issues (20)
- Hope to add SetProjectPropertiesMojo
- Unwarranted "Circular property definition" v2
- Existing properties not overriden for goal read-project-properties HOT 1
- Expanding default values HOT 3
- Excuse me, is there a plan for this plugin to provide support for yml files HOT 1
- Maven properties not evaluated on import. HOT 1
- NullPointerException when write-active-profile-properties goal is set HOT 4
- resolve yaml
- error on goal properties:write-project-properties when properties file exists and is read-only HOT 1
- Code Error in Example present in Website HOT 1
- Is classes and test-classes on the classpath for locating/reading classpath: urls? HOT 2
- Allow outputFile of write-project-properties to be set from the command line HOT 3
- Include/exclude project properties
- properties-maven-plugin adding current date to newly written file. HOT 2
- temp files are not automatically deleted in windows HOT 5
- Multiple files and properties precedence HOT 1
- Warning appears when use property from the file in pom.xml version tag. HOT 3
- Cant read external properties for sonar scan HOT 1
- Support configurable property file encoding
- active development? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from properties-maven-plugin.