Skip to content
This repository was archived by the owner on Dec 3, 2018. It is now read-only.
This repository was archived by the owner on Dec 3, 2018. It is now read-only.

IntelliJ needs customized JUnit run configuration for MapStruct to generate @Mapper implementations #153

Description

@carltonwhitehead

While integrating MapStruct for #127, it became necessary to customize the JUnit run configuration within IntelliJ in order for it to compile the ExploratoryMapper in the test sources (it had struggled with it in main sources too, but I think it ought to be able to work with either).

The current workaround is: Run > Edit Configurations > Defaults > JUnit > Before launch > Add Maven Goal > compiler:testCompile, then delete or amend any existing JUnit run configurations.

No workaround is needed to run mvn clean test in the terminal. I suspect there're a better way for maven to signal the additional step to IntelliJ, or a cleaner way to detect it. Suggestions welcome.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions