Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-1440

Possibility to attach source jars via ivy

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 2.8.0.M2
    • Component/s: GRAILS
    • Labels:
      None
    • Environment:
      kubuntu 10.04, grails 1.3.6, jvm 1.6.22

      Description

      It would be great if STS could provide some functionality to download and attach the source jars of dependencies, retrieved though ivy - similar to what m2eclipse can do with maven.

      STORY:
      grails-plugins often provide additional libraries which are retrieved by ivy. it would be great to have some functionality to attach also the source jars automatically.

      m2eclipse provides similar functionalities by right-click / download sources + download javadoc.

      STATUS QUO:
      I have to retrieve the source artifacts (which I usually do through some dummy-maven-project) and attach every source jar i need manually.

      SITENOTE:
      In my actual setup (STS 2.5.1) a restart is also needed to make the attached source work. Don't know if its just my setup or a bug. If someone can commit this, i can post an issue-report for this.

        Activity

        Hide
        kdvolder Kris De Volder added a comment -

        FYI. This functionality should work with upcoming STS 2.8.M2 and already released Grails 2.0.0.M2.

        Kris

        Show
        kdvolder Kris De Volder added a comment - FYI. This functionality should work with upcoming STS 2.8.M2 and already released Grails 2.0.0.M2. Kris
        Hide
        kosta Konstantinos Kostarellis added a comment - - edited

        Worked great on a few small projects (first steps), but failed on the first plugin-project.
        This seems to be a grails problem, thou. I just raised an issue on that -> http://jira.grails.org/browse/GRAILS-8157

        I could think of another improvement, similar to the way m2e handles it. When opening a class of a
        dependency that has not source attached, m2e starts downloading it in the background
        and refreshes the editor window when its done. Don't know if this is possible to implement.
        I could file an jira-improvment-issue on this (minor), if this is some desired functionality.

        So far I'm very impressed with the improvements. Nice work!

        Show
        kosta Konstantinos Kostarellis added a comment - - edited Worked great on a few small projects (first steps), but failed on the first plugin-project. This seems to be a grails problem, thou. I just raised an issue on that -> http://jira.grails.org/browse/GRAILS-8157 I could think of another improvement, similar to the way m2e handles it. When opening a class of a dependency that has not source attached, m2e starts downloading it in the background and refreshes the editor window when its done. Don't know if this is possible to implement. I could file an jira-improvment-issue on this (minor), if this is some desired functionality. So far I'm very impressed with the improvements. Nice work!
        Hide
        kdvolder Kris De Volder added a comment -

        Hi Konstantinos,

        > When opening a class of a
        > dependency that has not source attached, m2e starts downloading it in the background
        > and refreshes the editor window when its done. Don't know if this is possible to implement.

        I'd have to look into it to figure out how hard it would be. But given m2e does something like it probably means it is doable.

        Sure, open a Jira issue, can't promise this will actually get implemented, however its good to have a Jira issue so people can express interest, comment, vote etc. The votes help us to determine what issues are more important to the users.

        Also, thanks for raising the Grails Jira issue on the plugin problem.

        Show
        kdvolder Kris De Volder added a comment - Hi Konstantinos, > When opening a class of a > dependency that has not source attached, m2e starts downloading it in the background > and refreshes the editor window when its done. Don't know if this is possible to implement. I'd have to look into it to figure out how hard it would be. But given m2e does something like it probably means it is doable. Sure, open a Jira issue, can't promise this will actually get implemented, however its good to have a Jira issue so people can express interest, comment, vote etc. The votes help us to determine what issues are more important to the users. Also, thanks for raising the Grails Jira issue on the plugin problem.
        Hide
        kosta Konstantinos Kostarellis added a comment -

        Hi Kris,

        just stumbled over another glitch regarding the attached source libs.
        STS source references for the libs grails-datastore-core-1.0.0.M10.jar and
        grails-datastore-gorm-1.0.0.M10.jar are pointing towards $GRAILS_HOME/src/,
        but those source jars ain't packaged into the gails-2.0.0.M2.zip

        Using grails-2.0.0.M2 and STS 2.8.0.SNAPSHOT (Build Id: 201110120725)

        A simple workaround is to grab the source-jars from http://repo.grails.org/grails/core/org/grails/grails-datastore-core/ and place them in $GRAILS_HOME/src/

        Show
        kosta Konstantinos Kostarellis added a comment - Hi Kris, just stumbled over another glitch regarding the attached source libs. STS source references for the libs grails-datastore-core-1.0.0.M10.jar and grails-datastore-gorm-1.0.0.M10.jar are pointing towards $GRAILS_HOME/src/, but those source jars ain't packaged into the gails-2.0.0.M2.zip Using grails-2.0.0.M2 and STS 2.8.0.SNAPSHOT (Build Id: 201110120725) A simple workaround is to grab the source-jars from http://repo.grails.org/grails/core/org/grails/grails-datastore-core/ and place them in $GRAILS_HOME/src/
        Hide
        kdvolder Kris De Volder added a comment -

        Could you raise that as a separate issue? I can take a look, maybe we are handling this the wrong way. Could be they are handled correctly by the 'download sources' grails 2.0 feature but we (STS) are mistakenly pointing to the grails distro's source dir.

        Show
        kdvolder Kris De Volder added a comment - Could you raise that as a separate issue? I can take a look, maybe we are handling this the wrong way. Could be they are handled correctly by the 'download sources' grails 2.0 feature but we (STS) are mistakenly pointing to the grails distro's source dir.

          People

          • Assignee:
            kdvolder Kris De Volder
            Reporter:
            kosta Konstantinos Kostarellis
          • Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: