Why does the WTP plugin deploy one Maven dependency as a folder, instead of a jar?

前端 未结 4 943
小鲜肉
小鲜肉 2021-02-08 07:53

I have a very strange problem with Maven and the Eclipse WTP. I have a multi-module project, let\'s call it project. It consists of two modules project-base

4条回答
  •  不要未来只要你来
    2021-02-08 08:03

    If that folder is an exploded JAR (so it is like a JAR file, but appearing as a folder, not archived), in my case it was a server connector issue.

    Although I use JBoss instead of Tomcat, this might be helpful for others struggling with this problem.

    Provided you have the latest JBoss Tools installed on your Eclipse, you can double-click the server in Server view to open the settings.

    On Deployment tab, you can select Zip Module Yes/No for each project. When I selected YES for my utility jar files, JBoss then deployed the dependency as a normal JAR file instead of a folder.

提交回复
热议问题