Search code examples
javaopendaylightietf-netmod-yang

Force maven to use old compiled java class from Yang in OpenDaylight


How i can force maven to recompile OpenDaylight-Openflowplugin project using previous generated Java classes by Yang, rather then generate new java classes with every compilation?

I'm trying to edit the java classes generated by Yang but every time that i recompile the project, maven re-generates the java classes and my changes are removed.


Solution

  • I don't know why you would want to manually edit generated classes but, if that's what you really want to do, then don't run the yang-maven-plugin or just copy the generated classes you want to edit to a different package under src/main/java where they won't be overwritten.