JBoss Java EE 6 spec dependency in Maven
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 own project by adding the following to your pom.xml
:
1 2 3 4 5 6 | < dependency > < groupId >org.jboss.spec</ groupId > < artifactId >jboss-javaee-6.0</ artifactId > < version >1.0.0.Final</ version > < type >pom</ type > </ dependency > |
You may also need to add the JBoss repository to your pom.xml
which is defined as :
1 2 3 4 5 6 7 | < repositories > < repository > < id >repository.jboss.org</ id > < name >JBoss Repository</ name > </ repository > </ repositories > |
I’ll be adding this pom to the Knappsack archetypes to resolve some of the issues people have been facing with the broken spec dependency.
2 thoughts on “JBoss Java EE 6 spec dependency in Maven”
Comments are closed.
I can’t seem to find it, neither in the apache repo or in JBoss:
https://repository.jboss.org/nexus/index.html#nexus-search;gav~org.jboss.spec~jboss-javaee-6.0~~~
Hey Anders,
The maven repo is at :
http://repository.jboss.org/nexus/content/groups/public-jboss/
You’ll need to add that as a repository and it is located at :
http://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/spec/jboss-javaee-6.0/
Cheers,
Andy