download maven repository jar will stuck when i use external maven

Answered

just like title

i had download maven,in my H:\,i set "User Setting File" is H:\..\setting.xml and "Local Repository" is H:\repoistory

but it is ALWAYS download jar for a while and stuck when i resolve maven project

 

so,i have to use default maven setting,it's workbut it will download jar in my user directory,c:\,

0
12 comments

Hi, could you please clarify the problem, by "external maven" do you mean maven plugin or mvn command?

Also please provide idea.log after reproducing the problem.

0
Avatar
Permanently deleted user

setting->build,execution,deployment->build tools->maven->Maven Home Directory=another directory ,like maven 3.5.x i download

0

Does it works fine with bundled maven? Also please provide an idea.log (Help | Show log...) after reproducing the problem.

0
Avatar
Permanently deleted user

Does it works fine with bundled maven? Yes

 

it say Finished XXX,but have no progress..

log

https://drive.google.com/open?id=1IbcSzEnHX4qmJrzrCLq6tIdQpURqbejp 

 

it's seem i should feedback to apache maven...

0
Avatar
Permanently deleted user

it's stuck again,this time i had used bundled maven 3,self-define setting

the file:https://drive.google.com/open?id=1UNetLsPvUmcie_Xuys22X0S0GAJETpHL

 

it's look like---

never live back...

 

the log file :

https://drive.google.com/open?id=1kfFjx9RMSwO7yAYaPFrgxGjxHJa8OwKb

0

Your log contains some errors related to Gradle. Do you use Maven or Gradle for this project? Does the project build correctly from the command line, outside of IntelliJ IDEA?

Is it possible to get the thread dumps using jstack when resolving hangs? See https://intellij-support.jetbrains.com/hc/articles/206544899.

0
Avatar
Permanently deleted user

I have the same problem for a long time, and I also use self-define maven setting.My IDEA version is ULTIMATE 2018.1, this problem also exist on ULTIMATE 2017.3. Help and please fix this issue. 

0

@Zxf153562 please provide several jstack thread dumps of IDE process and all logs zipped when issue happens.

Do you have issue only with non-bundled Maven? Does using this maven version from command line work?

0
Avatar
Permanently deleted user

@Andrey Dernov

"Does using this maven version from command line work?"

yes

 

"Do you have issue only with non-bundled Maven?"

Hadn't even tried with bundled Maven.

 

" all logs zipped when issue happens"

where is the logs?

0

Please try using bundled Maven.

>where is the logs?

Help | Show logs in ... please see https://intellij-support.jetbrains.com/hc/en-us/articles/207241085 (there is a link in the previous message).

Jstack thread dumps would be helpful as well to analyze the problem.

0
Avatar
Permanently deleted user

@Andrey Dernov

It works fine when using bundled Maven.

I analyzed the log, there isn't any error message when the stuck happened, and I can reproduce this problem every time with non-bundled Maven , so I think you also can reproduce this problem easily with the self-define maven setting as the image I uploaded at above comment.

If you really need Jstack thread dumps, I will try to provide.

Another question, how can I upgrade the bundled Maven to a newer version?

0

I can not not reproduce the issue on Windows or Linux. Please provide several jstack dumps of IDE process as described at https://intellij-support.jetbrains.com/hc/en-us/articles/206544899.

Please also take several jstack dumps of the jvm process which IDE launches for doing Maven importing. You can find it in linux environment with the command like 

ps auxww | grep idea.maven.embedder.version

then please take several jstack dumps of the pid of this process when you are having the issue.

Please attach these dumps together with all IDE logs zipped. Thank you.

0

Please sign in to leave a comment.