Search code examples
javamaven

Maven can't find a module


I've been trying for the last few weeks at this point to get Maven to compile my project and I am so desperate

I am running the following maven command on the root directory:

mvn clean verify -fae -X

And I am getting the following output: log on Pastebin

This clearly means that it cannot find the module that it has already identified, during compile (meaning any goal that includes compile will throw the same error). IntelliJ could even find the source of the module (with find usages) in the MAVEN LOCAL REPO as a compiled JAR, which baffles me because maven doesn't seem to want to figure that one out and now after renaming it can find the sources in this project too, so I don't know where it could be going wrong at all.

I can't provide any relevant code, because I have no clue where the issue might lie. All of my code can be found on my GitHub here, in the IerisLib repository on the experimental branch.

I am extremely frustrated with this issue and at this point I don't know what to do. I have attempted:

Deleting all and cloning again, changing the module's names twice, rewriting the module-info.java files and just playing around with Maven command parameters(that's how I came up with -fae -X instead of just mvn clean verify).

I'm running Maven 3.8.5

Please, any help is appreciated


Solution

  • For anyone coming across this question in the future, much like @khmarbaise mentioned in the comments, I was using a very outdated Maven compiler plugin. The solution is checking what version your maven defaulted to and if having problems try to manually define the plugin version in your POM.