In this tutorial we will create a simple Java EE application from scratch using the Maven archetypes provided by Sculptor. It consists of the following projects:
• sculptor-helloworld-parent - Only a maven project for building the other parts.
• sculptor-helloworld - Business tier. EJB project containing the services and domain objects.
• sculptor-helloworld-web - Presentation tier. Web application with CRUD GUI.
• sculptor-helloworld-ear - EAR package of the deployable application.
Setup maven projects
We start with creating a script that calls the 4 maven archetypes to generate the project structures and maven build files. It also does an inital build and generation of Eclipse project with the maven eclipse plugin. Of course you can execute these commands one by one from the command prompt, but the script is useful when doing this several times.
Copy the following script to sculptor-archetypes.cmd, located in the root of your Eclipse workspace. Adjust paths to your environment.
set MVN_HOME=C:\devtools\Maven-2.0.6
set JAVA_HOME=C:\devtools\Jdk-1.5.0_12
set path=%MVN_HOME%\bin;%JAVA_HOME%\bin
Download pdf Sculptor Archetype Tutorial
Related Searches: eclipse project, eclipse plugin, application from scratch, project structures, ear ear
RSS feed for comments on this post · TrackBack URI
Leave a reply