[SIDP-206] - SessionManagerEntry's back reference to the SessionManager object interferes with clustering
[SIDP-209] - Enforce SAML 2 metadata SPSSODescriptor/@AuthnRequestsSigned
[SIDP-214] - Installer needs to put (at least) bcprov onto the calsspath before it runs ant
-[SIDP-222] - Template engine used by LDAP and database connectors throw an NPE on startup
\ No newline at end of file
+[SIDP-222] - Template engine used by LDAP and database connectors throw an NPE on startup
+[SIDP-224] - Add version information in library JAR manifest and provide command line tool to view it
\ No newline at end of file
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <index>true</index>
+ <manifestEntries>
+ <Main-Class>edu.internet2.middleware.shibboleth.idp.Version</Main-Class>
+ </manifestEntries>
+ <manifestSections>
+ <manifestSection>
+ <name>edu/internet2/middleware/shibboleth/idp/</name>
+ <manifestEntries>
+ <Implementation-Title>${pom.artifactId}</Implementation-Title>
+ <Implementation-Version>${pom.version}</Implementation-Version>
+ <Implementation-Vendor>www.opensaml.org</Implementation-Vendor>
+ </manifestEntries>
+ </manifestSection>
+ </manifestSections>
+ </archive>
+ </configuration>
+ </plugin>
</plugins>
</build>
/*
- * Copyright [2007] [University Corporation for Advanced Internet Development, Inc.]
+ * Copyright 2008 University Corporation for Advanced Internet Development, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
package edu.internet2.middleware.shibboleth.idp;
-/**
- * Application that outputs the current IdP version.
- */
-public final class Version {
-
- /** Current IdP version. */
- public static final String VERSION = "$IDP_VERSION$";
-
- /** Constructor. */
- private Version() {
-
- }
+/** Class for printing the version of this library. */
+public class Version {
/**
- * Application entry point.
+ * Main entry point to program.
*
* @param args command line arguments
*/
public static void main(String[] args) {
- System.out.println("Shibboleth Identity Provider Version: " + VERSION);
+ Package pkg = Version.class.getPackage();
+ System.out.println(pkg.getImplementationTitle() + " version " + pkg.getImplementationVersion());
}
}
\ No newline at end of file