我有一个 Maven 桌面应用程序,其中包含第三方和我自己的依赖项目(业务、存储库和 GUI)。我希望能够使用以下文件夹结构构建应用程序:
App.jar
AppBusiness.jar
AppRepository.jar
AppGUI.jar
lib(folder)
- the rest of thirdy-party jars in lib folder
(hibernate, jackson, drivers, etc..)
我可以这样做吗?
最佳答案
可以使用maven依赖plugin将依赖项复制到所选目录,然后根据需要对其进行 zip/tar。
关于java - 有没有办法构建一个java应用程序并使用maven导出不同文件夹中的依赖项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57647203/