with ALT+F5 on the project, you can select "update project configuration
from pom.xml", I magine you have to manually do this when plugins config is
modified.

Regards,
François


Le mar. 23 mars 2021 à 17:20, David Karr <davidmichaelk...@gmail.com> a
écrit :

> Thanks for replying, Lars.  We already had the property specified that way.
>
> From more experiments, it appears that this source generation will be done
> automatically when the project is first imported, or when the schema is
> modified, but if the project had already existed, and then the
> jsonschema2pojo mechanism was added, and then a developer pulled in those
> changes, no automation would take place.
>
> On Mon, Mar 22, 2021 at 5:40 PM Lars Knickrehm <m...@lars-sh.de> wrote:
>
>> 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
>> www.lars-sh.de
>>
>> 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:
>> ---------------------
>>     <pluginExecution>
>>         <pluginExecutionFilter>
>>             <groupId>org.jsonschema2pojo</groupId>
>>             <artifactId>jsonschema2pojo-maven-plugin</artifactId>
>>             <versionRange>1.0.2</versionRange>
>>             <goals>
>>                 <goal>generate</goal>
>>             </goals>
>>         </pluginExecutionFilter>
>>         <action>
>>             <execute>
>>                 <runOnIncremental>true</runOnIncremental>
>>                 <runOnConfiguration>true</runOnConfiguration>
>>             </execute>
>>         </action>
>>     </pluginExecution>
>> ---------------------------
>>
>> 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 listm2e-us...@eclipse.org
>> To unsubscribe from this list, visit 
>> https://www.eclipse.org/mailman/listinfo/m2e-users
>>
>> _______________________________________________
>> m2e-users mailing list
>> m2e-users@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/m2e-users
>>
> _______________________________________________
> m2e-users mailing list
> m2e-users@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/m2e-users
>
_______________________________________________
m2e-users mailing list
m2e-users@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/m2e-users

Reply via email to