Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3905

multimodule BASIC project build fails with The import of Q Entity cannot be resolved

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0.RC1
    • Fix Version/s: None
    • Component/s: PERSISTENCE
    • Labels:
    • Environment:

      Description

      When creating a project using multimodule BASIC mode as follows

      project setup --topLevelPackage com.acme.rootest --projectName protest --multimodule BASIC --java 8
      jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
      entity jpa --class ~.domain.Book
      repository jpa --all --package application:com.acme.rootest.repository
      service --all --apiPackage com.acme.rootest.application.service --implPackage com.acme.rootest.application.serviceimpl
      web mvc setup
      web mvc controller --all --package com.acme.rootest.application.controller --pathPrefix /api --responseType JSON
      field string --fieldName name

      When building this project causes to following error.

      <unknown source file>:<no line information>

      [ERROR] The import com.acme.rootest.application.domain.QBook cannot be resolved
      /Users/administrator/Projects/roo-issue-multi-basic/application/src/main/java/com/acme/rootest/repository/BookRepositoryImpl_Roo_Jpa_Repository_Impl.aj:9
      import com.acme.rootest.application.domain.QBook;
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      created project's parent pom doesn't have apt-maven-plugin added to the plugin management and child pom
      also org.springframework.roo.querydsl.processor dependency is not added to the child pom.
      After adding the project builds successfully.

      In addon-layers-repository-jpa configuration.xml monomodule section is only having said dependencies.

        Attachments

          Activity

            People

            • Assignee:
              jcgarcia Juan Carlos GarcĂ­a del Canto
              Reporter:
              ruwanka Ruwanka Madhushan De Silva
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: