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:
parent
0fff799b2a
commit
6fa89c0c0c
26
core/pom.xml
26
core/pom.xml
|
@ -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>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue