Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-290

Consolidate build of ODFToolkit sub-projects

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.5-incubating
    • None
    • None

    Description

      As discussed on the dev list, we need to adjust the cross-module dependencies to compile against trunk instead of hardcoded ODFDOM 0.8.7, Taglets 0.8.7, etc.

      I made an attempt to consolidate Maven build and propose the following structure under a parent POM:

      pom.xml (root) (modules: taglets,generator,xlst-runner,xslt-runner-task,odfdom,validator,simple)
           +---- taglets
                       +-- pom.xml  (parent: root)
           +---- generator
                       +---- schema2template 
                               +-- pom.xml  (parent: generator)
                       +---- schema2template-maven-plugin 
                               +-- pom.xml  (parent: generator: dependeny: schema2template)
           +---- xlst-runner
                       +-- pom.xml   (parent: root)
           +---- xlst-runner
                       +-- pom.xml   (parent: root)
           +---- xlst-runner-task
                       +-- pom.xml   (parent: root)
           +---- odfdom
                       +-- pom.xml   (parent: root dependeny: taglets)
           +---- validator
                       +-- pom.xml   (parent: root dependeny: odfdom)
           +---- simple
                       +-- pom.xml   (parent: root dependeny: odfdom)
      
      

      Summary of changes:

      1. All sub-projects inherit the parent POM. This allows us to build and test all components in one go.
      2. As per http://www.apache.org/dev/publishing-maven-artifacts.html, the parent POM inherits the Apache POM.
      3. I changed the groupId to "org.apache.odftoolkit". The Maven artifacts should fit in the Apache namespace.
      4. Initial version is 0.5-SNAPSHOT
      5. [IMPORTANT] To test the build I had to restore OdfFileDom#getAutomaticStyles(). Please revert this change after applying changes from https://issues.apache.org/jira/browse/ODFTOOLKIT-49

      Regards,
      Yegor

      Attachments

        1. ip.patch
          133 kB
          Yegor Kozlov

        Activity

          People

            devinhan Biao Han
            yegor.kozlov Yegor Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: