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

Problems with a refresh dependencies not quite getting the right answer (on first run, works on second)

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.5.2.RELEASE
    • 2.6.0.M1
    • GRAILS
    • None

    Description

      Reported by a user on grails-user and seen by me now.

      1. Create a grails project
      2. Install the plugin for spring security (called spring-security-core)

      Wait.

      You will like see type not resolved problems. One of the most offputting is one saying that the methods loadByUserName in GormUserDetailsService and GrailsUserDetailsService have incompatible return types.

      This is due to the grails classpath container not yet including the spring security jar (org.springframework.security.core-3.0.4.RELEASE.jar).

      if you run refresh dependencies, the jar appears in the classpath container. If you then rebuild the code is fine.

      So, two issues:

      1. Why is the extra refresh dependencies required?
      2. Why didn't a build kickoff after the container contents changed?

      Attachments

        Activity

          People

            kdvolder Kris De Volder
            aclement Andy Clement
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: