You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Piotr Gliźniewicz <p....@netpr.pl> on 2011/06/15 13:30:42 UTC
Customizing Roller 5.0
Hi!
We are using a custom version of Roller 4.0 We customized it by adding
necessary classes to the apps\weblogger\custom\ directory - new Struts 2
actions, a WebEntryEditor implementation, resource files. I would like
to upgrade it to Roller 5.0, but I don't know how to merge our changes
with the new maven project structure. Is there any documented way to
extend Roller 5.0 as it was possible with apps\weblogger\custom?
Best,
Piotr Gliźniewicz
Re: Customizing Roller 5.0
Posted by Edd Grant <ed...@eddgrant.com>.
Thanks for that Dave, I've been thinking of using Puppet to make automated
deployment of my slightly customised Roller site and theme easy, but had
neglected to think of using Maven instead. I think the Maven route will be
much simpler!
Cheers,
Edd
On 15 June 2011 13:31, Dave <sn...@gmail.com> wrote:
> With 5.0 the way to do custom version of Roller is to use Maven's WAR
> overlay feature:
> http://maven.apache.org/plugins/maven-war-plugin/overlays.html
>
> The high-level steps are:
> 1) Create a Maven webapp project with your new Java classes in
> src/main/java and your web files in src/main/webapp as with any Maven
> webapp project
> 2) Declare the Roller Webapp module as one of the dependencies for
> your new project
> 3) Run Maven to build your new WAR file with both Roller and your custom
> classes
>
> That's what I do for my website at rollerweblogger.org, which includes
> custom classes, files, etc.
>
> Hope that helps...
>
> - Dave
>
>
>
>
>
> 2011/6/15 Piotr Gliźniewicz <p....@netpr.pl>:
> > Hi!
> > We are using a custom version of Roller 4.0 We customized it by adding
> > necessary classes to the apps\weblogger\custom\ directory - new Struts 2
> > actions, a WebEntryEditor implementation, resource files. I would like to
> > upgrade it to Roller 5.0, but I don't know how to merge our changes with
> the
> > new maven project structure. Is there any documented way to extend Roller
> > 5.0 as it was possible with apps\weblogger\custom?
> > Best,
> > Piotr Gliźniewicz
> >
>
--
Web: http://www.eddgrant.com
Email: edd@eddgrant.com
Mobile: +44 (0) 7861 394 543
Re: Customizing Roller 5.0
Posted by Piotr Gliźniewicz <p....@netpr.pl>.
Thanks for answering, I followed what you described at it seems it works.
Best,
piotrek
> With 5.0 the way to do custom version of Roller is to use Maven's WAR
> overlay feature:
> http://maven.apache.org/plugins/maven-war-plugin/overlays.html
>
> The high-level steps are:
> 1) Create a Maven webapp project with your new Java classes in
> src/main/java and your web files in src/main/webapp as with any Maven
> webapp project
> 2) Declare the Roller Webapp module as one of the dependencies for
> your new project
> 3) Run Maven to build your new WAR file with both Roller and your custom classes
>
> That's what I do for my website at rollerweblogger.org, which includes
> custom classes, files, etc.
>
> Hope that helps...
>
> - Dave
>
>
>
>
>
> 2011/6/15 Piotr Gliźniewicz<p....@netpr.pl>:
>> Hi!
>> We are using a custom version of Roller 4.0 We customized it by adding
>> necessary classes to the apps\weblogger\custom\ directory - new Struts 2
>> actions, a WebEntryEditor implementation, resource files. I would like to
>> upgrade it to Roller 5.0, but I don't know how to merge our changes with the
>> new maven project structure. Is there any documented way to extend Roller
>> 5.0 as it was possible with apps\weblogger\custom?
>> Best,
>> Piotr Gliźniewicz
>>
Re: Customizing Roller 5.0
Posted by Dave <sn...@gmail.com>.
With 5.0 the way to do custom version of Roller is to use Maven's WAR
overlay feature:
http://maven.apache.org/plugins/maven-war-plugin/overlays.html
The high-level steps are:
1) Create a Maven webapp project with your new Java classes in
src/main/java and your web files in src/main/webapp as with any Maven
webapp project
2) Declare the Roller Webapp module as one of the dependencies for
your new project
3) Run Maven to build your new WAR file with both Roller and your custom classes
That's what I do for my website at rollerweblogger.org, which includes
custom classes, files, etc.
Hope that helps...
- Dave
2011/6/15 Piotr Gliźniewicz <p....@netpr.pl>:
> Hi!
> We are using a custom version of Roller 4.0 We customized it by adding
> necessary classes to the apps\weblogger\custom\ directory - new Struts 2
> actions, a WebEntryEditor implementation, resource files. I would like to
> upgrade it to Roller 5.0, but I don't know how to merge our changes with the
> new maven project structure. Is there any documented way to extend Roller
> 5.0 as it was possible with apps\weblogger\custom?
> Best,
> Piotr Gliźniewicz
>