开发者

How can I checkout all dependencies used in a Maven POM?

开发者 https://www.devze.com 2023-02-11 08:33 出处:网络
Given the following project setup: Services ServicePackage A ServicePackage B ServicePackage C ... Processes

Given the following project setup:

  • Services
    • ServicePackage A
    • ServicePackage B
    • ServicePackage C
    • ...
  • Processes
    • Process 1 (depends on C)
    • Process 2 (depends on A & B)
    • Process 3 (depends on A & C)
    • ...
  • Applications

what would be the best practice to make a clean build for an application?


It depends on whether you are using released version of your dependencies or snapshots. When using the former it does not matter as the necessary versions will be pulled directory from your maven repository server (e.g., nexus, archiva or from your from disk cache).

When using snapshots, you either have to build snapshots by hand or publish the snapshots to your repository server (which can be automated using e.g., hudson). Note that you have to build them in the order they are used. A simple way could be:

  1. Server A, B, C (any internal order),
  2. Process 1,2,3 (any internal order),
  3. Application X, Y (any internal order), .
0

精彩评论

暂无评论...
验证码 换一张
取 消