How can I import the whole project to eclipse and run it?
A readme file is appreaciated.
Hello @chakpongchung i had the same problem, i fork the repo and i had added the maven wrapper to my repo, check the readme to add the configuration to eclipse then just import the project using eclipse and thats it.
https://github.com/CesarChaMal/Head-First-Design-Patterns
Regards.
@CesarChaMal Thanks, this works for me. Could you explain how you added these files to make it done? From the files added, it seems a lot of work to add maven to have all the dependencies clear and also to add the configuration for eclipse and intellij IDE's.
@gongzelong0718 if you dont want to add to many files, works only with the pom.xml but you need to have Maven installed in advanced. I added the maven wrapper files so anyone can clear the dependencies without having Maven installed, The wrapper does that for you. This are the wrapper files
- .mvn/wrapper
- mvnw (linux script)
- mvnw.cmd (windows script)
If you are using any shell linux or windows you can run ./mvnw install for linux or mac and mvnw install for windows.
This will clear the dependencies for you.
Also as an extra i added this commands For eclipse linux ./mvnw eclipse:eclipse
windows mvnw eclipse:eclipse
For intellij linux ./mvnw idea:idea
windows mvnw idea:idea
So you can import using Eclipse or Intellj.
Regards.