code: protected void addDependencies(Archive<?> archive) {
          String version = getConfiguration().getCitrusVersion();
          CitrusArchiveBuilder archiveBuilder;
  
          if (version != null) {
              archiveBuilder = CitrusArchiveBuilder.version(version);
          } else {
              archiveBuilder = CitrusArchiveBuilder.latestVersion();
          }
  
          if (archive instanceof EnterpriseArchive) {
              EnterpriseArchive ear = (EnterpriseArchive) archive;
              ear.addAsModules(archiveBuilder.all().build());
          } else if (archive instanceof WebArchive) {
              WebArchive war = (WebArchive) archive;
              war.addAsLibraries(archiveBuilder.all().build());
          }
      }
docs: Adds Citrus archive dependencies and all transitive dependencies to archive.
  @param archive