1. Maven
  2. MNG-4379

Properties defined in parent POM and used in systemPath element cause POM validation warnings and dependencies ignoration - compilation error


    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.0, 2.2.1
    • Fix Version/s: 3.0-alpha-6
    • Component/s: POM
    • Labels:
    • Environment:
      Windows Vista 32


      In parent POM of some "common_jar" module we have property definition:




      then in child module "common_jar" we use this property

      <!-- WebSphere 7 libraries-->



      Next we use this "common_jar" as dependency for our "other module":


      but unfortunatelly this "other module" can not be compiled because of

      [WARNING] POM for 'our_company.common:common_jar:pom:1.0.102:compile' is invalid.

      Its dependencies (if any) will NOT be available to the current build.

      This causes that the libraries from "common_jar" are not available to "other module" and therefore "other module" can not be compiled.

      If I replace the WEBSPHERE_HOME's property in "common_jar"'s parent POM with absolute path then "other module" compiles OK. So it seems that it can not read environment properties in "common_jar" from "other module". Module "common_jar" compiles OK under all circumstances (there is no problem with this property in systemPath).

      Other thing is that in parent of "other module" there is also a property WEBSPHERE_HOME defined which points to the same directory as WEBSPHERE_HOME in "common_jar" parent POM (simple copy paste by project creation), but it seems that does not affect the issue. There was no problem with this configuration (setup) in Maven 2.0.10. Problem started with Maven 2.1.0 and continues with Maven 2.2.1. We can not use Maven 2.0.10 due to old version of Maven-Eclipse plugin which is generatin wrong ".settings" for EAR project.

      For test case to run please modify WEBSPHERE_HOME property and WS libraries dependency in "common_jar" and its parent POM.

        Issue Links


          Tomas Szabo created issue -
          Benjamin Bentmann made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Assignee Benjamin Bentmann [ bentmann ]
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 3.0-alpha-6 [ 15996 ]
          Benjamin Bentmann made changes -
          Link This issue is duplicated by MNG-4545 [ MNG-4545 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Workflow jira [ 12714693 ] Default workflow, editable Closed status [ 12754366 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12952401 ] Default workflow, editable Closed status [ 12989747 ]


            • Assignee:
              Benjamin Bentmann
              Tomas Szabo
            • Votes:
              1 Vote for this issue
              2 Start watching this issue


              • Created: