{"id":1733,"date":"2011-02-04T08:52:47","date_gmt":"2011-02-04T13:52:47","guid":{"rendered":"http:\/\/www.andygibson.net\/blog\/?p=1733"},"modified":"2011-02-17T09:43:35","modified_gmt":"2011-02-17T14:43:35","slug":"jboss-java-ee-6-spec-dependency-in-maven","status":"publish","type":"post","link":"http:\/\/www.andygibson.net\/blog\/quickbyte\/jboss-java-ee-6-spec-dependency-in-maven\/","title":{"rendered":"JBoss Java EE 6 spec dependency in Maven"},"content":{"rendered":"<p>Adam Bien wrote about the <a href=\"http:\/\/www.adam-bien.com\/roller\/abien\/entry\/trouble_with_crippled_java_ee\">Troubled with the crippled Java EE 6 APIs in Maven<\/a> and a solution for them. Another solution has presented itself now that JBoss has finalized the Java EE 6 spec pom and added it to their public repositories as of early January 2011.<\/p>\n<p>You can include the spec in your own project by adding the following to your <code>pom.xml<\/code> :<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;dependency&gt;\r\n\t&lt;groupId&gt;org.jboss.spec&lt;\/groupId&gt;\r\n\t&lt;artifactId&gt;jboss-javaee-6.0&lt;\/artifactId&gt;\r\n\t&lt;version&gt;1.0.0.Final&lt;\/version&gt;\r\n\t&lt;type&gt;pom&lt;\/type&gt;\r\n&lt;\/dependency&gt;\r\n<\/pre>\n<p>You may also need to add the JBoss repository to your <code>pom.xml<\/code> which is defined as :<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;repositories&gt;\r\n\t&lt;repository&gt;\r\n\t\t&lt;id&gt;repository.jboss.org&lt;\/id&gt;\r\n\t\t&lt;name&gt;JBoss Repository&lt;\/name&gt;\r\n\t\t&lt;url&gt;http:\/\/repository.jboss.org\/nexus\/content\/groups\/public-jboss\/&lt;\/url&gt;\r\n\t&lt;\/repository&gt;\r\n&lt;\/repositories&gt;\r\n\r\n<\/pre>\n<p>I&#8217;ll be adding this pom to the Knappsack archetypes to resolve some of the issues people have been facing with the broken spec dependency.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adam Bien wrote about the Troubled with the crippled Java EE 6 APIs in Maven and a solution for them. Another solution has presented itself now that JBoss has finalized the Java EE 6 spec pom and added it to their public repositories as of early January 2011. You can include the spec in your [&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":[74],"tags":[49,6,72,50,61,35,54],"_links":{"self":[{"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/posts\/1733"}],"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=1733"}],"version-history":[{"count":3,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/posts\/1733\/revisions"}],"predecessor-version":[{"id":1735,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/posts\/1733\/revisions\/1735"}],"wp:attachment":[{"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/media?parent=1733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/categories?post=1733"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.andygibson.net\/blog\/wp-json\/wp\/v2\/tags?post=1733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}