Hi all,

I have a list of colours in colours.properties. These should be
applied to all my CSS files so that the colours I use are centralized.

I need to access colours.properties in multiple projects so I put it
in its own project and generated a very simple JAR consisting of just
colours.properties (colours.jar). The relevant projects depend on
colours.jar ... but maven-resources-plugin's
"<filter>colours.properties</filter>" doesn't seem to be looking on
the classpath so it doesn't find the filter. (*)

I also tried using the properties in a POM. That works like a charm
for maven-resources-plugin but then I can't access the list of colours
anywhere else (I also need to generate some images that depend on
those colours). Of course, this would imply having to update the POM
just to change a colour...

Has anyone found an easy way to use Maven to provide colour constants
to CSS? Your input and suggestions would be very much appreciated.

Cheers,
Hilco

(*) It just occurred to me that I could unzip the colours.jar inside
the target of each project that depends on it. It seems a bit of an
ugly hack, though.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to