Changes for page Release Notes for XWiki 8.1 Milestone 2
Last modified by Thomas Mortagne on 2017/03/24
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.m florea1 +XWiki.ThomasMortagne - Content
-
... ... @@ -22,10 +22,27 @@ 22 22 23 23 = For Developers = 24 24 25 -== <developerfeatureN>==25 +== Standard java.lang.Package properties == 26 26 27 - <description ofdeveloperfeature N>27 +The following properties are now automatically added to all Maven jar modules MANIFEST files: 28 28 29 +{{code language="properties"}} 30 +Specification-Title: ${project.name} 31 +Specification-Version: ${project.version} 32 +Specification-Vendor: ${project.organization.name} 33 +Implementation-Title: ${project.name} 34 +Implementation-Version: ${project.version} 35 +Implementation-Vendor-Id: ${project.groupId} 36 +Implementation-Vendor: ${project.organization.name} 37 +Implementation-URL: ${project.url} 38 +{{/code}} 39 + 40 +And can be accessed using {{java.lang.Package}} from any class. For example: 41 + 42 +{{code language="java"}} 43 +String myVersion = this.getClass().getPackage().getImplementationVersion(); 44 +{{/code}} 45 + 29 29 == Deprecated and Retired projects == 30 30 31 31 <description of deprecated and retired projects>