Giter Club home page Giter Club logo

Comments (6)

khmarbaise avatar khmarbaise commented on June 25, 2024

Do you have a use case for this wished behaviour ?

from properties-maven-plugin.

borisbrodski avatar borisbrodski commented on June 25, 2024

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.

khmarbaise avatar khmarbaise commented on June 25, 2024

Can you tell what kind of information those properties contain?

from properties-maven-plugin.

borisbrodski avatar borisbrodski commented on June 25, 2024

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.

themarquee avatar themarquee commented on June 25, 2024

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.

BhuvaneshMani avatar BhuvaneshMani commented on June 25, 2024

Has this change merged and available for use?

from properties-maven-plugin.

Related Issues (20)

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.