Hello fellow devs!

I'd like to move away from using CSS and start using LESS in my Jenkins 
Build Monitor Plugin. Of course LESS can be compiled to CSS using the wro4j 
library together with the wro4j-maven-plugin quite easily, so the 
build-time LESS-to-CSS generation is not at all a problem.

However, even with LESS I'd still like to benefit from the simplicity of mvn 
hpi:run while developing the plugin, which means that I'd somehow need to 
teach maven-hpi-plugin to dynamically generate CSS from my LESS files upon 
request.

If I was developing a regular webapp that would be quite straight-forward 
as well - I'd just add a request filter (as per 
http://juplo.de/combining-jetty-maven-plugin-and-wro4j-maven-plugin-for-dynamic-reloading-of-less-resources/
 for 
instance).

Can a similar result be achieved with Stapler? Has anyone done something 
like that?

It seems like maven-hpi-plugin allows me to override Jenkins' web.xml (
https://github.com/jenkinsci/maven-hpi-plugin/blob/ded54b3ac24035ebacda64a0900c3dea5e3de852/src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractJettyMojo.java#L80
) and the default Jetty configuration (
https://github.com/jenkinsci/maven-hpi-plugin/blob/ded54b3ac24035ebacda64a0900c3dea5e3de852/src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractJettyMojo.java#L107),
 
but I'm not sure if I'm on the right track? Is there any simpler solution? 
This seems to be a bit of an overkill.

Any pointers would be greatly appreciated!

Thanks,
Jan

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to