Question

I would like to develope Magnolia Standard Templating Kit (STK) and chanche some of its Features using eclipse and Apache Tomcat. For this purpose I have checked out Magnolia STK from git Repo as discriped here

Now I would like to add the STK to the Apache Tomcat. I have created Tomcat Server as follow: in Eclipse right mouse click -> new -> Server tomcat v7.0 Server. In this window new Server I can not see the STK and therefore can not add it to the server My Question is: How to add the STK Project to the Apache Tomcat Server or what is the best practice to develop magnoila stk with eclipse?

Was it helpful?

Solution

STK is a module, it's not a web app. You need to build a web app that you deploy in Tomcat. To build a web app (with maven) you can just overlay magnolia-empty-webapp and add dependency to STK or you can simply overlay magnolia-bundled-webapp that includes STK (among other modules).

However consider also this: To extend STK you don't need to change it directly, you can just create your own module with dependency on STK and reconfigure default implementations of models or whatever else you need to change with your own impl of same interfaces. This way you can easily upgrade to newer versions of STK while keeping your changes safely separated.

You might also want to read this post about building projects based on Magnolia.

HTH, Jan

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top