| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";> | |
| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one or more | |
| contributor license agreements. See the NOTICE file distributed with | |
| this work for additional information regarding copyright ownership. | |
| The ASF licenses this file to You under the Apache License, Version 2.0 | |
| (the "License"); you may not use this file except in compliance with | |
| the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and | |
| limitations under the License. | |
| --> | |
| <html> | |
| <head> | |
| <link rel="shortcut icon" href="http://aries.apache.org/images/favicon.ico"></link> | |
| <link type="text/css" rel="stylesheet" href="http://aries.apache.org/resources/site.css"></link> | |
| </script><script src="http://aries.apache.org/resources/menus.js" language="javascript" type="text/javascript"></script> | |
| <meta name="keywords" content="..."/> | |
| <meta name="description" content="..." /> | |
| <title> | |
| Apache Aries - | |
| </title> | |
| </head> | |
| <body onload="SetMenu()"> | |
| <table width="100%" cellpadding="0" cellspacing="0"> | |
| <tr width="100%"> | |
| <td id="cell-0-0" colspan="2"> </td> | |
| <td id="cell-0-1"> </td> | |
| <td id="cell-0-2" colspan="2"> </td> | |
| </tr> | |
| <tr width="100%"> | |
| <td id="cell-1-0"> </td> | |
| <td id="cell-1-1"> </td> | |
| <td id="cell-1-2"> | |
| <div style="padding: 5px;"> | |
| <div id="banner"> | |
| <!-- Banner --> | |
| <table border="0" cellpadding="0" cellspacing="0" width="100%"> | |
| <tr> | |
| <td align="left" class="topbardiv" nowrap=""> | |
| <a href="http://aries.apache.org/" title="Apache Aries"> <img border="0" src="http://aries.apache.org/images/Arieslogo_Horizontal.gif"> </a> | |
| </td> | |
| <td align="right" nowrap=""> | |
| <a href="http://www.apache.org/" title="The Apache Software Foundation"> <img border="0" src="http://aries.apache.org/images/apache_feather.png"> </a> | |
| </td> | |
| </tr> | |
| </table> | |
| <!-- Banner --> | |
| </div> | |
| </div> | |
| <div id="top-menu"> | |
| <table border="0" cellpadding="1" cellspacing="0" width="100%"> | |
| <tr> | |
| <td> | |
| <div align="left"> | |
| <!-- Breadcrumbs --> | |
| <!-- Breadcrumbs --> | |
| </div> | |
| </td> | |
| <td> | |
| <div align="right"> | |
| <!-- Quicklinks --> | |
| <DIV style="padding: 5px 5px 0px 25px;"> | |
| <FORM action="http://www.google.com/search" method="get" style="font-size: 10px;"> | |
| <A href="http://www.apache.org/licenses/LICENSE-2.0.html" class="external-link" rel="nofollow">License</A> | |
| <INPUT name="ie" type="hidden" value="UTF-8"></INPUT> | |
| <INPUT name="oe" type="hidden" value="UTF-8"></INPUT> | |
| <INPUT maxlength="255" name="q" size="15" type="text" value></INPUT> | |
| <INPUT name="btnG" type="submit" value="Search"></INPUT> | |
| <INPUT name="domains" type="hidden" value="aries.apache.org"></INPUT> | |
| <INPUT name="sitesearch" type="hidden" value="aries.apache.org"></INPUT> | |
| </FORM> | |
| </DIV> | |
| <!-- Quicklinks --> | |
| </div> | |
| </td> | |
| </tr> | |
| </table> | |
| </div> | |
| </td> | |
| <td id="cell-1-3"> </td> | |
| <td id="cell-1-4"> </td> | |
| </tr> | |
| <tr width="100%"> | |
| <td id="cell-2-0" colspan="2"> </td> | |
| <td id="cell-2-1"> | |
| <table> | |
| <tr height="100%" valign="top"> | |
| <td height="100%"> | |
| <div id="wrapper-menu-page-right"> | |
| <div id="wrapper-menu-page-top"> | |
| <div id="wrapper-menu-page-bottom"> | |
| <div id="menu-page"> | |
| <!-- NavigationBar --> | |
| <style type="text/css"> | |
| /* The following code is added by mdx_elementid.py | |
| It was originally lifted from http://subversion.apache.org/style/site.css */ | |
| /* | |
| * Hide class="elementid-permalink", except when an enclosing heading | |
| * has the :hover property. | |
| */ | |
| .headerlink, .elementid-permalink { | |
| visibility: hidden; | |
| } | |
| h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style> | |
| <div onclick="SwitchMenu('documentation')" id="documentationTitle" class="menutitle">Documentation</div> | |
| <div id="documentation" class="menuitemgroup"> | |
| <div class="menuitem"> | |
| <a href="/documentation/integrators-guide.html">Integrators Guide</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/documentation/articles.html">Articles</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="https://svn.apache.org/repos/asf/aries/slides/">Slides</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/documentation/tutorials.html">Tutorials</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/documentation/tools.html">Tools</a> | |
| </div> | |
| </div> | |
| <div onclick="SwitchMenu('modules')" id="modulesTitle" class="menutitle">Modules</div> | |
| <div id="modules" class="menuitemgroup"> | |
| <div class="menuitem"> | |
| <a href="/modules/samples.html">Samples</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/async-svcs.html">Asynchronous Services</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/blueprint.html">Blueprint</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/blueprint-maven-plugin.html">Blueprint-maven-plugin</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/blueprintannotation.html">Blueprint Annotations</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/blueprintnoosgi.html">Blueprint No-OSGi</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/blueprintweb.html">Blueprint Web</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/containers.html">Containers</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/esaanttask.html">ESA Ant Task </a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/ebamavenpluginproject.html">EBA Maven Plugin </a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/esamavenpluginproject.html">ESA Maven Plugin </a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/jmx.html">JMX</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/jndiproject.html">JNDI</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/jpaproject.html">JPA</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/transactioncontrol.html">Transaction Control Service</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/transactionsproject.html">Transactions</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/rsa.html">Remote Service Admin (RSA)</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/spi-fly.html">SPI Fly</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/subsystems.html">Subsystems</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/modules/applications.html">Applications (obsolete)</a> | |
| </div> | |
| </div> | |
| <div onclick="SwitchMenu('downloads')" id="downloadsTitle" class="menutitle">Downloads</div> | |
| <div id="downloads" class="menuitemgroup"> | |
| <div class="menuitem"> | |
| <a href="/downloads/currentreleases.html">Current Releases</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/downloads/testresults.html">Compliance Tests</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/downloads/archived-releases.html">Archived Releases</a> | |
| </div> | |
| </div> | |
| <div onclick="SwitchMenu('community')" id="communityTitle" class="menutitle">Community</div> | |
| <div id="community" class="menuitemgroup"> | |
| <div class="menuitem"> | |
| <a href="/community/resources.html">Community Resources</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/community/gettinginvolved.html">Getting Involved</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/community/people.html">Who we are</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/community/boardreports.html">Board Reports</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/community/logos.html">Logos for Users</a> | |
| </div> | |
| </div> | |
| <div onclick="SwitchMenu('development')" id="developmentTitle" class="menutitle">Development</div> | |
| <div id="development" class="menuitemgroup"> | |
| <div class="menuitem"> | |
| <a href="/development/buildingaries.html">Building Aries </a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/development/guidelines.html">Cording Guidelines</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/development/architecture.html">Architecture</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/development/releasingaries.html">Releasing Aries </a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/development/compliancetesting.html">OSGi Compliance Tests </a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="/development/maintainingthewebpages.html">Web Site Maintenance </a> | |
| </div> | |
| </div> | |
| <div onclick="SwitchMenu('sponsorship')" id="sponsorshipTitle" class="menutitle">Sponsorship</div> | |
| <div id="sponsorship" class="menuitemgroup"> | |
| <div class="menuitem"> | |
| <a href="http://www.apache.org/foundation/thanks.html">Thanks</a> | |
| </div> | |
| <div class="menuitem"> | |
| <a href="http://www.apache.org/foundation/sponsorship.html">Sponsoring Apache</a> | |
| </div> | |
| </div> | |
| <div class="promotion"> | |
| <a href="http://www.apache.org/events/current-event.html"> | |
| <img src="http://www.apache.org/events/current-event-125x125.png" width="125" height="125"/> | |
| </a> | |
| </div> | |
| <!-- NavigationBar --> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </td> | |
| <td height="100%" width="100%"> | |
| <!-- Content --> | |
| <div class="wiki-content"><style type="text/css"> | |
| /* The following code is added by mdx_elementid.py | |
| It was originally lifted from http://subversion.apache.org/style/site.css */ | |
| /* | |
| * Hide class="elementid-permalink", except when an enclosing heading | |
| * has the :hover property. | |
| */ | |
| .headerlink, .elementid-permalink { | |
| visibility: hidden; | |
| } | |
| h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style> | |
| <h1 id="aries-versioning-policy">Aries versioning policy<a class="headerlink" href="#aries-versioning-policy" title="Permanent link">¶</a></h1> | |
| <p>The Aries project aims to implement OSGi semantic versioning as described <a href="http://www.osgi.org/wiki/uploads/Links/SemanticVersioning.pdf">here</a>.</p> | |
| <p>The implementation of semantic versioning has a number of practical implications for managing a project. These are | |
| outlined in this section. </p> | |
| <h2 id="package-versions">Package versions<a class="headerlink" href="#package-versions" title="Permanent link">¶</a></h2> | |
| <h3 id="exported-packages">Exported packages<a class="headerlink" href="#exported-packages" title="Permanent link">¶</a></h3> | |
| <p>Versions are usually specified in packageinfo files with the source code. The default-parent pom is | |
| configures (in the build resources section) to expect packageinfo files. If your pom has a build | |
| resources section it replaces what is inherited from the default-parent, so you may need to reproduce | |
| the section which specifies where packageinfo can be found.</p> | |
| <p>Developers <strong>must</strong> increment the versions in packageinfo files in strict accordance with OSGi | |
| semantic versioning when they make changes to a package. The version should relate to the <strong>most | |
| recent release of the package</strong> and not to the version found in trunk. For example:</p> | |
| <h4 id="scenario-1-making-changes-to-a-package-with-released-version-abc">Scenario 1, making changes to a package with released version a.b.c<a class="headerlink" href="#scenario-1-making-changes-to-a-package-with-released-version-abc" title="Permanent link">¶</a></h4> | |
| <ul> | |
| <li>Developer A fixes a bug in the package and increments it's version to a.b.c+1</li> | |
| <li>Developer B fixes another bug in the package but leaves the version at a.b.c+1 </li> | |
| </ul> | |
| <h4 id="scenario-2-making-changes-to-a-package-with-released-version-abc">Scenario 2, making changes to a package with released version a.b.c<a class="headerlink" href="#scenario-2-making-changes-to-a-package-with-released-version-abc" title="Permanent link">¶</a></h4> | |
| <ul> | |
| <li>Developer A adds a method to an interface in the package and increments it's version to a.b+1.0</li> | |
| <li>Developer B fixes a bug in the package, leaves its version at a.b+1.0</li> | |
| </ul> | |
| <h4 id="scenario-3-making-changes-to-a-package-with-released-version-abc">Scenario 3, making changes to a package with released version a.b.c<a class="headerlink" href="#scenario-3-making-changes-to-a-package-with-released-version-abc" title="Permanent link">¶</a></h4> | |
| <ul> | |
| <li>Developer A fixes a bug in the package, and increments its version to a.b.c+1</li> | |
| <li>Developer B deletes a method from an interface and increases the package version to a+1.0.0. Note the final '0' here, developer B's change is more significant | |
| so there is no need to reflect Developer A's change with a micro version of '1'. Indeed, a version of a+1.0.1 would imply a bug fix to version a+1.0.0.</li> | |
| </ul> | |
| <h3 id="importing-packages">Importing packages<a class="headerlink" href="#importing-packages" title="Permanent link">¶</a></h3> | |
| <p>The bnd default version range policy for imports is the consumer policy (==, +). Implementers of interfaces will need to | |
| override this. For example as an implementer of an interface the version range | |
| would be the provider policy (==,=+). | |
| The policy can be set by using the Maven property <aries.osgi.version.policy>, see the default-parent | |
| pom for an example.</p> | |
| <h2 id="bundle-versions">Bundle versions<a class="headerlink" href="#bundle-versions" title="Permanent link">¶</a></h2> | |
| <p><strong>Note: Bundle versions are changed at release time and only by the release manager. Bundle versions are not updated during development.</strong></p> | |
| <p>OSGi semantic versioning applies to bundles as well as packages. When releasing a new version of a bundle | |
| the change in the bundle version should give some indication of nature of the changes to the bundle. | |
| In Aries the bundle version is the same as version of the Maven artifact version. | |
| During development, in trunk, the Maven artifact version will be:</p> | |
| <ul> | |
| <li>x.y.(z+1)-SNAPSHOT </li> | |
| </ul> | |
| <p>Where x.y.z is the most recent release of the bundle</p> | |
| <p>During the release process the Maven release plugin asks for a the subsequent version to use in the module's pom after the release has taken place. The default is to increment the last digit and add -SNAPSHOT.</p> | |
| <p>For example, if proxy is released at version 1.0.0, the development version of proxy in trunk will become 1.0.1-SNAPSHOT.</p> | |
| <p>In addition, after a release, modules dependencies should refer to the lowest | |
| released version providing enough exported functionality the bundle | |
| requires. This ensures the import version is automatically set correctly | |
| to allow for loose coupling supported by OSGi.</p> | |
| <p>For example, bundles which depend on proxy (e.g. blueprint) will be set to depend on the released version of proxy. Immediately after | |
| a release of proxy at say 1.0.0 and a release of blueprint at 1.2.0, the development version of blueprint in trunk will be 1.2.1-SNAPSHOT | |
| but the version of proxy that it depends on will be 1.0.0.</p> | |
| <h3 id="assigning-a-bundle-version-number-at-release-time">Assigning a bundle version number at release time<a class="headerlink" href="#assigning-a-bundle-version-number-at-release-time" title="Permanent link">¶</a></h3> | |
| <p>At release time the release version of the bundle must be assigned by the release manager after reviewing | |
| the changes to the bundle's package versions since the last release. This is not a particularly time consuming task as long as | |
| packageinfo files are used for versioning packages.</p> | |
| <p>So, for example, if proxy has a version of 1.0.1-SNAPSHOT in trunk but one of the API's that is exported by proxy | |
| has changed its package version from 1.3.4 to 2.0.0 in trunk, the bundle version would be incremented | |
| to 2.0.0 on release to indicate an incompatible change in (at least) one of its packages.</p> | |
| <p>Bundles that don't export any packages will still change version when bugs are fixed. In this case | |
| the new release version will be x.y.(z+1) if the last release was x.y.z.</p></div> | |
| <!-- Content --> | |
| </td> | |
| </tr> | |
| </table> | |
| </td> | |
| <td id="cell-2-2" colspan="2"> </td> | |
| </tr> | |
| <tr width="100%"> | |
| <td id="cell-3-0"> </td> | |
| <td id="cell-3-1"> </td> | |
| <td id="cell-3-2"> | |
| <div id="footer"> | |
| <!-- Footer --> | |
| <div id="site-footer"> | |
| <a href="http://aries.apache.org/privacy-policy.html";>Privacy | |
| Policy</a> | |
| </div> | |
| <!-- Footer --> | |
| </div> | |
| </td> | |
| <td id="cell-3-3"> </td> | |
| <td id="cell-3-4"> </td> | |
| </tr> | |
| <tr width="100%"> | |
| <td id="cell-4-0" colspan="2"> </td> | |
| <td id="cell-4-1"> </td> | |
| <td id="cell-4-2" colspan="2"> </td> | |
| </tr> | |
| </table> | |
| </body> | |
| </html> |