Uploaded image for project: 'smartics-jboss-modules-maven-plugin'
  1. smartics-jboss-modules-maven-plugin
  2. SJBMMP-10

Move Module Descriptors to its own File.

    XMLWordPrintable

Details

    Description

      Move the module declarations to its own file. This allows to specify an XSD to help users writing descriptors.

      The new format is easier to use and also provides more features to generate JBoss Modules.

      Here is the outline of the new XML:

      <modules xmlns="http://smartics.de/ns/jboss-modules-descriptor/1">
      <module
      name=""
      slot="">
      <directives>
      <skip></skip>
      <inherit-slot></inherit-slot>
      </directives>

      <match>
      <includes>
      <include>
      <groupId></groupId>
      <artifactId></artifactId>
      </include>
      ...
      <include>
      <groupId></groupId>
      <artifactId></artifactId>
      </include>
      </includes>
      <excludes>
      <exclude>
      <groupId></groupId>
      <artifactId></artifactId>
      </exclude>
      ...
      <exclude>
      <groupId></groupId>
      <artifactId></artifactId>
      </exclude>
      </excludes>
      </match>

      <apply-to-dependencies>
      <dependencies>
      <match>
      <includes>
      <include></include>
      ...
      <include></include>
      </includes>

      <excludes>
      <exclude></exclude>
      ...
      <exclude></exclude>
      </excludes>
      </match>
      <apply>
      <slot></slot>
      <export></export>
      <services></services>
      <optional></optional>
      <imports>
      <include path="" />
      <include-set>
      <path name="" />
      ...
      </include-set>
      <exclude-set>
      <path name="org/jboss/example/tests2" />
      ...
      </exclude-set>
      </imports>
      <exports>
      <exclude path="" />
      <include-set>
      <path name="" />
      ...
      </include-set>
      <exclude-set>
      <path name="org/jboss/example/tests" />
      ...
      </exclude-set>
      </exports>
      </apply>
      </dependencies>
      ...
      </apply-to-dependencies>

      <!-- ????
      <apply-to-resources>
      <match>
      <includes>
      <include></include>
      ...
      <include></include>
      </includes>

      <excludes>
      <exclude></exclude>
      ...
      <exclude></exclude>
      </excludes>
      </match>
      <filter>
      ??? not used by any module in JBoss AS 7.1.1.
      </filter>
      </apply-to-resources>
      -->

      <apply-to-module>
      <exports>
      <exclude path="*/impl/" />
      </exports>

      <main-class name="org.jboss.msc.Version" />

      <properties>
      <property
      name="my.property"
      value="foo" />
      ...
      <property
      name="my.property2"
      value="foo2" />
      </properties>

      <!-- ????
      <resources>
      <resource-root path="jboss-msc-1.0.1.GA.jar"/>
      ...
      </resources>
      -->

      <dependencies>
      <module name="javax.api" />
      ...
      <module
      name="org.jboss.ws.jaxws-client"
      services="export"
      export="true">
      <imports>
      <include path="META-INF/cxf" />
      <include path="META-INF" />
      </imports>
      <exports>
      <include path="META-INF/cxf" />
      <include path="META-INF" />
      </exports>
      </module>

      ...

      <system export="true">
      <paths>
      <path name="org/jboss/modules" />
      <path name="org/jboss/modules/log" />
      <path name="org/jboss/modules/filter" />
      <path name="org/jboss/modules/ref" />
      <path name="org/jboss/modules/management" />
      </paths>
      </system>
      ...
      </dependencies>
      </apply-to-module>
      </module>
      ...
      </modules>

      Attachments

        Activity

          People

            robert.reiner Robert Reiner
            robert.reiner Robert Reiner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: