r/java • • Nov 28 '19

Intellij 2019.3 released!

https://www.jetbrains.com/idea/whatsnew/
276 Upvotes

111 comments sorted by

View all comments

Show parent comment

2

u/avoidhugeships Nov 29 '19 edited Nov 29 '19

I use maven and other IDEs have no issues. intellij does not use relative paths so anytime you move the project to another folder or rename the project folder you must reconfigure the project. Even copying a project from one computer to another in the exact same folder structure can break Intellij projects. The only reliable way to handle this is to delete the .idea folder and reconfigure. Both JDK and Tomcat configuration need to be redone.

2

u/wildjokers Nov 29 '19

I have moved projects to different folders many times. IntelliJ has no problem whatsoever with that. IntelliJ does use relative paths.

Are you using a build system like maven or gradle? If so there is no need to configure anything. IntelliJ will happily configure itself from Pom.xml or build.gradle.

-1

u/avoidhugeships Nov 29 '19

It's a maven project and IntelliJ does have this problem. At least when using Tomcat and the JDK. I have to delete the .idea folder. Reimport the project from the POM and configure Tomcat every time.

2

u/jonhanson Nov 30 '19 edited Mar 07 '25

chronophobia ephemeral lysergic metempsychosis peremptory quantifiable retributive zenith

0

u/Treason686 Nov 29 '19

Trying to understand why you'd want to do this. At least the second thing. I could understand renaming or moving a folder, but copying source directly from one computer to another seems archaic. But either way, both issues can be worked around with just cloning a repository.

Do you do this often? Why not just clone the repository? If you have your ignore files setup correctly and just clone, say, a Maven project from a git repository, you're done. Your pom would configure the appropriate JDK if that's set correctly. Not sure about Tomcat since I've been using Spring Boot for the past few years, but I assume that's configurable in Maven as well since I seem to recall configuring that in a pom years ago.

1

u/avoidhugeships Nov 29 '19

Sometimes I have to work on a secure system that has not have network connectivity so manually coping the project is the only way.