1

Can I load a properties file inside a jar in a maven plugin execution?

I have a jar with a system-properties (among other things). I can download and expand it, but I wonder if I there is a way to configure a maven plugin (maven jetty plugin) to load these properties. I was thinking in the:

<configuration>
    <systemPropertiesFile></systemPropertiesFile>
</configuration>

1 Answer 1

2

You'll probably have to use dependency:unpack first to write the properties to a temporary file, and then the properties-maven-plugin to read the properties from that file.

1
  • sounds sensible. If no one comes up with a more suitable answer I will accept this one. Thanks!
    – ssedano
    May 3, 2013 at 10:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.