简体   繁体   English

WAR文件的版本号

[英]Version number to WAR file

Is it possible to add version number to WAR file specific to weblogic server ?是否可以将版本号添加到特定于 weblogic 服务器的 WAR 文件中? To provide build files to client, they want us to get version number in WAR file.为了向客户端提供构建文件,他们希望我们在 WAR 文件中获取版本号。 Is it possible or is there any standard approach for this ?是否有可能或是否有任何标准方法?

PN : Also I'm using jDeveloper as an IDE. PN:我还使用 jDeveloper 作为 IDE。

It is appropriate to add version information to a JAR/WAR manifest file.将版本信息添加到 JAR/WAR 清单文件是合适的。 See here for more information.请参阅此处了解更多信息。

Specification-Title: Java Utility Classes
Specification-Version: 1.2
Specification-Vendor: Example Tech, Inc.
Implementation-Title: java.util
Implementation-Version: build57
Implementation-Vendor: Example Tech, Inc.

Other WebLogic components add a revision to the jar (war) file name, eg: xxx_warfile_rev1.0.war.其他 WebLogic 组件向 jar (war) 文件名添加修订,例如:xxx_warfile_rev1.0.war。 So a "_rev1.0" (or appropriate version) naming is at least consistent with other WebLogic functions.所以“_rev1.0”(或适当的版本)命名至少与其他WebLogic 功能保持一致。 Assuming you're only trying to version the entire .war as a single release, that's probably sufficient.假设您只是尝试将整个 .war 版本作为单个版本,这可能就足够了。

I managed to version the WAR file for weblogic through Manifest.mf file.我设法通过 Manifest.mf 文件对 weblogic 的 WAR 文件进行了版本控制。 If facing the same issue you can have a look at below mentioned URL -如果遇到同样的问题,您可以查看下面提到的 URL -

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/14-Redeployment--4465/redeploy.htm http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/14-Redeployment--4465/redeploy.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM