[英]How to add servlet JAR file permanently in Eclipse Oxygen instead of adding to each project?
有什么解决方案可以在Eclipse Oxygen中永久添加servlet JAR文件,而不是将其添加到每个项目中?
Maybe. 也许。 But I would not recommend this approach, because you would bind yourself to the IDE, which is not a good practice.
但是我不推荐这种方法,因为您会将自己绑定到IDE,这不是一个好习惯。 If someday you decide to switch to IntelliJ for example every project you will migrate will not work.
例如,如果某天您决定切换到IntelliJ,则将要迁移的每个项目都将无法工作。
If your projects use the same JAR file(s) and you want to share it instead of redeclaring it everytime you need it you could evaluate other options, like creating a parent pom.xml
file (if you are using Maven). 如果您的项目使用相同的JAR文件,并且您想共享它而不是每次都需要重新声明它,则可以评估其他选项,例如创建父
pom.xml
文件(如果使用的是Maven)。 In this way you can share consistently all your updated through various IDEs. 这样,您可以通过各种IDE一致地共享所有更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.