Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven Archtype - Solutions / idea needed

 
Ganesh Gowtham
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends ,

I would to create the maven archtype for my project .

1. Only Webservices
2 . web project + web services

on seeing the below page , i got some idea how to kick start .
Maven Archtype

I know that maven archtype when given ${xx.dd} will ask the user , based on which files at the target folder gets changed ( exmple package , name of files ....)

my scenario is like user should be questioned like do you need only webservices (or) webapp + ws , based on which i need to create the target webapp . ( i know for single webapp we maintain archtype.xml which has list of files to be included ....)

Question
Is it possible to ask question , do you need ws (or) webapp + ws ? if so how ?

 
Tim Holloway
Saloon Keeper
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you're trying to turn the archetype builder into a wizard, and that's stretching its intended purpose. The archetypes are supposed to essentially template out model projects of particular generic types, so you'd typically have a web archetype and a non-web archetype, for example. You can enhance this process with specialized goals, such as the Eclipse and IntelliJ plugins, which will upgrade an existing project to add in support for their respective IDEs.

On the other hand, for an example of a much more sophisticated approach, take a look at Spring Roo. It's a command-line tool that lays out a prototype, then allows extensive round-trip modifications of the project.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic