Chris,

I created a fresh instance of the plc4x project and ran

./mvnw -P update-generated-code,.os-mac-x86_64,skip-prerequisite-check -pl 
:plc4j-driver-eip -am clean package

which ran to completion and regenerated the files.   As a sanity check I 
updated the eip.mspec with one of my changes and reran the compiler and it 
worked as expected.

Thanks for the quick response and pointer!

Bob



> On 02/16/2024 1:32 AM EST Christofer Dutz <christofer.d...@c-ware.de> wrote:
> 
>  
> Hi Robert,
> 
> happy to help you with that.
> 
> In general, I’ll be working on updating the documentation after the next 
> release (which I’ll start after finishing this mail)
> But for now: We’ve introduced some minor changes to the build, so you’ll need 
> to make sure the following maven profiles are enabled:
> 
> 
>   *   with-java (Without it, generally nothing java-related will be built at 
> all)
>   *   update-generated-code (Without it, the code generation will not be 
> performed at all)
> 
> 
> So, if you run the following command:
> 
> 
> ./mvnw -Pwith-java,update-generated-code -pl :plc4j-driver-eip -am clean 
> package
> 
> It will generally build the java eip driver and all modules it depends on.
> 
> Hope that helps and looking forward to some pull-requests ;-)
> 
> 
> Chris
> 
> 
> 
> Von: R Thayer <thayer...@cox.net>
> Datum: Freitag, 16. Februar 2024 um 02:25
> An: dev@plc4x.apache.org <dev@plc4x.apache.org>
> Betreff: Re: Re-generated Generated Sources
> All,
> What is the process to regenerate generated sources?
> 
> New to plc4x but have live EIP/CIP traffic that i'm trying to model with the 
> eip.mspec and need to close the circle of eip.mspec==>generated-code in the 
> plc4j/drivers/eip/src/main/generated to verify correct mspec.  Working 
> through ParserSerializerTestsuiteLittleEndian.xml to model MultipleServiceR/R
> 
> The website discusses it and suggests "mvn compile".
> This thinks it works but does not regenerate nor replace the files.
> 
> Thanks,
> 
> Robert Thayer
> CC Software, Inc.
> 702-726-1034

Reply via email to