6.4. Creating the Spring Archetype Project

Use the following procedure to create an archetype Spring project using Red Hat JBoss Developer Studio.

Procedure 6.1. Creating a Maven Project

  1. Start JBoss Developer Studio.
  2. Ensure you are using the JBoss perspective.
  3. Click FileNewSpring MVC Project.
  4. Enter the Target Runtime and click Next.
  5. Enter the Project name and Package.
    Project name
    jboss-springmvc-webapp (that is the default)
    Package
    org.jboss.tools.example.springmvc (that is the default)
    Use default Workspace location
    (leave checked)
  6. Click Next. Confirm the Group Id, Artifact Id, Version, and Package.
    Group Id
    Automatically set to org.jboss.tools.example.springmvc
    Artifact Id
    jboss-springmvc-webapp
    Version
    0.0.1-SNAPSHOT
    Package
    Automatically set to org.jboss.tools.example.springmvc
  7. Click Finish.
    Result
    Your project is created.
Spring Project Nature
Adding the Spring Project nature is not a requirement, but it enables integration with Spring IDE. This includes visualizing your application context definition, and syntactical and semantical checks.

Procedure 6.2. Adding tool support for Spring

  1. In the JBoss Central view, select the Software/Update tab.
  2. In the Features Available list, select the Spring IDE plug-in.
  3. Click Install.