Author: steve.ebersole(a)jboss.com
Date: 2009-06-22 17:58:23 -0400 (Mon, 22 Jun 2009)
New Revision: 16871
Modified:
core/trunk/core/pom.xml
core/trunk/core/src/main/java/org/hibernate/Version.java
core/trunk/parent/pom.xml
Log:
HHH-3781 - Echo version information to the console in main()
Modified: core/trunk/core/pom.xml
===================================================================
--- core/trunk/core/pom.xml 2009-06-22 21:22:27 UTC (rev 16870)
+++ core/trunk/core/pom.xml 2009-06-22 21:58:23 UTC (rev 16871)
@@ -87,6 +87,16 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <mainClass>org.hibernate.Version</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
</plugins>
</build>
Modified: core/trunk/core/src/main/java/org/hibernate/Version.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/Version.java 2009-06-22 21:22:27 UTC (rev
16870)
+++ core/trunk/core/src/main/java/org/hibernate/Version.java 2009-06-22 21:58:23 UTC (rev
16871)
@@ -32,4 +32,8 @@
public static String getVersionString() {
return "3.5.0-SNAPSHOT";
}
+
+ public static void main(String[] args) {
+ System.out.println( "Hibernate version " + getVersionString() );
+ }
}
Modified: core/trunk/parent/pom.xml
===================================================================
--- core/trunk/parent/pom.xml 2009-06-22 21:22:27 UTC (rev 16870)
+++ core/trunk/parent/pom.xml 2009-06-22 21:58:23 UTC (rev 16871)
@@ -157,7 +157,7 @@
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
-
<Implementation-URL>${pom.url}</Implementation-URL>
+
<Implementation-URL>http://hibernate.org</Implementation-URL>
</manifestEntries>
</archive>
</configuration>
Show replies by date