Uploaded image for project: 'Maven WAR Plugin'
  1. Maven WAR Plugin
  2. MWAR-309

'mvn package' duplicates WEB-INF/classes on linux only



    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6
    • Component/s: None
    • Labels:
    • Environment:
      OSX & windows seem to be in sync, ubuntu is not


      We have a multi-module n-tiered project. The endpoints (spring services) rely on a core service project, which relies on a core logic project, which relies on 2 others. So this is all set up using a main pom.xml file, listing each module. I can then run 'mvn package' from the project root.

      The issue is that running 'mvn package' on my windows workstation appears to package things (what i would consider to be) correctly, and running the same command on our server creates something slightly different. In essence, there are class files from the core logic project which end up in the service project's WEB-INF/classes output (as well as in the core's jar). Again, this only happens on the ubuntu server.

      In the attached screenshot, you can see on the left, the output of my workstation, where there's two packages inside of WEB-INF/classes: com.doolli.admin & com.doolli.rest. On the right side, you can see more packages - additionally, you see com.doolli.database, com.doolli.main, com.doolli.manager, com.doolli.object, as well as an org.sphx package - which are defined further down in the dependency tree.

      The duplicate definition is causing our server to throw runtime errors - class and method not found exceptions.


        1. compare.png
          276 kB
          mike kozelsky
        2. build.osx.log
          738 kB
          mike kozelsky
        3. build.ubuntu.log
          614 kB
          mike kozelsky
        4. build.windows.log
          736 kB
          mike kozelsky
        5. pom.rest-service.xml
          1 kB
          mike kozelsky
        6. pom.main.xml
          0.7 kB
          mike kozelsky
        7. pom.rest.xml
          1 kB
          mike kozelsky
        8. pom.core.xml
          5 kB
          mike kozelsky
        9. build.centos_6.log
          604 kB
          mike kozelsky
        10. build.ubuntu2.log
          597 kB
          mike kozelsky



            • Assignee:
              krosenvold Kristian Rosenvold
              funkeymikey mike kozelsky
            • Votes:
              0 Vote for this issue
              4 Start watching this issue


              • Created: