Calling clojure code from Java -- target directory keeps getting marked "excluded"

Hi All,

Newbie clojure plus java problem.

I have a "tiny" clojure module that exposes one method that I want to call from my java program.

The project is built from maven pom files.

Both pom files are organized as sub modules of a parent pom.

Everything builds fine from the command line, but inside IntelliJ, the clojure module keeps marking the target directory "excluded" which breaks the build of the Java module that depends on it inside IntelliJ.

Does anybody know why IntelliJ keeps marking the clojure output directory as "excluded", and how I can stop this bad behavior?

Thanks In Advance,


As i know sometimes, an invalid project configuration or cache can cause unexpected behavior. Try invalidating caches and restarting IntelliJ. You can do this by going to "File" > "Invalidate Caches / Restart..." and choosing "Invalidate and Restart." Verify your Maven settings and configuration in the parent and module pom.xml files. screen mirroring disney plus Make sure that the target directory is correctly specified and that there are no settings causing the exclusion. Ensure that you have the appropriate plugins installed for working with both Clojure and Maven in IntelliJ. Check the plugins section in IntelliJ's settings. If the issue persists, consider reaching out to IntelliJ IDEA support or consulting their community forums for specific assistance.