Recent Maven Blogs

Searching with the Nexus REST API: Ruby

11/19/08 -

When you search for artifacts using http://repository.sonatype.org, the browser is querying the Nexus repository using a REST API. In this post, I’m going to show you some simple Ruby scripts which you can use to search the Maven repository ...

Use repository.sonatype.org to Search Central Maven Repository

11/19/08 -

If you are looking for the easiest way to search for artifacts in the Central Maven Repository, go to http://repository.sonatype.org. Sonatype maintains a publi instance of Nexus that can be used to search for artifacts by GAV (groupId, artifactId...

Searching the Maven Repository

11/11/08 -

A common question from Apache Maven users is “How do I search the central repository?” or “How do I find out what groupId or artifactId I should use for a specific dependency?” Use Sonatype’s Nexus installation at htt...

m2eclipse turns heads at the Stockholm JUG!

11/11/08 -

One of the users on the m2eclipse user list has some great feedback about a presentation he did at the Stockholm JUG on the best of breed Maven tooling which includes Nexus and m2eclipse. Apparently people are impressed with the Maven support insi...

General Framework For Model Inheritance

11/10/08 -

Maven 3.0 uses a new standalone component that handles inheritance and interpolation of a model in any format. The model needn’t even be XML based. If you can translate your model into a list of property-value pairs, you can use this framewo...

MySQL?s Zack Urlocker writes about Sonatype?s new CEO in InfoWorld

11/10/08 -

There’s are lots of people who already know that Mark de Visser is the new CEO of Sonatype, but Zack wrote a nice bit about it today in his InfoWorld blog: http://weblog.infoworld.com/openresource/archives/2008/11/marketing_maven.html I am r...

Appendix B. Appendix: Sun Specification Alternatives

The Apache Geronimo project maintains implementations of various enterprise Java specifications. Table B.1, “Alternate Spec Implementations Artifacts” lists the artifactId and artifact version for all of the specifications implemented by the Geronimo project. To use one of these dependencies, use a groupId of org.apache.geronimo.specs, locate the version of the Specification you want to use and reference the dependency with the Artifact Id and Artifact Version listed in Table B.1, “Alternate Spec Implementations Artifacts”.

Note

All artifacts in Table B.1, “Alternate Spec Implementations Artifacts”, have a groupId of org.apache.geronimo.specs.

Table B.1. Alternate Spec Implementations Artifacts

Specification Spec Version Artifact Id Artifact Version
Activation 1.0.2 geronimo-activation_1.0.2_spec 1.2
Activation 1.1 geronimo-activation_1.1_spec 1.0.1
Activation 1.0 geronimo-activation_1.0_spec 1.1
CommonJ 1.1 geronimo-commonj_1.1_spec 1.0
Corba 2.3 geronimo-corba_2.3_spec 1.1
Corba 3.0 geronimo-corba_3.0_spec 1.2
EJB 2.1 geronimo-ejb_2.1_spec 1.1
EJB 3.0 geronimo-ejb_3.0_spec 1.0
EL 1.0 geronimo-el_1.0_spec 1.0
Interceptor 3.0 geronimo-interceptor_3.0_spec 1.0
J2EE Connector 1.5 geronimo-j2ee-connector_1.5_spec 1.1.1
J2EE Deployment 1.1 geronimo-j2ee-deployment_1.1_spec 1.1
J2EE JACC 1.0 geronimo-j2ee-jacc_1.0_spec 1.1.1
J2EE Management 1.0 geronimo-j2ee-management_1.0_spec 1.1
J2EE Management 1.1 geronimo-j2ee-management_1.1_spec 1.0
J2EE 1.4 geronimo-j2ee_1.4_spec 1.1
JACC 1.1 geronimo-jacc_1.1_spec 1.0
JEE Deployment 1.1MR3 geronimo-javaee-deployment_1.1MR3_spec 1.0
JavaMail 1.3.1 geronimo-javamail_1.3.1_spec 1.3
JavaMail 1.4 geronimo-javamail_1.4_spec 1.2
JAXR 1.0 geronimo-jaxr_1.0_spec 1.1
JAXRPC 1.1 geronimo-jaxrpc_1.1_spec 1.1
JMS 1.1 geronimo-jms_1.1_spec 1.1
JPA 3.0 geronimo-jpa_3.0_spec 1.1
JSP 2.0 geronimo-jsp_2.0_spec 1.1
JSP 2.1 geronimo-jsp_2.1_spec 1.0
JTA 1.0.1B geronimo-jta_1.0.1B_spec 1.1.1
JTA 1.1 geronimo-jta_1.1_spec 1.1
QName 1.1 geronimo-qname_1.1_spec 1.1
SAAJ 1.1 geronimo-saaj_1.1_spec 1.1
Servlet 2.4 geronimo-servlet_2.4_spec 1.1.1
Servlet 2.5 geronimo-servlet_2.5_spec 1.1.1
STaX API 1.0 geronimo-stax-api_1.0_spec 1.0.1
WS Metadata 2.0 geronimo-ws-metadata_2.0_spec 1.1.1

Note

The version numbers in the Artifact Version column may be out of date by the time you read this book. To check on the version number, visit http://repo1.maven.org/maven2/org/apache/geronimo/specs/ in a web browser, and click on the artifactId you want to add. Choose the highest version of the spec you want to depend upon.

To illustrate how one would use Table B.1, “Alternate Spec Implementations Artifacts”, if we wanted to write some code in our project which interacted with the JTA 1.0.1B specification, we would need to add the following dependency to our project:

Example B.1. Adding JTA 1.0.1B to a Maven Project

<dependency>
  <groupId>org.apache.geronimo.specs</groupId>
  <artifactId>geronimo-jta_1.0.1B_spec</artifactId>
  <version>1.1.1</version>
</dependency>


Notice how the version of the artifact isn't going to line up with the version of the specification—the previous dependency configuration adds version 1.0.1B of the JTA specification using the artifact version of 1.1.1. Be aware of this when depending on the alternate Geronimo implementations, and always double check that you are using the latest artifact version number for your specifications.


Creative Commons License
Maven: The Definitive Guide by Sonatype, Inc. is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.
Based on a work at www.sonatype.com.

Favicon Report Typos, Errors, Ask Questions, Discuss, Share Your Ideas with us at Get Satisfaction