Legacy project in IntelliJ Ultimate
I have a task ahead at my new workplace. I intend to use IntelliJ in order to run a legacy code project. Let's call it TarkIT. It is software for managing some parts of traffic infrastructure and payments. TarkIT is made in the year 2010. Its modules are based on Java 1.7, and some are on Java 1.6. I can see some Maven files, IntelliJ offer to build some Ant files, and some mentions of Hibernate, and some other technologies, but I'm not sure (nobody here is) how much of the code is necessary until we go refactoring it next year. It is a web application with a heavy back-end basis, and front-end presentation with some things even possible to be changed functionally on the front-end, running on Tomcat 7.0.9.
Nobody around me doesn't know everything about how TarkIT is really functioning. They just inherited their tasks to maintain TarkIT and its bugs through Eclipse IDE. So, I decided to make TarkIT's 15 modules (those are really separate projects, but work as one application) capable to be connected and functioning through the IntelliJ IDE. Of course, I have difficulties trying to set up, integrate and run TarkIT legacy code through IntelliJ. Importing TarkIT projects/modules through SVN, IntelliJ removed names for some of them, making them separated as 'main' and 'test'. Trying to run it, after many hours of importing and tuning, I am getting error by error that makes no sense to me at this stage of onboarding in the team. The guys around me had their own difficulties setting up Eclipse and STS for the same legacy thing.
I still have the intention to enable IntelliJ for running TarkIT. I just don't know what I need to fine-tune inside the IntelliJ. What is called 'workspace' in Eclipse I made 'empty project', and what's called projects in Eclipse I made modules, I think I brought in the same dependencies. Is there any tuning of IntelliJ's correctional sensitivity to be more acceptable for such legacy projects? Do you have any ideas for me to stubbornly "win", not give up, and set up IntelliJ for such an application?
Grateful in advance. Kind wishes
请先登录再写评论。
*front-end has facets (Iceface, and I see mentions of AspectJ)
Hello,
Am I got you right that you have multiple modules, some of them are Maven based and some are not?
Generally you may create new empty project (like you did), import modules one by one and then check dependencies in "Project Structure | Modules - Dependencies".
If you could provide some screenshots with the error you got I could try to help with importing.
@Yaroslav, thanks. At the moment, the only (first) error during the build is one that mentions enum that the module can't reach. Investigating, I found the old enum in the 'test' folder instead of 'main'. How that happened - no clue. I don't even know if the "test" should be there. The build stopped. I'll look into it. I'll set up Eclipse to watch what is happening and come back to IntelliJ as more info from the community and my investigation pile up.
It would be nice to learn how to set up IntelliJ to be less strict toward glitches while building the app.
Seems there is no direct instruction as projects (especially legacy) might have very complex structure.