MapStruct Eclipse Plugin

Add this URL to your Eclipse Installation to reach this solution's update site.

2021-06 (4.20), 2021-03 (4.19), 2020-12 (4.18), 2020-09 (4.17), 2020-06 (4.16), 2020-03 (4.15), 2019-12 (4.14), 2019-09 (4.13), 2019-06 (4.12), 2019-03 (4.11), 2018-12 (4.10), 2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6), Mars (4.5), Luna (4.4), 2021-09 (4.21), 2021-12 (4.22), 2022-03 (4.23), 2022-06 (4.24), 2022-09 (4.25), 2022-12 (4.26), 2023-03 (4.27), 2023-06 (4.28), 2023-09 (4.29), 2023-12 (4.30), 2024-03 (4.31)

https://mapstruct.org/eclipse/

Learn more...
Solution Description

An Eclipse plug-in for working with MapStruct The plugin gives some assistence in projects that use MapStruct to generate bean mapping code. Code-Completions

  • Completion of target and source properties in @Mapping annotation for bean mappings and for enum mappings
  • Completion of componentModel values in @Mapper annotation

Quick-Fixes

  • Quick-Fixes for error/warning message "Unmapped target property: ...":
    • Ignore unmapped target property adds @Mapping( target = "prop", ignore = true ) to the method
  • Quick-Fixes for error message "Can't map property X prop to Y prop. Consider to declare/implement a mapping method ...":
    • Add method: Y toY(X prop) adds an appropriate method declaration to the mapper.
    • Ignore unmapped target property adds @Mapping( target = "prop", ignore = true ) to the method.
Additional Details

Eclipse Versions: 2021-06 (4.20), 2021-03 (4.19), 2020-12 (4.18), 2020-09 (4.17), 2020-06 (4.16), 2020-03 (4.15), 2019-12 (4.14), 2019-09 (4.13), 2019-06 (4.12), 2019-03 (4.11), 2018-12 (4.10), 2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6), Mars (4.5), Luna (4.4), 2021-09 (4.21), 2021-12 (4.22), 2022-03 (4.23), 2022-06 (4.24), 2022-09 (4.25), 2022-12 (4.26), 2023-03 (4.27), 2023-06 (4.28), 2023-09 (4.29), 2023-12 (4.30), 2024-03 (4.31)

Platform Support: Windows, Mac, Linux/GTK

Organization Name: MapStruct

Development Status: Alpha

Date Created: Wednesday, April 20, 2016 - 15:01

License: Apache 2.0

Date Updated: Friday, October 6, 2023 - 10:48

Submitted by: Andreas Gudian

Screenshot
Date Ranking Installs Clickthroughs
February 2024 98/676 286 48
January 2024 106/691 363 75
December 2023 102/671 341 68
November 2023 115/686 355 66
October 2023 94/673 449 81
September 2023 78/663 547 81
August 2023 71/673 573 106
July 2023 68/668 592 74
June 2023 67/669 666 37
May 2023 73/671 655 91
April 2023 75/667 633 73
March 2023 70/686 863 45
View Data for all Listings

Unsuccessful Installs

Unsuccessful Installs in the last 7 Days: 0

Download last 500 errors (CSV)

Marketplace Drag to Install Button

By adding the following code below to your website you will be able to add an install button for MapStruct Eclipse Plugin.

HTML Code:

Markdown Syntax:

Output:

Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client

Reviews Add new review

Compiler now gives a compilation error: Description    Resource    Path    Location    Type
Internal error in the mapping processor: java.lang.ClassCastException: class org.eclipse.jdt.internal.compiler.lookup.RecordComponentBinding cannot be cast to class org.eclipse.jdt.internal.compiler.lookup.FieldBinding (org.eclipse.jdt.internal.compiler.lookup.RecordComponentBinding and org.eclipse.jdt.internal.compiler.lookup.FieldBinding are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @2381a837)      at org.eclipse.jdt.internal.compiler.apt.model.TypesImpl$3.find(TypesImpl.java:145)      at org.eclipse.jdt.internal.compiler.apt.model.TypesImpl.findMemberInHierarchy(TypesImpl.java:208)      at org.eclipse.jdt.internal.compiler.apt.model.TypesImpl.asMemberOf(TypesImpl.java:142)      at org.mapstruct.ap.internal.util.AbstractTypeUtilsDecorator.asMemberOf(AbstractTypeUtilsDecorator.java:129)      at org.mapstruct.ap.internal.model.BeanMappingMethod$Builder.getConstructorAccessor(BeanMappingMethod.java:723)      at org.mapstruct.ap.internal.model.BeanMappingMethod$Builder.build(BeanMappingMethod.java:232)      at org.mapstruct.ap.internal.processor.MapperCreationProcessor.getMappingMethods(MapperCreationProcessor.java:418)      at org.mapstruct.ap.internal.processor.MapperCreationProcessor.getMapper(MapperCreationProcessor.java:181)      at org.mapstruct.ap.internal.processor.MapperCreationProcessor.process(MapperCreationProcessor.java:135)      at org.mapstruct.ap.internal.processor.MapperCreationProcessor.process(MapperCreationProcessor.java:82)      at org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:350)      at org.mapstruct.ap.MappingProcessor.processMapperTypeElement(MappingProcessor.java:330)      at org.mapstruct.ap.MappingProcessor.processMapperElements(MappingProcessor.java:279)      at org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:174)      at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:142)      at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:124)      at org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:172)      at org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcessorManager.java:138)      at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:953)      at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:450)      at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:426)      at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:379)      at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:214)      at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:311)      at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:79)      at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:273)      at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:188)      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:1024)      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:254)      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:311)      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:400)      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:403)      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:514)      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:462)      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:544)      at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:524)      at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:413)      at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:180)      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)      AcumuloMapper.java    /api-springboot-register-club/src/main/java/com/cvc/register/club/mapper    line 10    Annotation Problem (Java 6 processor)