[英]How to modify existing jar file?
I need to modify gwt-log.jar file which is downloaded from maven repository.我需要修改从 maven 存储库下载的 gwt-log.jar 文件。 I need to change log4j version in this jar.
我需要在这个 jar 中更改 log4j 版本。
I have unzipped this jar and trying to modify it with intellij idea but dependences are not resolved.我解压了这个 jar 并尝试用 intellij idea 修改它,但依赖关系没有解决。 So, how can I do it with intellij idea and build jar again?
那么,我怎样才能用intellij idea重新构建jar呢?
Fork and clone https://github.com/fredsa/gwt-log using the terminal.使用终端分叉并克隆https://github.com/fredsa/gwt-log 。
Open the IDE welcome page.打开 IDE 欢迎页面。
Select Open as Project
and Trust Project
. Select
Open as Project
和Trust Project
。
Wait for Maven to finish the job.等待 Maven 完成工作。
Make changes.做出改变。
Build a JAR file from sources.从源构建一个 JAR 文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.