• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Create the Maven Project  RSS feed

 
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To quickly get up a new Spring Project, I recommend the awesome Spring Initializr website. There you can easily enter the dependencies you need for your project.

We need the following Spring dependencies:

spring-boot-starter-security
spring-boot-starter-web
mysql-connector-java
Secondly, we also need to add the Speedment dependency as well as the Speedment plugin to generate our code. There is also a Speedment Initializer that I recommend using, It will produce something like this:

 
Author
Ranch Hand
Posts: 96
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this going to be a tutorial thread?
 
Marshal
Posts: 60136
188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Moving to our Spring forum. You appear to have posted the same post twice, so I deleted one unnecessary copy.
 
Rancher
Posts: 968
9
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's wrong with the command line? 

spring init --dependencies=web,data-jpa my-project


 
Bartender
Posts: 19731
92
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Peter Rooke wrote:What's wrong with the command line? 

spring init --dependencies=web,data-jpa my-project





Spring Roo?
 
Peter Rooke
Rancher
Posts: 968
9
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring Roo died a few years back.   Spring Boot CLI
 
Tim Holloway
Bartender
Posts: 19731
92
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah. I tried it. Twice. Never got into it.
 
Peter Rooke
Rancher
Posts: 968
9
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I never really got into Spring Roo.  Seemed like another code generation tool, where I didn't always like (understand) the code it produced.

Spring boot seems to have got it right, take an opinionated viewpoint.   After all, I'll guess that most projects have similar features, with only a few exceptions.  The trick is to allow developers to have enough flexibility to develop the unique parts of their systems but to allow the framework to use best practices.  Ikea Effect.

Sadly I don't get to play with spring boot (much) at work.  
 
Tim Holloway
Bartender
Posts: 19731
92
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's my impression of Roo, too.

Anyway, my typical spin-up of a Spring project is to either use a Maven archetype or to clone an existing project, if I have a suitable model already.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!