HHH-3982 - Apply build version to org.hibernate.Version

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16897 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2009-06-23 08:29:55 +00:00
parent 0fff799b2a
commit 6fa89c0c0c
2 changed files with 27 additions and 1 deletions

View File

@ -85,6 +85,32 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-injection-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>bytecode</goal>
</goals>
</execution>
</executions>
<configuration>
<bytecodeInjections>
<bytecodeInjection>
<expression>${pom.version}</expression>
<targetMembers>
<methodBodyReturn>
<className>org.hibernate.Version</className>
<methodName>getVersionString</methodName>>
</methodBodyReturn>
</targetMembers>
</bytecodeInjection>
</bytecodeInjections>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>

View File

@ -30,7 +30,7 @@ package org.hibernate;
*/
public class Version {
public static String getVersionString() {
return "3.5.0-SNAPSHOT";
return "[WORKING]";
}
public static void main(String[] args) {