Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Having trouble adding lifecycle mapping for jsonschema2pojo

Dear David,

as far as I can see, the jsonschema2pojo Maven Plugin should be executed even without additional lifecycle mapping.

But I featured out, that it requires absolute paths in its configurations: While <sourceDirectory>src/main/jsonschema</sourceDirectory> does not work for me, <sourceDirectory>${project.basedir}/src/main/jsonschema</sourceDirectory> works fine instead.

Does this help?

Best regards,
Lars Knickrehm
Am 19.03.2021 um 21:29 schrieb David Karr:
I work on a project that has started to use the jsonschema2pojo maven plugin. I'm finding that Eclipse isn't generating the source automatically, so I assume this requires a lifecycle mapping entry.

In the "Lifecycle Mappings" preferences, I clicked "Open" to edit the file.  There were already two entries in it, for swagger and the compiler plugin.

I added the following new entry:

I saved the file, but I'm not sure what else I need to do to enable this.  I tried:
* clicking "Reload" in the preferences section
* project clean
* maven project update
* restarting Eclipse

None of these appeared to make any difference.

I also thought perhaps the "goal" might be "generate-sources", so I tried that, along with all the other steps, but that made no difference.

I checked in the eclipse log, and I didn't see any problems associated with this.

I am currently trying to get this working in eclipse 2021-03.

m2e-users mailing list
To unsubscribe from this list, visit

Back to the top