Uploaded image for project: '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.



    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.8.0.RELEASE
    • None
    • MAVEN
    • Ubuntu 11.10 64bit
      Java(TM) SE Runtime Environment (build 1.6.0_26-b03)


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

      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

      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
      6. Deploy the application from within the IDE.
      7. The modules will not appear, and the applications will fail.




            spingel Steffen Pingel
            kirenpillay Kiren
            1 Vote for this issue
            2 Start watching this issue