Eclipse gradle springboot run issue

38 views
Skip to first unread message

sebastien rodrigues

unread,
Oct 18, 2020, 10:46:25 AM10/18/20
to mapstruct-users
Hi when i start my springboot project with Boot Dashboard or run as spring boot app or run as java application i have an issue Field mapper in com.example.user.service.UserService required a bean of type 'com.example.user.helper.UserMapper' that could not be found.

If i start the project with gradlew bootRun it wokrs fine.

For sure the last one used compiled code, and the others not or didn't generate it at start u.

Someone know how to fix this?

Giuseppe Miscione

unread,
Oct 19, 2020, 11:39:44 AM10/19/20
to mapstruct-users
Hi,
are you using the latest version of MapStruct?
In previous versions there were a strange interaction between Eclipse compiler, Lombok agent for Eclipse and MapStruct annotation processor that prevented Eclipse to generate mappers during compilation.

Filip Hrisafov

unread,
Oct 19, 2020, 2:23:36 PM10/19/20
to mapstruct-users
Hey,

I think that you asked the same question in our Gitter Room as well.

I will say here what I said there, I am not an Eclipse user, but I assume that you would need to run the eclipse task to set it up. I think that the Eclipse Buildship plugin is needed for Eclipse and Gradle support. Have a look at https://www.vogella.com/tutorials/EclipseGradle/article.html.

Cheers,
Filip

Reply all
Reply to author
Forward
0 new messages