How to add custom java objects to Velocity context in Maven archetype plugin for dynamic file generation -
first of apologies create duplicate question. searched lot , not able find answer apart below question asked year ago. don't have enough reputation comment , ask on thread itself.
can add custom objects velocity context maven archetype plugin?
i wondering if solution exists problem or workaround. able use substitute variables , use if-else constructs dynamic file generation not sure how pass java object , generate class based on contents of passed object. have list "list" object of fields provided user @ run time want populate class fields in "list" object. how achieve this?
Comments
Post a Comment