Intellij using gradle cache and maven local issues
Hi,
I have gradle project requires a lot of maven jars. First build fail because too many jars and the command line is too long because of those jars read from gradle cache like .gradle/xxx/xx/39eadfd4dfe46re...easdfs/xx.jar, looks like the cache generate very long characters. I downloaded those jars to maven local, and checked those jars in the repository. like D:/rapo_repo/, and configed in the intellij override. So in my pom I declare mavenlocal ahead of maven address, hope it can load jars from my local instead of download from maven to gradle cache. This is still not working, I printed the command and looks like it still using jars from gradle cache(even after I deleted them)
is there a way to force use mavenlocal first instead of gradle cache?
if not, is there a way to config in intellij to use unlimit characters?
Thanks
Please sign in to leave a comment.
Hello,
Check the last two setting on the File | Settings | Build, Execution, Deployment | Build Tools | Maven page.
For the "Local Repository", check the override box and set the desired location. Alternatively, you can override the "User settings file" to use your alternative settings.xml file that specifies the alternate repo.
Thanks for the reply, I already use the override repository by checking the override checkbox. my problem is the command too long by using jars from gradle cache, is there a way to force to use maven local?
How are you building your project exactly? Are you using a Gradle Run/Debug Configuration?
What is the exact error message and where do you see it?
Are you able to build the project from the system console without errors?
In the Application Run/Debug Configuration, there's an option called 'Shorten Command Line'. See if it suits your needs.