Hi Natalia,
Sorry for the late reply, we have been in holiday mode basically for a while :)
Glad to hear you found a work around; Out of interest, how does it exactly look like? Could you share some code?
Nevertheless we should add the import, I've filed
https://github.com/mapstruct/mapstruct/issues/411 for this. For the time being, you also could add the class via @Mapper#imports(), this only works though if the inner and outer class live in a different package than the mapper interface (that's another glitch I just noticed).
One thing I'm wondering though, is your inner class actually a *static* inner class? I think that's the only case we can support in MapStruct, as otherwise we wouldn't have an instance of the outer class at hand which we'd need for instantiating the non-static inner class.
--Gunnar