3 Replies Latest reply on Mar 12, 2007 11:02 AM by pgier

    Aggregate goal

    wolfc

      I have got the following structure in JBossAS repo:
      projects/javaee/trunk
      + build - project to build the aggregate javaee.jar from the other api
      projects
      + ejb-api
      + transaction-api
      + servlet-api
      ...

      Now how do I create the javaee.jar (and source) artifact in the build project?

        • 1. Re: Aggregate goal
          pgier

          You can use the assembly plugin to combine the modules into a single artifact.
          I'm working on the assembly configuration for common, and the only problem that I've run into so far is that the module name has to match the artifactId. So if your module is called "ejb-api" then your artifactId also must be called "ejb-api" and not "jboss-ejb-api"

          • 2. Re: Aggregate goal
            wolfc

            I changed the artifact id to match.

            I saw in the generated module source jars double entries of all source files with an extra prefix of main (javax/ejb/EJBException.java and main/javax/ejb/EJBException.java). The combined source contains even more prefixes.

            • 3. Re: Aggregate goal
              pgier

              The double entries was caused by the way the resources section was set up. It had src as the resources directory, and then etc/** under the includes section. It makes sense logically, but I think what was happening was that etc/.. was getting picked up which contains main. So it was treating main as one of the resource includes. I changed the pom so that src/etc is the base directory, and I think that fixed the problem.

              I also changed the assembly configuration so that your module names don't have to match the artifact Ids. I sent you the updated poms. If you want me to check them in, just let me know.