Grails
  1. Grails
  2. GRAILS-7972

grails upgrade downloads old versions of tomcat and hibernate plugin before upgrading

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-M1
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Environment:
      Grails 2.0.0.BUILD-SNAPSHOT (Aug-30)

      Description

      grails upgrade downloads old versions of tomcat and hibernate plugin before upgrading.

      grails -plain-output upgrade

      |Loading Grails 2.0.0.BUILD-SNAPSHOT
      |Configuring classpath
      .
      |Environment set to development
      ................................
      |NOTE: Your application currently expects grails version [1.4.0.M1], this target will upgrade it to Grails 2.0.0.BUILD-SNAPSHOT
      
              WARNING: This target will upgrade an older Grails application to 2.0.0.BUILD-SNAPSHOT.
              Are you sure you want to continue?
                         [y,n] y
      .....................
      |Resolving plugin hibernate. Please wait...
      |Downloading: hibernate-2.0.0.BUILD-SNAPSHOT.pom
      |Downloading: grails-hibernate-2.0.0.BUILD-SNAPSHOT.zip
      |Downloading: grails-hibernate-2.0.0.BUILD-SNAPSHOT.zip.sha1
      |Installing zip hibernate-2.0.0.BUILD-SNAPSHOT.zip...
      ...
      |Installed plugin hibernate-2.0.0.BUILD-SNAPSHOT
      |Resolving plugin JAR dependencies
      |Downloading: tomcat-1.4.0.M1.pom
      |Downloading: hibernate-1.4.0.M1.pom
      |Downloading: grails-tomcat-1.4.0.M1.zip
      |Downloading: grails-tomcat-1.4.0.M1.zip.sha1
      |Downloading: grails-hibernate-1.4.0.M1.zip
      |Downloading: grails-hibernate-1.4.0.M1.zip.sha1
      ...
      |Resolving plugin tomcat. Please wait...
      |Downloading: tomcat-2.0.0.BUILD-SNAPSHOT.pom
      |Downloading: grails-tomcat-2.0.0.BUILD-SNAPSHOT.zip
      |Downloading: grails-tomcat-2.0.0.BUILD-SNAPSHOT.zip.sha1
      |Installing zip tomcat-2.0.0.BUILD-SNAPSHOT.zip...
      ...
      |Installed plugin tomcat-2.0.0.BUILD-SNAPSHOT
      |Resolving plugin JAR dependencies
      ...
      |Please make sure you view the README for important information about changes to your source code.
      |Project upgraded
      

      Steps to reproduce:
      1. Create a new Grails app with an older version of Grails.
      2. Switch to new version of Grails (GRAILS_HOME/PATH)
      3. Empty the ivy2 cache and project's work directory (~/.grails/2.0.0.BUILD-SNAPSHOT/projects/projectname)
      4. run "grails -plain-output upgrade"

        Issue Links

          Activity

          Hide
          Jeff Scott Brown added a comment -

          Lowering priority as I think this is less critical as long as GRAILS-8107 is resolved.

          Show
          Jeff Scott Brown added a comment - Lowering priority as I think this is less critical as long as GRAILS-8107 is resolved.
          Hide
          Lari Hotari added a comment -

          Grails still downloads old pom versions before upgrading. Could we get this fixed?

          Show
          Lari Hotari added a comment - Grails still downloads old pom versions before upgrading. Could we get this fixed?
          Hide
          Jeff Scott Brown added a comment -

          In recent versions of Grails you have to specify explicit versions for the tomcat and hibernate plugins so this is not the same issue it used to be, and "grails upgrade" is likely on its way out of the framework anyway. I don't think this needs attention.

          Show
          Jeff Scott Brown added a comment - In recent versions of Grails you have to specify explicit versions for the tomcat and hibernate plugins so this is not the same issue it used to be, and "grails upgrade" is likely on its way out of the framework anyway. I don't think this needs attention.

            People

            • Assignee:
              Jeff Scott Brown
              Reporter:
              Lari Hotari
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Last Reviewed:

                Development