Community
Participate
Working Groups
We should track down where we have all our jetty archetypes and get them into a build that can be updated and released. Also to incorporate recent comments on dev list. ----- John Simone ✆ jsimone@salesforce.com via eclipse.org to jetty-dev show details 16:16 (11 minutes ago) I completely see your points. I don't want to introduce something that's already covered in documentation. I'll try my best to speak to the value that I see here. The embeddability of Jetty is well explained and people are generally aware of it. What this does goes a little further than the examples. There are some steps between the simple embedding examples and running a full fledged application. The Maven plugin works so well because it explicitly adds project dependencies to the classpath before it launches. That avoids issues like taglib resolution and makes the embedded server work more like a general purpose application server rather than something tailored to a single application. I haven't seen an example of doing the same thing outside of that plugin and without building an intermediary war file. I think that the flow of building an application with Maven, but then being able to launch it without Maven or anything else other than Java and project dependencies is nice and makes for a great dev/deploy flow. There were enough headaches, for me, in making this work that I want others to be able to skip the pain. This could be something that's just documented too, but since this still requires Maven it makes sense, to me, as an archetype. An archetype like this could be used two ways. It could start a project the way the existing archetypes are likely used. It is also lightweight enough that it can be used to create a new project that existing code can be brought into. In both cases the archetype is a faster path to the goal than following a "how to" would be because of the nature of the project structure.
adding Jan jan, do you know where the old archetypes we used to have are located? if you point me at them I'll get them into a git repo with this guys and make it so we can release them easier
Source for the archetype is available here (wasn't in the messages on the dev list): https://github.com/jsimone/embedded-jetty-archetype
Jesse, the old archetypes are located here: http://dist.codehaus.org/jetty/jetty-hightide-6-archetypes. -Michael
was hoping for their original source builds but I can recreate from there if needed
Hi Jesse, The old maven archetypes are at projectlocker: https://venture1.projectlocker.com/webtide/svn/sandbox/maven-archetypes I double-checked and you have permission to check that out. Boy, all those archetypes are exceedingly old now ... Jan
John, taking a closer look at your archetype I wonder if the jetty-runner might not be a better fit, or at least a more featured option, jan blogged about it a while back and its in codehaus git repo. http://blogs.webtide.com/janb/entry/jetty_runner
Commited to the codehaus side of the build as jetty-archetype-assembler mostly I just added a required parameter called jetty-version so when the user uses the archetype they can set the version of jetty they wish to use