Head-First-Design-Patterns icon indicating copy to clipboard operation
Head-First-Design-Patterns copied to clipboard

How can I import the whole project to eclipse and run it?

Open chakpongchung opened this issue 8 years ago • 3 comments

A readme file is appreaciated.

chakpongchung avatar Oct 30 '17 19:10 chakpongchung

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 avatar Nov 07 '17 20:11 CesarChaMal

@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 avatar Nov 30 '17 07:11 gongzelong0718

@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

  1. .mvn/wrapper
  2. mvnw (linux script)
  3. 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.

CesarChaMal avatar Dec 01 '17 09:12 CesarChaMal