Maven Repository Plugin
  1. Maven Repository Plugin
  2. MREPOSITORY-3

Please add support for multi-module projects in repository:bundle-create mojo

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Labels:
      None
    • Environment:
      Java 1.5, WinXP
    • Number of attachments :
      0

      Description

      Currently the repository:bundle-create mojo only supports single module upload bundles, so multi-module bundles must be created manually, once for each sub-module, and each individual bundle file must be uploaded to a public site individually.

      In addition, the "pom" packaging (which is often used by the parent pom of a multi-module project) is not supported repository:bundle-create, so upload bundles for projects with "pom" packaging must be created manually, before uploading to a public site.

      Please support multi-module repository:bundle-create mojo such that:

      $ mvn repository:bundle-create

      in the top level of a multi-module project produces a single archive that can be used to upload the multi-module project artifacts to ibiblio.

        Activity

        Hide
        Tim Pizey added a comment -

        Or it could create a bundle per module, rather a single bundle.

        Show
        Tim Pizey added a comment - Or it could create a bundle per module, rather a single bundle.
        Hide
        Dennis Lundberg added a comment - - edited

        The following message is printed if the packaging of the project is 'pom':

        Packaging cannot be 'pom' when creating an upload bundle.

        I don't understand why we shouldn't allow pom packaging. Even if we don't implement multi module support it would ease the pain for people who needs to create an upload bundle for their (parent) POM project.

        Show
        Dennis Lundberg added a comment - - edited The following message is printed if the packaging of the project is 'pom': Packaging cannot be 'pom' when creating an upload bundle. I don't understand why we shouldn't allow pom packaging. Even if we don't implement multi module support it would ease the pain for people who needs to create an upload bundle for their (parent) POM project.
        Hide
        Daniel Le Berre added a comment -

        It would be also nice to have the ability to choose which modules should be bundled.

        Suppose my parent project has modules A,B,C,D.

        It would be nice if I could do

        $ mvn repository:bundle-create A B

        on the parent level to create upload bundles with both A and B modules and the parent content.

        Show
        Daniel Le Berre added a comment - It would be also nice to have the ability to choose which modules should be bundled. Suppose my parent project has modules A,B,C,D. It would be nice if I could do $ mvn repository:bundle-create A B on the parent level to create upload bundles with both A and B modules and the parent content.
        Hide
        John Casey added a comment -

        enabled bundle-create for packaging == pom, which allows multimodule processing. The result will be a bundle for each module project, in the module's target directory.

        Additionally, batch mode will disable the file-selection prompt and cause Maven to accept all files beginning with $finalName found in the outputDirectory / local-repo-directory for the project.

        Show
        John Casey added a comment - enabled bundle-create for packaging == pom, which allows multimodule processing. The result will be a bundle for each module project, in the module's target directory. Additionally, batch mode will disable the file-selection prompt and cause Maven to accept all files beginning with $finalName found in the outputDirectory / local-repo-directory for the project.

          People

          • Assignee:
            John Casey
            Reporter:
            John R Fallows
          • Votes:
            10 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: