<
From version < 5.1 >
edited by Marius Dumitru Florea
on 2016/04/07
To version < 6.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>

Get Connected