dev@glassfish.java.net

right way to use version numbers for modules

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Thu, 13 Mar 2008 12:57:20 -0700

I'm confused about version numbers in modules.

For example, I see the following in api/management/pom.xml:
     <groupId>javax.management.j2ee</groupId>
     <artifactId>management-api</artifactId>
     <version>1.1-1-SNAPSHOT</version>
     <name>Java EE Management API</name>

Then in api/javaee/pom.xml under <properties> I see:
         <management-api.version>1.1</management-api.version>


Are these two different animals? What is the right way to make a
dependency? For example, common/amx-api wants to depend on manag
         <dependency>
             <groupId>javax.management.j2ee</groupId>
             <artifactId>management-api</artifactId>
             <version>${management-api.version}</version>
             <scope>provided</scope>
         </dependency>

---
Lloyd L Chambers
lloyd.chambers_at_sun.com
Sun Microsystems, Inc