File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven Archtype - Solutions / idea needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven Archtype - Solutions / idea needed" Watch "Maven Archtype - Solutions / idea needed" New topic

Maven Archtype - Solutions / idea needed

Ganesh Gowtham
Ranch Hand

Joined: Mar 30, 2005
Posts: 225

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 ....)

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

Thanks, Ganesh Gowtham
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17423

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Maven Archtype - Solutions / idea needed
It's not a secret anymore!