Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7444

Multiple optional non-existing projects not logged correctly

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-7, 4.0.0
    • Reactor and Workspace
    • Apache Maven 4.0.0-alpha-1-SNAPSHOT (31193cbf0c93205a63c8c7b372b09200f60e69f4)

    Description

      Run mvn -pl ?:a,?:b validate (escaping necessary on POSIX compliant shells, Windows doesn't need it) on a project that does not have a module :a and :b.

      Expected:

      [INFO] Could not find the selected project(s) in the reactor: :a, :b
      

      Actual:

      [INFO] Could not find the selected project in the reactor: :a
      

      The output of mvn -help with regards to -pl:

      Comma-delimited list of specified reactor projects to build instead of all projects. A project can be specified by [groupId]:artifactId or by its relative path. Prefixing a project with ! excludes it, and ? marks it as optional

      Attachments

        1. image-2023-04-26-00-48-51-379.png
          0.3 kB
          Zhongming Hua

        Issue Links

          Activity

            Probably related: if my project has two modules, say mc and mt, and I run mvn -pl ?:a,?:mc,?:mt, Maven only builds mc. That's not OK, it should also build mt.

            mthmulders Maarten Mulders added a comment - Probably related: if my project has two modules, say mc and mt , and I run mvn -pl ?:a,?:mc,?:mt , Maven only builds mc . That's not OK, it should also build mt .
            crazyhzm Zhongming Hua added a comment -

            mthmulders 

            I found that it is fixed in the following versions, this JIRA can be closed.

            Apache Maven 4.0.0-alpha-6-SNAPSHOT (81231b886563937d47560ebf468e4e24251877b7)
            crazyhzm Zhongming Hua added a comment - mthmulders   I found that it is fixed in the following versions, this JIRA can be closed. Apache Maven 4.0.0-alpha-6-SNAPSHOT (81231b886563937d47560ebf468e4e24251877b7)

            crazyhzm thanks for letting me know! Indeed, both issues seem to have been resolved.

            mthmulders Maarten Mulders added a comment - crazyhzm thanks for letting me know! Indeed, both issues seem to have been resolved.

            People

              Unassigned Unassigned
              mthmulders Maarten Mulders
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: