eclipse - Is there a Maven plugin or configuration that will verify the Java package declaration matches the source directory? -


i've ran issue maven few times build not fail if there's inconsistency between package declaration , path of source file. other stackoverflow questions, there several examples shows eclipse catches type of error no problem , explains why maven doesn't:

eclipse says package declaration not match expected package "" eclipse: declared package not match expected package maven + java package declaration

there few different issue can arise when maven doesn't catch inconsistency including run-time failures load classes or unit tests omitted build without flagging errors.

although maven doesn't catch compiler, there maven plugin out there validate package name source path? or possibly other configuration value can set in pom.xml or settings.xml maven verify these consistent?


Popular posts from this blog