Uploaded image for project: 'Commons Logging'
  1. Commons Logging
  2. LOGGING-113

pom.xml in maven repository does not list dependencies as optional

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.1.1
    • None
    • maven 2

    Description

      Dear Commons Logging Developers,

      I don't know if this is the right place, but I have a problem with the maven 2 artifact for commons-logging, available at:

      ftp://ibiblio.org/pub/packages/maven2/commons-logging/commons-logging/1.1/
      ftp://ibiblio.org/pub/packages/maven2/commons-logging/commons-logging/1.1/commons-logging-1.1.pom

      The pom lists avalon-framework, servlet-api, junit, log4j, logkit as REQUIRED dependencies, while instead they should be optional dependencies.

      How to fix:
      add <optional>true</optional> to all dependencies that are optional, e.g.
      <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.12</version>
      <optional>true</optional>
      </dependency>

      Thanks

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              maxberger Maximilian Berger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: