{"id":1343,"date":"2010-08-12T10:24:22","date_gmt":"2010-08-12T15:24:22","guid":{"rendered":"http:\/\/www.andygibson.net\/blog\/?p=1343"},"modified":"2010-08-13T09:29:52","modified_gmt":"2010-08-13T14:29:52","slug":"try-java-ee-6-without-the-commitment","status":"publish","type":"post","link":"http:\/\/www.andygibson.net\/blog\/news\/try-java-ee-6-without-the-commitment\/","title":{"rendered":"Try Java EE 6 without the commitment"},"content":{"rendered":"<p>The latest version of the Knappsack Maven Archetypes now supports creating Java EE 6 applications for servlet containers. These projects includes configuration for core Java EE 6 technologies such as JSF, CDI, JPA and Bean Validation and can be run from the command line using the embedded Jetty and Tomcat servlet containers.<\/p>\n<p>Also with this latest release, all the archetypes are available in the Central Maven Repository which means you can dive straight in and create a new Maven project using these archetypes :<br \/>\n<!--more--><\/p>\n<ol>\n<li>In the command line, or in a script file, issue the following :\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nmvn archetype:generate -DarchetypeGroupId=org.fluttercode.knappsack -DarchetypeArtifactId=jee6-servlet-minimal-archetype -DinteractiveMode=false -DarchetypeVersion=1.0.4 -DgroupId=org.application -DartifactId=servletminimal -Dpackage=org.application\r\n<\/pre>\n<p>This will create the new project based on the java ee 6 minimal servlet archetype.\n<\/li>\n<li>Go into the directory using <code>cd servletminimal<\/code><\/li>\n<li>In the project directory, issue the command <code>mvn clean jetty:run<\/code><\/li>\n<li>Navigate to <a href=\"http:\/\/localhost:8080\/servletminimal\/\">http:\/\/localhost:8080\/servletminimal\/<\/a> <\/li>\n<li>Tinker away with it<\/li>\n<\/ol>\n<div class=\"contentBox alignCenter\">\n<a href=\"http:\/\/www.andygibson.net\/blog\/wp-content\/uploads\/2010\/08\/screenshot.png\" target=\"_blank\"><img loading=\"lazy\" src=\"http:\/\/www.andygibson.net\/blog\/wp-content\/uploads\/2010\/08\/screenshot-300x188.png\" alt=\"Servlet Minimal Screenshot\" title=\"Servlet Minimal Screenshot\" width=\"300\" height=\"188\" class=\"alignnone size-medium wp-image-1349\" srcset=\"http:\/\/www.andygibson.net\/blog\/wp-content\/uploads\/2010\/08\/screenshot-300x188.png 300w, http:\/\/www.andygibson.net\/blog\/wp-content\/uploads\/2010\/08\/screenshot.png 974w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The latest version of the Knappsack Maven Archetypes now supports creating Java EE 6 applications for servlet containers. These projects includes configuration for core Java EE 6 technologies such as JSF, CDI, JPA and Bean Validation and can be run from the command line using the embedded Jetty and Tomcat servlet containers. Also with this [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[69],"tags":[73,49,72,27,32,61,35],"_links":{"self":[{"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/posts\/1343"}],"collection":[{"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/comments?post=1343"}],"version-history":[{"count":11,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/posts\/1343\/revisions"}],"predecessor-version":[{"id":1363,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/posts\/1343\/revisions\/1363"}],"wp:attachment":[{"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/media?parent=1343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/categories?post=1343"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/tags?post=1343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}