[ROO-3905] multimodule BASIC project build fails with The import of Q Entity cannot be resolved Created: 24/Mar/17  Updated: 24/Mar/17

Status: Open
Project: Spring Roo
Component/s: PERSISTENCE
Affects Version/s: 2.0.0.RC1
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Ruwanka Madhushan De Silva Assignee: Juan Carlos GarcĂ­a del Canto
Resolution: Unresolved Votes: 0
Labels: jpa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mac OS Sierra version 10.12.2
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T22:11:47+05:30)


Reference URL: https://github.com/spring-projects/spring-roo/blob/master/addon-layers-repository-jpa/addon/src/main/resources/org/springframework/roo/addon/layers/repository/jpa/addon/configuration.xml

 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.


Generated at Wed Dec 11 22:41:16 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.