I've been developing software for over 15 years working in Delphi and now Java. This site is a home for my open source projects, writings, articles and tutorials mainly focusing on Java and Java EE. Andy is a DZone MVB and is not an employee of DZone and has posted 34 posts at DZone. You can read more from them at their website. View Full User Profile

JBoss Java EE 6 Spec Dependency in Maven

02.06.2011
| 8853 views |
  • submit to reddit

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 :

<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>1.0.0.Final</version>
<type>pom</type>
</dependency>

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.

From http://www.andygibson.net/blog/quickbyte/jboss-java-ee-6-spec-dependency-in-maven/

Published at DZone with permission of Andy Gibson, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Tags:

Comments

Justin Lee replied on Sun, 2011/02/06 - 1:58pm

Good thing we didn't have to wait on jboss all this time: http://download.java.net/maven/2/javax/javaee-api/6.0/

Wujek Srujek replied on Sun, 2011/02/06 - 3:28pm

@Justin - have you tried reading the post and the linked post by A. Bien? Probably not. Have you tried using the jars from this repo for anytning more than compilation in scope provided? Like in unit tests or sth? You sure didn't, otherwise you would know that exactly these are the crippled jars that are useless pretty much for anytning.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.