Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-3438

incorrect definition of property maven.repo.local in modules/integration/pom.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • nightly
    • None
    • Integration
    • None
    • Windows, JRE 1.5.0_12, maven 2.0.8

    Description

      Line 577 in modules/integration/pom.xml sets the maven.repo.local ant property as follows:
      <property name="maven.repo.local" value="${user.home}/.m2/repository"/>

      It breaks the build if the maven repository is not at the default location. The ant property should be set in the following way instead:
      <property name="maven.repo.local" value="${settings.localRepository}"/>

      Thus, the settings.localRepository maven property is correctly propagated as the maven.repo.local ant property.

      Also, it would be worth taking a look at these lines in the following files, as they may exhibit the same problem (though I haven't encountered any issue related to this while doing a "mvn install"):

      modules/samples/script/mail-test.xml: 32
      <property name="maven.repo.local" value="${user.home}/.maven/repository/"/>

      modules/samples/script/wsdl-test.xml: 22
      <property name="maven.repo.local" value="${user.home}/.maven/repository/" />

      Attachments

        1. modules_integration_pom_xml.diff
          1.0 kB
          Etienne Dube

        Activity

          People

            Unassigned Unassigned
            etdube Etienne Dube
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: