Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
392 views
in Technique[技术] by (71.8m points)

opc ua - Milo does not show the version number anymore when I create a standalone assembly

Normally the Milo OPC UA client prints the version number:
Eclipse Milo OPC UA Stack version: 0.5.3

But when I create a single jar (with Maven) then Milo shows:
Eclipse Milo OPC UA Stack version: dev

I mean it is not really a problem but I wonder why it is like this and sure it would be more nice if the correct version number would be shown...

question from:https://stackoverflow.com/questions/65907722/milo-does-not-show-the-version-number-anymore-when-i-create-a-standalone-assembl

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The version numbers are placed in META-INF/MANIFEST.MF files during the build and if your Uber-jar process removed or replaced the manifest with one from another dependency then there is no way for the version to be read any more and it will default to dev.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...