[eclipse] What's the best method to setup a fresh project from scratch?

5 posts / 0 new
Last post
Rick
Offline
Joined: 12/07/2011
[eclipse] What's the best method to setup a fresh project from scratch?

So I was able to do the two demos and got them working fine albeit without using Tomcat (couldn't get it to work) but used Jetty instead via the command line.  However, I'm ready to take the next step and start a toy app from scratch -- however I'm not sure what the best approach is.. I started out copying the helloworld project and modifying it by hand which is rather painful as there are lots of things to change including paths..  So, what's the best way to do this from scratch???

Thanks!

 

 

maxime
Offline
Joined: 06/23/2008
Hi Rick The appropriate

Hi Rick

The appropriate solution to start a new project is to use the Jspresso's Maven archetype... you can read instruction about that in the "CRUD Application in 5 mintures".

Let's try it... and let us know if you have any issue !

Regards

Maxime

Rick
Offline
Joined: 12/07/2011
Thanks for the reply Maxime..

Thanks for the reply Maxime.. If I do that, can I just override the hello-world parts and com.example.helloworld with my own stuff?  Also, if I'm generating a new app for my new website called "foo.com" (fake obviously) and plan to have only a single web-app hosted on that site, what do I put for the "helloworld" portion (artifact ID)?  I found out last night that Maven and friends really don't like it to be left empty..  This is the sort of stuff that may be obvious for Java programmers but for Java newbies like me, I'm not sure how to proceed in some of these cases -- hence my interest in making some documentation updates to help out others like me in the future that may initially checkout Jspresso but want docs that explain some things a bit further.

maxime
Offline
Joined: 06/23/2008
Hello I think ypou should

Hello

I think ypou should respect the same logic for example, you can use :

  • groupId = org.rick.toy
  • artefactId = toy (the last word from groupId)
  • version = 1.0-SNAPSHOT (better if think than 0.0.1. It is important to keep "-SNAPSHOT" at the end
  • package = org.rick.toy (like groupId)
  • jspressoVersion = 3.5.9 (the last stable version of Jspresso)
  • no matter about the other parameters...

Hope this will help,

Maxime

 

Rick
Offline
Joined: 12/07/2011
Thanks!  I'll give it a shot

Thanks!  I'll give it a shot this evening!