castor
  1. castor
  2. CASTOR-1996

Remove all JARs from the lib directory

    Details

    • Type: Wish Wish
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: 1.3.2
    • Component/s: General
    • Labels:
      None
    • Number of attachments :
      1

      Description

      This idea of this task is to remove all JARs from the lib directory in the SVN repository to reduce the size of a SVN checkout, especially as there's alternatives to including binary JARs in a SVN repository.

      I am currently prototyping the use of the Ant tasks for Maven 2.0, which allow to add a few lines to an Ant build file so that all dependencies as defined in a Maven POM as downloaded (once) into a local repository, and can be referred to from various Ant tasks such as 'copy' or made available as a class path reference.

      So far, I have managed to have almost all JARs downloaded from the global Maven repository and copied them to a sample 'newlib' directory. There's a few JARs missing, still, but it looks that this is related to missing/incorrect remote repository specification within the Ant build file.

      Once I have finished this task, I will add additional code to e.g. switch compilation to use the newly downloaded file, etc.

      In the end, I hope that everybody developing against SVN will not have to download all the JARs again and again .. .

      So far, I had to add one JAR to bin/lib, namely maven-ant-tasks-2.0.6.jar, as downloaded from the main Maven 2 download site.

      I will attach a initial patch for review soon.

        Activity

        Hide
        Werner Guttmann added a comment -

        Initial test targets, showcasing how to specify a reference to the Maven POM, and how to use that POM top establish a list of dependencies that are used during a copy task later on.

        Show
        Werner Guttmann added a comment - Initial test targets, showcasing how to specify a reference to the Maven POM, and how to use that POM top establish a list of dependencies that are used during a copy task later on.
        Hide
        Ralf Joachim added a comment -

        In general I don't think it is the right way to remove all jar's from our repository, especially if you like to replace the 4.8M of jar's we currently have with a new one of 0,9M which is only required to manage access to the once really required to build the project. A much better way to go would be to reduce dependecies to other jar's. E.g. there are derby.jar which allown has 2M and xerces-J_1.4.0.jar with 0,8M.

        Show
        Ralf Joachim added a comment - In general I don't think it is the right way to remove all jar's from our repository, especially if you like to replace the 4.8M of jar's we currently have with a new one of 0,9M which is only required to manage access to the once really required to build the project. A much better way to go would be to reduce dependecies to other jar's. E.g. there are derby.jar which allown has 2M and xerces-J_1.4.0.jar with 0,8M.
        Hide
        Werner Guttmann added a comment -

        The following Jira issue has been filed with the Maven team:

        http://jira.codehaus.org/browse/MANTTASKS-86

        to track this problem.

        Show
        Werner Guttmann added a comment - The following Jira issue has been filed with the Maven team: http://jira.codehaus.org/browse/MANTTASKS-86 to track this problem.
        Hide
        Werner Guttmann added a comment -

        Found a solution to this problem. Will commit a patch tomorrow.

        Show
        Werner Guttmann added a comment - Found a solution to this problem. Will commit a patch tomorrow.

          People

          • Assignee:
            Werner Guttmann
            Reporter:
            Werner Guttmann
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 2 hours
              2h
              Remaining:
              Remaining Estimate - 2 hours
              2h
              Logged:
              Time Spent - Not Specified
              Not Specified