Last modified by Thomas Mortagne on 2017/03/24

From version 5.1
edited by Marius Dumitru Florea
on 2016/04/07
Change comment: There is no comment for this version
To version 8.1
edited by Thomas Mortagne
on 2016/04/07
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.mflorea
1 +XWiki.ThomasMortagne
Content
... ... @@ -22,10 +22,27 @@
22 22  
23 23  = For Developers =
24 24  
25 -== <developer feature N> ==
25 +== Standard java.lang.Package properties ==
26 26  
27 -<description of developer feature 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>
... ... @@ -36,6 +36,7 @@
36 36  
37 37  * [[Infinispan 8.2.1>>http://jira.xwiki.org/browse/XWIKI-13293]]
38 38  * [[slf4j 1.7.21>>http://jira.xwiki.org/browse/XCOMMONS-958]]
56 +* [[commons-compress 1.11>>http://jira.xwiki.org/browse/XCOMMONS-960]]
39 39  
40 40  == Miscellaneous ==
41 41  

Get Connected