[Java] Java development environment memo

less than 1 minute read

1.First of all

A memorandum when building a Java development environment using pleiades


2-1. Importing a project already registered in git


  1. [File]-[Import]
  2. Select [Git]-[Project from Git] and click [Next].
  3. Select [Clone URI] and click [Next].
  4. Enter the required items on the “Source Git Repository” screen, and click “Next”.
  5. In Select Branch, click Next.
  6. Properly proceeded to the next step

2-2. Register a new project in git


  1. Create a project with pleiades.
  2. Right-click the project and select [Team]-[Share Project]
  3. Select Git as the repository type and click Next
  4. Check “Use or create repository in project’s parent folder” and click “Create repository” button to complete.

2-3.TIPS for git

do not commit *.class

Put a file called “.gitignore” directly under the project and write “*.class” inside it. Reference URL https://qiita.com/anqooqie/items/110957797b3d5280c44f

There was a template file. https://github.com/github/gitignore

If you accidentally commit

  1. In pleiades Package Explorer, select the target folder/file and right-click.
  2. Select [Team]-[Expand]-[Untrack].

Please note that the committed file will be tracked and the .gitignore setting will not be reflected, so it needs to be excluded from tracking.

3. Maven

The project is Maven project. reference