Hello Michele,

just a first thought. You may checkout the Turbine archetype (see below) 
and get first a running Turbine 5 default project and proceed from there 
... 

If you did achieve this first step successfully (you need Java 8 and maven 
3.x at least) update step-by-step with your custom settings (templates, 
and conf-folder). Compare this new settings with your old and upgrade step 
by step either in the new or in the old place. 

I would recommend to update in the new project settings, that is to 
identify your customizations (services/templates/actions) and add to the 
newly generated project. 
You may easily restart again by regenerating it again .. On the other side 
if you decide upgrading your old settings in-place - you have to consider 
more intricaties, as described in the migration pages you mentioned, 
update to TurbineYaafiComponentService, check 
WEB-INF/conf/turbine-classic-pipeline.xml and all the main Turbine 
configuration files in Web-INF/conf. E.g. some packages have changed, most 
importantly e.g. 
services.RunDataService.default.parameter.parser=org.apache.fulcrum.parser.DefaultParameterParser,
 
of course you need the new pom.xml ..


A description of how to start with Turbine archetype is described  in the 
Turbine project pages, https://turbine.apache.org/turbine-concepts.html#.


mvn archetype:generate

then filtering with 

org.apache.turbine:turbine-webapp-5.0
or
org.apache.turbine:

and select e.g.

remote: org.apache.turbine:turbine-webapp-5.0

Read also 
https://github.com/apache/turbine-archetypes/blob/master/src/main/resources/archetype-resources/docs/README.md
 
or  https://github.com/apache/turbine-archetypes/tree/5.0-1.0.3.

You need to upgrade all component versions you mentioned

                 Turbine 2.3.3
                 Maven 1.1
                 Torque 3.3
                 Velocity 1.5

You need at least Java 8, Maven 3.5. Turbine 5 uses Torque 4 and Velocity 
2.0.

Last but not least, you may take advantage from the fact that all old 
subversion code is migrated to git, that is you could easily and quickly 
compare and checkout all versions in github!

https://github.com/apache/turbine-core 

For further background use https://github.com/apache/turbine-build to get 
an overview of all the components currently supported.

If you need further assistance, ask here again providing more information.


Thanks and good luck!


Best regards, 

Georg



Von:    Michele Rabanal <[email protected]>
An:     [email protected]
Datum:  07.07.2023 22:53
Betreff:        Upgrading from Turbine 2.3.3 to 5.0



Hello!

I am an applications developer on the Turbine framework.  Many years ago I 
upgraded Turbine from 2.2 to 2.3. 
For security reasons, I am being asked to upgrade Turbine again.  I 
understand that I should be on Turbine 5.0, but
I'm not clear on exactly how to begin! 
 
I have tried to follow 
https://turbine.apache.org/turbine/turbine-5-0/howto/migrate-from-2_3-howto.html
 
<
https://turbine.apache.org/turbine/turbine-5-0/howto/migrate-from-2_3-howto.html
>, but I've gotten
nowhere and really just need more basic instructions. 
 
Questions:
1) Should I do an actual in-place upgrade or should I build a new 
framework and then move my current project over into it?
 
2) Do I need to use a more current version of Maven?  And if so, what is 
the best way to get my current project
   into that new Maven structure?  and into the new Turbine structure?
 
I would appreciate any help!  I've tried many different approaches, but 
cannot figure this out. Installing/upgrading 
software is not my main role!  If there are documents with more details, 
that would be great. 
 
Here's the path of my current project:
 
.maven/cache/maven-turbine-plugin-1.3/plugin-resources/flavor/turbine-2.3.3/inventory
 
    I believe these are the components/versions I'm using:
                 Turbine 2.3.3
                 Maven 1.1
                 Torque 3.3
                 Velocity 1.5

Thanks so much!

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to