Skip to content

Commit

Permalink
change version info
Browse files Browse the repository at this point in the history
  • Loading branch information
adyliu committed Dec 25, 2013
1 parent ac63dbf commit b819635
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.0
${project.version} build ${timestamp}
9 changes: 6 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
<name>jafka</name>
<url>https://github.com/adyliu/jafka</url>
<description>A fast distributed publish-subscribe messaging system.</description>
<properties>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
</properties>
<scm>
<connection>scm:git:[email protected]:adyliu/jafka.git</connection>
<developerConnection>scm:git:[email protected]:adyliu/jafka.git</developerConnection>
Expand Down Expand Up @@ -141,9 +145,8 @@
<Specification-Title>${project.artifactId}</Specification-Title>
<Specification-Version>${project.version}</Specification-Version>
<Specification-Vendor>Ady Liu</Specification-Vendor>
<Specification-Vendor>${project.artifactId}</Specification-Vendor>
<Implementation-Version>${project.version}</Implementation-Version>
<Implementation-Title>Ady Liu</Implementation-Title>
<Implementation-Title>${project.artifactId}</Implementation-Title>
<Implementation-Version>${timestamp}</Implementation-Version>
<Url>${project.url}</Url>
</manifestEntries>
</archive>
Expand Down
1 change: 1 addition & 0 deletions src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<file>
<source>VERSION</source>
<outputDirectory>/</outputDirectory>
<filtered>true</filtered>
</file>
</files>
<fileSets>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/sohu/jafka/mx/ServerInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public ServerInfo() {
public String getVersion() {
String version = null;
try {
version = ServerInfo.class.getPackage().getImplementationVersion();
version = ServerInfo.class.getPackage().getSpecificationVersion();
} catch (Exception e) {
}
return version != null ? version : "1.x";
return version != null ? version : "";
}

@Override
Expand Down

0 comments on commit b819635

Please sign in to comment.