Author: steve.ebersole(a)jboss.com
Date: 2009-06-22 17:58:45 -0400 (Mon, 22 Jun 2009)
New Revision: 16872
Modified:
core/branches/Branch_3_3/core/pom.xml
core/branches/Branch_3_3/core/src/main/java/org/hibernate/Version.java
core/branches/Branch_3_3/parent/pom.xml
Log:
HHH-3781 - Echo version information to the console in main()
Modified: core/branches/Branch_3_3/core/pom.xml
===================================================================
--- core/branches/Branch_3_3/core/pom.xml 2009-06-22 21:58:23 UTC (rev 16871)
+++ core/branches/Branch_3_3/core/pom.xml 2009-06-22 21:58:45 UTC (rev 16872)
@@ -88,6 +88,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/branches/Branch_3_3/core/src/main/java/org/hibernate/Version.java
===================================================================
--- core/branches/Branch_3_3/core/src/main/java/org/hibernate/Version.java 2009-06-22
21:58:23 UTC (rev 16871)
+++ core/branches/Branch_3_3/core/src/main/java/org/hibernate/Version.java 2009-06-22
21:58:45 UTC (rev 16872)
@@ -32,4 +32,8 @@
public static String getVersionString() {
return "3.3.2-SNAPSHOT";
}
+
+ public static void main(String[] args) {
+ System.out.println( "Hibernate version " + getVersionString() );
+ }
}
Modified: core/branches/Branch_3_3/parent/pom.xml
===================================================================
--- core/branches/Branch_3_3/parent/pom.xml 2009-06-22 21:58:23 UTC (rev 16871)
+++ core/branches/Branch_3_3/parent/pom.xml 2009-06-22 21:58:45 UTC (rev 16872)
@@ -156,7 +156,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