So stage one of the port to K2 of polls has started - this stage consists of turning the tool into a standalone app prior to wiring in the k2 components. This is being done in the SAK-16313 branch. Some notes:
- Remove the parent declarion in the base pom.
- Remove all sakai dependencies from poms.
- Mock the external service - like a test mock you need most of the methods to return true or a string (not false and null)
- Update the entity broker code to use the entitbus - in the case of the polls ones AbstractEntityProvider will no longer be needed.
- Comment out the EntityBroker definitions (we will re-enable them when we wire up the sling kernel)
- Move the components xml files to tool/webbap/WEB-INF/
- add hibernate settings and define a transaction manager and session facory
- add the mysql driver to the tool pom so it gets deployed
- Update the RSF dependencies to to non-sakai versions
- Update the web.xml to remove the sakai references. I simply used the one from the RSF hello world app and added context loads for components.xml and the RSF evelovers
- there is no non sakai rich text evolver in RSF so you need to change your injection of richTextEvolver to plainTextEvolver.
- Added a plugin definition to target Java 1.5 in the poms
- add dependency management to the projects base pom for the dependencies that where defined in the Sakai master pom.