I have a weird problem - Some class file couldn\'t be read during maven build.
A and project B.
I had a similar problem, and never find anything on the web after excessive searching.
I reviewed the pom.xml file and in the dependencies I changed the scope of the it:
to .
Previously I was using it only for tests but I change the project's structure and never knew I hve to change this.
test: This scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases.
compile: This is the default scope, used if none is specified. Compile dependencies are available in all classpaths of a project. Furthermore, those dependencies are propagated to dependent projects.
Here is a reference from Apache Maven Docs: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope