Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Maven
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p>This page describes the maven standard for project version numbers. Maven's dependency resolution uses the project version string to correctly order project versions. </p> <h3>Basic Version String</h3> <p>The format of the version String should look like the following:</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre><major version>[.<minor version>[.<incremental version>[-<qualifier>]]]</pre></td></tr></table> <p>For example, the string 2.0.1-beta-1 has a major version "2", a minor version "0" a, an incremental version "1", and a qualifier "beta-1". The String "5" has only a major version and none of the other components.</p> <h3>Using Snapshot Versions</h3> <p>Maven includes a special qualifier string called snapshot. This is can be any standard version string that ends with the qualifier "-SNAPSHOT". Snapshot version are handled differently than the standard version strings in that Maven does not assume these artifacts are static. Snapshot artifacts are intended to be temporary release builds and therefore will change and/or be removed over time.</p> <h3>Project Version Parsing</h3> <p>The code used to parse a version string in Maven can be found in the public svn repository.</p> <ul> <li><a href="http://svn.apache.org/viewvc/maven/components/archive/maven-2.1.x/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java?view=markup">Maven 2.x</a></li> <li><a href="http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java?view=markup">Maven 3</a></li> </ul> <h3>Sorting version numbers</h3> <p>When using version ranges, it is often necessary to sort several version strings to select the correct dependency version. For two valid version strings, each component of the version string is compared separately until a difference is found. For the numeric portions of the version, the higher number is considered newer than the lower version number. For the non-numeric portion of the version string (qualifier), the strings are handled as follows.</p> <p>Maven 2.x used alphabetical order to sort the qualifiers. With earlier letters considered older than later letters. Thus "alpha" is considered older than "beta". And no qualifier is considered newer than any qualifier.</p> <p>Maven 3 has some hard-coded qualifier strings: "alpha", "beta", "rc", "ga", etc. These are given a predetermined order. For more details, see the above links to the source.</p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced