@@ -399,24 +399,34 @@ def generate(self, project):
399399 )
400400 project .overwrite (path , contents )
401401
402- # Update settings
403- java_plugin_dependency_version = self ._get_java_plugin_dependency_version (
404- project
405- )
406- if java_plugin_dependency_version < MINIMUM_JAVA_DEPENDENCY_VERSION :
407- raise JavaPluginVersionNotSupportedError (
408- "'aws-cloudformation-rpdk-java-plugin' {} is no longer supported."
409- "Please update it in pom.xml to version {} or above." .format (
410- java_plugin_dependency_version , MINIMUM_JAVA_DEPENDENCY_VERSION
402+ self ._update_settings (project )
403+
404+ LOG .debug ("Generate complete" )
405+
406+ def _update_settings (self , project ):
407+ try :
408+ java_plugin_dependency_version = self ._get_java_plugin_dependency_version (
409+ project
410+ )
411+ if java_plugin_dependency_version < MINIMUM_JAVA_DEPENDENCY_VERSION :
412+ raise JavaPluginVersionNotSupportedError (
413+ "'aws-cloudformation-rpdk-java-plugin' {} is no longer supported."
414+ "Please update it in pom.xml to version {} or above." .format (
415+ java_plugin_dependency_version , MINIMUM_JAVA_DEPENDENCY_VERSION
416+ )
411417 )
418+ except JavaPluginNotFoundError :
419+ LOG .info (
420+ "Please make sure to have 'aws-cloudformation-rpdk-java-plugin' "
421+ "to version %s or above." ,
422+ MINIMUM_JAVA_DEPENDENCY_VERSION ,
412423 )
424+
413425 protocol_version = project .settings .get (PROTOCOL_VERSION_SETTING )
414426 if protocol_version != DEFAULT_PROTOCOL_VERSION :
415427 project .settings [PROTOCOL_VERSION_SETTING ] = DEFAULT_PROTOCOL_VERSION
416428 project .write_settings ()
417429
418- LOG .debug ("Generate complete" )
419-
420430 @staticmethod
421431 def _find_jar (project ):
422432 jar_glob = list (
0 commit comments