You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Mike Kienenberger (JIRA)" <ji...@apache.org> on 2015/07/27 19:17:04 UTC

[jira] [Commented] (CAY-2022) Add Implementation-Version to jar file MANIFEST.MF files

    [ https://issues.apache.org/jira/browse/CAY-2022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14643061#comment-14643061 ] 

Mike Kienenberger commented on CAY-2022:
----------------------------------------

Index: pom.xml
===================================================================
--- pom.xml	(revision 1692897)
+++ pom.xml	(working copy)
@@ -744,6 +744,18 @@
 					<artifactId>japp-maven-plugin</artifactId>
 					<version>3.0</version>
 				</plugin>
+				<plugin>
+					<groupId>org.apache.maven.plugins</groupId>
+					<artifactId>maven-jar-plugin</artifactId>
+					<configuration>
+						<archive>
+							<manifest>
+							    <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+							    <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
+							</manifest>
+						</archive>
+					</configuration>
+				</plugin>
 
 			</plugins>
 		</pluginManagement>


Still need to port it over from svn to git

> Add Implementation-Version to jar file MANIFEST.MF files
> --------------------------------------------------------
>
>                 Key: CAY-2022
>                 URL: https://issues.apache.org/jira/browse/CAY-2022
>             Project: Cayenne
>          Issue Type: Improvement
>    Affects Versions: 4.0.M3
>            Reporter: Mike Kienenberger
>            Assignee: Mike Kienenberger
>            Priority: Minor
>
> Joe Baldwin is looking for an easy way to identify the current cayenne version from code.
> If we add Implementation-Version to each jar's MANIFEST file, then code such as the following works.
>          Object object = new CayenneRuntimeException();
>         System.out.println("Implementation Version: " +
> object.getClass().getPackage().getImplementationVersion());



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)