How use mapStruct in Eclipse stand alone. without maven or gradle or ant

236 views
Skip to first unread message

Pierpaolo Piccoli

unread,
Dec 14, 2020, 11:47:32 AM12/14/20
to mapstruct-users

Hi,
i'm trying to use mapStruct in Eclipse without leverage on Maven, Ant or Gradle
but it seems not to work, The Mapper implementation classes are not generated

I've configured in Eclipse at project level :

- annotation processing (all enabled)
-  factory path (it refers to the MapStruct processor jar 1.2.0 final)
- i'm using java 6

when i clean and build my project the .apt_generated folder is empty
so when i run junit test i receive the error:

 java.lang.ClassNotFoundException: Cannot find implementation for com.foo.bar.converters.IMyConverter

i've installed the m2e-apt plugin for Eclipse 2018

best regards

Paolo


Stanislav Spiridonov

unread,
Feb 24, 2021, 2:14:53 AM2/24/21
to mapstruct-users
Hi,

Not sure that MapStruct (at least jars from maven central) can work with Java 6. You can try to build your own MapStruct jars from the sources.

Best,
Stas

Pierpaolo Piccoli

unread,
Feb 24, 2021, 4:07:15 AM2/24/21
to mapstruct-users
hi, thanks for your reply,
i've resolved using java 8

regards

Paolo
Reply all
Reply to author
Forward
0 new messages