logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45635] New: Maven local repository location hard coded in pom test phase
Date Fri, 15 Aug 2008 13:00:52 GMT

           Summary: Maven local repository location hard coded in pom test
           Product: Log4j
           Version: 1.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: philippe.haution@mines-paris.org

The maven test phase calls the unit tests through a maven-antrun-plugin, with
all necessary jars picked up in the default local repository
${user.home}/.m2/repository :

      <ant dir="tests" target="runAll">
        <property name="junit.jar"
location="${user.home}/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar" />
        <property name="jakarta.oro.jar"
location="${user.home}/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar" />

If the maven repository is not in this standard location, this will make an mvn
test fail because these jars cannot be found. It would be better if those jars
location was based on a m2_repo property (already available in tests/build.xml)
that the user could customize with a 
$ mvn -Dm2_repo=<local maven repository> test :

<ant dir="tests" target="runAll">
  <property name="m2_repo" location="${user.home}/.m2/repository"/>
  <property name="junit.jar"
location="${m2_repo}/junit/junit/3.8.1/junit-3.8.1.jar" />
  <property name="jakarta.oro.jar"
location="${m2_repo}/oro/oro/2.0.8/oro-2.0.8.jar" />

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message