Bug with BProc and maven local in the current CUBA Studio

Hello CUBA team,

we have encountered a problem with the local Maven repository and the current CUBA Studio in conjunction with BProc.

We have created a sample project with BProc (see mavenlocal-without-mavenlocal.zip). This contained a service that calls a logger.

If we include “mavenLocal()” in the build.gradle as the first entry in repositories, the logger is displayed as not available (see mavenlocal-with-mavenlocal-top.zip):

2021-03-02 13_54_34-Window

However, the project can be built and executed via “gradlew build”.

If we set the “mavenLocal()” at the end of repositories (see mavenlocal-with-mavenlocal-bottom.zip) the error does not occur.

If we leave “mavenLocal()” in the build.gradle at the beginning of repositories and delete the directory “1.7.30” in the local Maven directory (~.m2\repositories\org\slf4j\slf4j-api), the error does not occur either.

If we use the CUBA plugin in the current IntelliJ instead of the CUBA Studio, the error does not occur either.

I hope you can understand the error. Until a solution is found, what workaround can you recommend?

Greetings
Andreas

1 Like

Hi,
If the problem doesn’t reproduce in the current IntelliJ, then maybe it is the bug of IntelliJ. I would advise to use latest available IDEA version with CUBA plugin.

Sorry, but it seems that you have found three solutions already. I doubt any more actions are needed from the CUBA team side.

Hi @AlexBudarov,

I also think it’s a bug in IntelliJ. When do you want to update the CUBA Studio next time and is a newer IntelliJ version included?

Greetings
Andreas

At the moment I cannot provide any time estimates for that, sorry.