Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import org.springframework.samples.petclinic.rest.dto does not exist. Controller interfaces do not exist. #81

Closed
mangelo123 opened this issue Jan 3, 2022 · 7 comments · Fixed by #85
Labels

Comments

@mangelo123
Copy link

mangelo123 commented Jan 3, 2022

I just downloaded the master branch. Build fails because the dto package does not exist. The controller interfaces also do not exist.

@mangelo123 mangelo123 changed the title import org.springframework.samples.petclinic.rest.dto does not exist import org.springframework.samples.petclinic.rest.dto does not exist. Controller interfaces do not exist. Jan 3, 2022
@mangelo123
Copy link
Author

I Just discovered that they are all built dynamically by Maven. How can I add those to the sources in IntelliJ so that I don't see all of the compile errors?

@arey arey added the question label Jan 4, 2022
@arey
Copy link
Member

arey commented Jan 4, 2022

Hi @mangelo123
DTOs are generated by MapStruct. Could you follow this instruction https://mapstruct.org/documentation/ide-support/ and please give us a feedback? Thus we could improve the readme.md or add some configuration in the pom.xml. Thanks

@alexandre-touret
Copy link
Contributor

Hi @mangelo123
Normally, after building the project, all the generated sources located in the target/generated-sources folder should appear as a source folder in your IDE.

@SushmithaGit
Copy link

hi,getting below error
java: package org.springframework.samples.petclinic.rest.dto does not exist
can you be more specific and elaborate a little more on what to do to get rid of this?

@alexandre-touret
Copy link
Contributor

alexandre-touret commented Mar 15, 2022

Hi,
This package and all the java classes source code belonging to it are generated during the build time.

You have to run this command first:

mvn clean install

The generated source files will be then located in the target folder.

@arey
Copy link
Member

arey commented Mar 15, 2022

It is the second issue about MapStruct (see #65). Maybe we should add some explanations to the readme?

@alexandre-touret
Copy link
Contributor

@arey Yes. I will do that :)

@arey arey closed this as completed in #85 Mar 22, 2022
haraldreingruber-dedalus pushed a commit to haraldreingruber-dedalus/spring-keycloak-angular-exercise that referenced this issue Sep 22, 2022
…ntConfig

adding single quote rule for linting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants