Uploaded image for project: 'ShrinkWrap Resolvers'
  1. ShrinkWrap Resolvers
  2. SHRINKRES-274

EmbeddedMaven - Support running Maven builds in the background

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.0-beta-1
    • Fix Version/s: 3.0.0-beta-2
    • Component/s: maven
    • Labels:
      None

      Description

      It should possible to also stop the execution of the main thread and wait till some line matches a regex. Useful for cases when maven build triggers some server or other application (eg. using mvn spring-boot:run)

      use-case:

      EmbeddedMaven
          .forProject("path/to/pom.xml")
          .useMaven3Version("3.5.0")
          .setGoals("spring-boot:run")
          .useAsDaemon()
          .withWaitUntilOutputLineMathes(".*Started Application.*", 30, TimeUnit.SECONDS)
          .build();
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mjobanek Matous Jobanek
                Reporter:
                mjobanek Matous Jobanek
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: