Spring Tool Suite
  1. Spring Tool Suite
  2. STS-2293

Multi-module project war file does not deploy when dependency managed versions missing in child poms.

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8.0.RELEASE
    • Fix Version/s: None
    • Component/s: MAVEN
    • Labels:
    • Environment:

      Ubuntu 11.10 64bit
      Java(TM) SE Runtime Environment (build 1.6.0_26-b03)

      Description

      Build Identifier: Eclipse:M20110909-1335 SpringSource STS 2.8.0 Build
      201110171000

      We have a multi-module project with a single war file that is built up with
      modules in the children project. We are deploying the war file to a vFabric
      Tomcat server from within the eclipse IDE. Workspace dependency resolution is
      enabled, and the war file appears with all the dependent modules in the server
      view.

      However, if the version for the dependent modules are not explicitly specified
      in the war's pom.xml file, the dependent modules are not included on the server
      view and the server complains of missing classes when starting up: the
      application fails.

      The reason for wanting to leave out the version tag in the child pom is that we
      want the versioning to be defined in the dependencyManagement section of the
      parent module.
      The system should resolve the dependent modules even if its left out of the
      child poms and defined in the parents pom.

      Reproducible: Always

      Steps to Reproduce:
      1. Have a multi-module web application
      2. Add the version of the child modules.
      3. Deploy the application to the tomcat server, application will work, and show
      all the dependent modules.
      4. Define the modules in the dependency management section of the parent pom.
      5. Remove the versions from the servlets poms, since they defined in the
      parent.
      6. Deploy the application from within the IDE.
      7. The modules will not appear, and the applications will fail.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Steffen Pingel
            Reporter:
            Kiren
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: