You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run mvn clean io.openliberty.tools:liberty-maven-plugin:3.3.5-M3-SNAPSHOT:dev
Dev mode should give an error at this point because the war module has Java code that depends on the deleted class in the jar module. However, dev mode has no error because the compilation dependency was found in ~/.m2. But when you go to http://localhost:9080/converter/ and enter a value and click Submit, it gets a NoClassDefFoundError at runtime:
ericglau
changed the title
Dev mode does show compile errors if upstream module already installed in .m2
Dev mode does not show errors if upstream module already installed in .m2
Jul 15, 2021
mvn install
to install the project to ~/.m2jar/src/main/java/io/openliberty/guides/multimodules/lib/Converter.java
mvn clean io.openliberty.tools:liberty-maven-plugin:3.3.5-M3-SNAPSHOT:dev
Consider using something like https://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html to remove each module from ~/.m2 before running its build lifecycle in dev mode, so that if a downstream module depends on it, it should fail. But do not purge ear projects (so that #1176 will still work.)
The text was updated successfully, but these errors were encountered: