hello friends,
i am facing obstacles in maven and how to use it . i am very much new to it
just installed it and want a TDK 2.3 project to run using maven. but frankly i am a
very tough time with it . i have following querries . if anyone would suggest a remedy
to few/all of them as they can it would be truly of great help to me . and very sorry
about being so clueless about maven : ( .
1) what is equivalent of 'ant' and 'ant init'? ie. how do we create application using
maven
? or is it that you create an application in TDK 2.3 and then run it using maven ? i
have
successfully created an application in TDK 2.3 usig ant and it is running in browser .
but
dont know how to run it in maven.
2) if we can create app using maven how is the directory structure supposed to look
like ?
3) how to integrate with tomcat ? how to start tomcat from 'within' maven ?
folloing are the commands i gave and the results
maven appserver:init ---> error
BUILD FAILED
File...... C:\Documents and
Settings\vrishalib\.maven\cache\maven-appserver-plugin-2.0\plugin.jelly
Element... ant:fail
Line...... 54
Column.... 31
--------------------------------------------------------------------------
| Plugin Configuration Error |
--------------------------------------------------------------------------
A required property is missing a value.
Property name: maven.appserver.name
Errors must be corrected before using this plugin.
--------------------------------------------------------------------------
so in the plugin.jelly file specified the appserver name to 'tomcat'
maven appserver:init ---> error
BUILD FAILED
File...... C:\Documents and
Settings\vrishalib\.maven\cache\maven-appserver-plugin-2.0\plugin.jelly
Element... ant:fail
Line...... 54
Column.... 31
--------------------------------------------------------------------------
| Plugin Configuration Error |
--------------------------------------------------------------------------
A required property is missing a value.
Property name: maven.appserver.version
Errors must be corrected before using this plugin.
--------------------------------------------------------------------------
so gave version as '4.1.x' in plugin.jelly
maven appserver:init ---> error
BUILD FAILED
File...... C:\Documents and
Settings\vrishalib\.maven\cache\maven-appserver-plugin-2.0\plugin.jelly
Element... ant:fail
Line...... 85
Column.... 31
--------------------------------------------------------------------------
| Plugin Configuration Error |
--------------------------------------------------------------------------
The specified appserver name is currently not supported.
Property name: maven.appserver.name
Property value:
For supported maven.appserver.name values, please see the help docs.
--------------------------------------------------------------------------
finally gave up .
4) in maven home dir i have given following commands
maven jar ---> error
maven site:init ---> build successful ( do we need to do any changes in any file prior
to
this ? if yes i have not done any changes oopps, what to do ? )
maven site:generate ---> build successful
maven site:deploy ---> error
You must specify a maven username in order
You can either set this property in your ~
or specify one on the command line:
maven -Dmaven.username=${user.name} [goal]
so gave the command " maven -Dmaven.username=${user.name} "
again gave same error
so gave the command " maven -Dmaven.username=george " ---> build successful
maven site:deploy ---> error
finally gave up !!
(huff, puff, pant, pant)
any suggestions are most welcome
good bye folks,
george.
---------------------------------
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download
Messenger Now