Hi Chris,
I follow your suggestion to use the version info in the jar file, with the
following code:
```
String VERSION =
IoTDBConstant.class.getPackage().getImplementationVersion();
```
and add configuration in assembly-plugin:
```
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
```
It works if I use `mvn package` to get the executable jar.
However, a NULL string will be returned if I run the program using IDEA (it
make sense because in IDEA, maven does not generate a jar and put the
properties into the jar file),
is there any suggestion?
Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University
黄向东
清华大学 软件学院
Xiangdong Huang <[email protected]> 于2020年6月15日周一 上午1:15写道:
> > Perhaps it would be a good idea to get the version information in the
> commend line client from the version information maven puts in the jar?
>
> Good idea and totally agree!
> I will never want to release a new RC version again because of issues like
> this...
>
> Best,
> -----------------------------------
> Xiangdong Huang
> School of Software, Tsinghua University
>
> 黄向东
> 清华大学 软件学院
>
>
> Christofer Dutz <[email protected]> 于2020年6月14日周日 下午3:37写道:
>
>> Perhaps it would be a good idea to get the version information in the
>> commend line client from the version information maven puts in the jar?
>>
>> This way it's automatically updated during the build.
>>
>> Chris
>> ------------------------------
>> *Von:* Xiangdong Huang <[email protected]>
>> *Gesendet:* Samstag, 13. Juni 2020 03:47
>> *An:* [email protected] <[email protected]>
>> *Betreff:* [discuss] Apache IoTDB 0.10.0 (incubating) RC1 release
>>
>> Hi all,
>>
>> we can discuss the issue about releasing v0.10.0 RC1 here.
>>
>> Best,
>> -----------------------------------
>> Xiangdong Huang
>> School of Software, Tsinghua University
>>
>> 黄向东
>> 清华大学 软件学院
>>
>