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

Newly created Roo project reports errors for missing source folders

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.9.2.RELEASE, 3.0.0.M2
    • Fix Version/s: 3.0.0.RELEASE
    • Component/s: ROO
    • Labels:

      Description

      Create new, empty roo project. 3 errors:
      Project 'ARooProj' is missing required source folder: 'src/main/java'
      Project 'ARooProj' is missing required source folder: 'src/test/java'
      Project 'ARooProj' is missing required source folder: 'src/test/resources'

        Activity

        ldossantos Leo Dos Santos (c) [X] created issue -
        Hide
        ldossantos Leo Dos Santos (c) [X] added a comment -

        As part of new Roo project creation, we generate a .classpath file for Eclipse which contains known source folder locations. This was fine when we were working only with Roo Java projects, but now that Roo supports multiple project types (like POMs for example), this generated .classpath isn't always correct.

        Show
        ldossantos Leo Dos Santos (c) [X] added a comment - As part of new Roo project creation, we generate a .classpath file for Eclipse which contains known source folder locations. This was fine when we were working only with Roo Java projects, but now that Roo supports multiple project types (like POMs for example), this generated .classpath isn't always correct.
        ldossantos Leo Dos Santos (c) [X] made changes -
        Field Original Value New Value
        Affects Version/s 3.0.0.M2 [ 11806 ]
        Hide
        ldossantos Leo Dos Santos (c) [X] added a comment -

        Complicating this further is that we also generate .project file for Eclipse which contains AJDT and Spring natures & builders. This leaves some project types with the error:

        • classpath error: unable to find org.aspectj.lang.JoinPoint (check that aspectjrt.jar is in your classpath)

        or the warning:

        • Spring appears to be missing from the project's Build Path petclinic-local Unknown Spring Problem
        Show
        ldossantos Leo Dos Santos (c) [X] added a comment - Complicating this further is that we also generate .project file for Eclipse which contains AJDT and Spring natures & builders. This leaves some project types with the error: classpath error: unable to find org.aspectj.lang.JoinPoint (check that aspectjrt.jar is in your classpath) or the warning: Spring appears to be missing from the project's Build Path petclinic-local Unknown Spring Problem
        Hide
        ldossantos Leo Dos Santos (c) [X] added a comment -

        Change to how & when .classpath & .project files are generated should minimize spurious errors with certain project types (eg. poms).

        Show
        ldossantos Leo Dos Santos (c) [X] added a comment - Change to how & when .classpath & .project files are generated should minimize spurious errors with certain project types (eg. poms).
        ldossantos Leo Dos Santos (c) [X] made changes -
        Labels Y5M10
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Complete [ 13 ]
        tmarshall Trevor Marshall made changes -
        Workflow jira [ 45590 ] jira with Pivotal Tracker [ 64241 ]
        tmarshall Trevor Marshall made changes -
        Project Import Thu Apr 06 15:50:53 UTC 2017 [ 1491493853826 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 18h 13m 1 Leo Dos Santos (c) [X] 15/Jun/12 10:06 AM

          People

          • Assignee:
            ldossantos Leo Dos Santos (c) [X]
            Reporter:
            ldossantos Leo Dos Santos (c) [X]
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: