Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-125

Build-classpath should store the classpath in a Filter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-alpha-4
    • 2.0
    • build-classpath
    • None

    Description

      I have some web.xml files which contain in their environment parameters a list of jars to be downloaded by the client applets, for example:

      <env-entry>
      <description>Shared jars parameter</description>
      <env-entry-name>applet/shared_jars</env-entry-name>
      <env-entry-value>ejb.jar, axis.jar, axis-ant.jar, jaxrpc.jar, saaj.jar, wsdl4j.jar, commons-discovery.jar, commons-logging.jar, [...]</env-entry-value>
      <env-entry-type>java.lang.String</env-entry-type>
      </env-entry>

      (don't ask me why it's done like that, it's legacy software...)

      It would be great to be able to isolate this list of jars in a project, and then create from that project the classpath, store it in a filter which can then be applied on the web.xml file.

      Then I could rewrite my web.xml like this:

      <env-entry>
      <description>Shared jars parameter</description>
      <env-entry-name>applet/shared_jars</env-entry-name>
      <env-entry-value>${shared.jars}</env-entry-value>
      <env-entry-type>java.lang.String</env-entry-type>
      </env-entry>

      The list of shared jars would be defined in a new shared-jars project, which would list the shared jars in its dependencies section, in pure Maven style

      Thanks,
      Ludovic

      Attachments

        Activity

          People

            brianf Brian E Fox
            ludovicc Ludovic Claude
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: