Some necessary libraries are missing in WAR-File after export from Eclipse - why?

后端 未结 1 1374
-上瘾入骨i
-上瘾入骨i 2021-02-01 07:04

I took over a project of a college which contains some web services and by exporting the project as WAR-file some libraries are contained in the file (e.g. Axis2) and some aren’

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 07:12

    The jar dependencies for Eclipse to include in a war file not placed in WEB-INF/lib is not managed by the usual "project export/imports" but by a separate panel (3.6: Deployment Assembly, 3.5: Java EE Module Dependencies) in the preferences of the dynamic web project.

    alt text

    Note: Since the answer was originally written, Maven has become the defacto packaging tool. Instead of relying on Eclipse features, I would strongly recommend to use Maven packaging instead. It has the additional benefit of making the project instantly usable with all modern IDE's.

    0 讨论(0)
提交回复
热议问题