Skip to content

Commit

Permalink
#101, #102 Updated the IntelliJ and Eclipse documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kolorobot committed May 17, 2016
1 parent 1d71ded commit 7074ab1
Showing 1 changed file with 35 additions and 23 deletions.
58 changes: 35 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,41 @@ Test in the browser

Note: No additional services are required in order to start the application. Mongo DB configuration is in place but it is not used in the code.

Create a new project in IntelliJ
--------------------------------

* Create new project `File > New > Project`
* Click Maven on the left hand side of the new project dialog
* Check `Create from archetype`
* Click the `Add Archetype` button
* Set `Group Id` to `pl.codeleak`
* Set `Artifact Id` to `spring-mvc-quickstart`
* Set `Version` to `1.0.0`
* Set `Repository` to `http://kolorobot.github.io/spring-mvc-quickstart-archetype`
* Click next and create the project

Note: If you would like to create a project using archetype published in your local repository, skip repository field and make sure it is installed locally (see below).

Creating a new project in Spring Tool Suite
-------------------------------------------

* Create new project `File > New > Maven Project`
* Make sure `Create a simple project` option is not selected
* Click `Next` to navigate to `Select an Archetype` screen
* Make sure `Include snapshot archetypes` is selected
* Click `Add Archetype` button
* Set `Archetype Group Id` to `pl.codeleak`
* Set `Archetype Artifact Id` to `spring-mvc-quickstart`
* Set `Archetype Version` to `1.0.0`
* Set `Repository URL` to `http://kolorobot.github.io/spring-mvc-quickstart-archetype`
* Click `OK` so the Archetype is added to the list
* Click `Next` and fill in `Group Id`, `Artifact Id` and `Version` of your new project

Note: Remember so select `Include snapshot archetypes`.

If you have any troubles with installation in Eclipse, you may want to have a look at this issue: #74


Install archetype locally
-------------------------

Expand Down Expand Up @@ -80,29 +115,6 @@ Create a new empty directory for your project and navigate into it and then run:

Note: The above command will bootstrap a project using the archetype published in your local repository.

Creating a new project in Eclipse
----------------------------------

* Import archetype URI by `Import ... > Projects from Git > Clone URI`
* Install the archetype in local repository with `mvn install`
* Go to `Preferences > Maven > Archetypes` and `Add Local Catalog`
* Select the catalog from file (`archetype-catalog.xml`)
* Create new Maven project and select the archetype (remember so select `Include snapshot archetypes`)

If you have any troubles with installation in Eclipse, you may want to have a look at this issue: #74

Creating a new project in IntelliJ
----------------------------------

* Create new project `File > New > Project`
* Click Maven on the left hand side of the new project dialog
* Check `Create from archetype`
* Click the `Add Archetype` button
* Set Group Id to `com.github.spring-mvc-archetypes`
* Set Artifact Id to `spring-mvc-quickstart`
* Set Version to `1.0.0`
* Click next and create the project

Switching to PostgreSQL
-----------------------

Expand Down

0 comments on commit 7074ab1

Please sign in to comment.