HHH-3781 - Echo version information to the console in main()

git-svn-id: https://svn.jboss.org/repos/hibernate/core/branches/Branch_3_3@16872 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2009-06-22 21:58:45 +00:00
parent b92155efeb
commit 2961dbf9d1
3 changed files with 15 additions and 1 deletions

View File

@ -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>

View File

@ -32,4 +32,8 @@ public class Version {
public static String getVersionString() {
return "3.3.2-SNAPSHOT";
}
public static void main(String[] args) {
System.out.println( "Hibernate version " + getVersionString() );
}
}

View File

@ -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>