Several projects in same workspace in Eclipse
Closed this issue · 0 comments
In this moment, opening several projects created with the "plugin" in the same workspace in Eclipse I cannot do it.
If I create the project MyProject01 and I open it in Eclipse and execute Gradle, the project that are seen are:
MyProject01
api-rest
app-service
jpa-repository
model
usecase
If I create secound project "MyProject02" and I open it in Eclipse and execute Gradle, Eclipse show me the error:
"Workspace already contains a project with name api-rest."
To be able to open severeal project created with the "plugin" in the same workspace in Eclipse I have to change value:
include ':app-service'
project(':app-service').projectDir = file('./applications/app-service')
to
include ':MyProject01_app-service'
project(':MyProject01_app-service').projectDir = file('./applications/app-service')
in all dependecies and modules, and in all projects, in this way i can open severeal project in the same workspace in Eclipse and it shows like this:
MyProject01
MyProject01_api-rest
MyProject01_app-service
MyProject01_jpa-repository
MyProject01_model
MyProject01_usecase
and
MyProject02
MyProject02_api-rest
MyProject02_app-service
MyProject02_jpa-repository
MyProject02_model
MyProject02_usecase
This in the command to create project
gradle cleanArchitecture --package=co.com.bancolombia --type=imperative --name=NameProject
This can be done by adding an attribute to indicate that the project name is used as a prefix in the modules, and that by default the value is false.
gradle cleanArchitecture --package=co.com.bancolombia --type=imperative --name=NameProject --usePrefixWithModule=true
Thank you,