Multiple wicket.properties files in uber JAR

2013-07-07 Thread William Speirs
I'm attempting to create an uber JAR using the Maven shade plugin and running into an issue shading wicket, wicket-extensions and wicket-devutils. All 3 of these module contain a wicket.properties file that point at their respective Initializers. The problem is that when I create the shaded JAR, th

Re: Multiple wicket.properties files in uber JAR

2013-07-07 Thread Paul Borș
See the Wicket Free Guid section on the properties files. https://wicket-guide.googlecode.com/files/Wicket%20free%20guide.pdf#page92 Long story short, you can define the language pack at your application level and overrite the default labels Wicket ships with. Per say, i use your "ubber" properti

Re: Multiple wicket.properties files in uber JAR

2013-07-07 Thread Martin Grigorov
Hey Paul. On Mon, Jul 8, 2013 at 9:24 AM, Paul Borș wrote: > See the Wicket Free Guid section on the properties files. > https://wicket-guide.googlecode.com/files/Wicket%20free%20guide.pdf#page92 > > Long story short, you can define the language pack at your application > level and overrite the

Re: Multiple wicket.properties files in uber JAR

2013-07-07 Thread Paul Borș
Hmm, sorry then. Got that one wrong :( But wait, I think I overcome that in a similar way... We overwrite most string (especially the NULL keys) for most messages. I don't have the code in front of me, but I recall we do it through the Lang pack. Have a great day, Paul Bors On Jul 8, 2013

Re: Multiple wicket.properties files in uber JAR

2013-07-07 Thread Paul Borș
N/m initializers are way trickier than what we do in our web app. I would imagine you have to write your own intelligent initializer here to fallback to you own lang pack? I never tried it, so I won't know Count me outta this one :) Have a great day, Paul Bors On Jul 8, 2013, at 2:35 AM

Re: Multiple wicket.properties files in uber JAR

2013-07-08 Thread William Speirs
On Jul 8, 2013 2:30 AM, "Martin Grigorov" wrote: > > I don't see another solution. > Call them manually in the beginning of your MyApp#init() method. Calling them is one thing, but that's actually not enough. It appears I also have to add the string resources. (That is where I was really getting

Re: Multiple wicket.properties files in uber JAR

2013-07-08 Thread Sven Meier
Hi, for string resources you could use shade "transformers" to join the property files: http://stackoverflow.com/questions/6831954/how-to-package-an-apache-cxf-application-into-a-monolithic-jar-with-the-maven-s Sven On 07/08/2013 02:16 PM, William Speirs wrote: On Jul 8, 2013 2:30 AM, "Mart

Re: Multiple wicket.properties files in uber JAR

2013-07-08 Thread William Speirs
On Mon, Jul 8, 2013 at 8:24 AM, Sven Meier wrote: > Hi, > > for string resources you could use shade "transformers" to join the > property files: > > http://stackoverflow.com/**questions/6831954/how-to-** > package-an-apache-cxf-**application-into-a-monolithic-** > jar-with-the-maven-s