You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by George A <do...@yahoo.com> on 2004/10/21 09:39:44 UTC
problem with maven
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
Re: problem with maven
Posted by Arnaud HERITIER <ah...@gmail.com>.
> hello friends,
Hello
(see intermixed ..)
> 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 ?
By default you can call 'maven'
It will call the default goal defined in the maven.xml file (if exist)
For example in the turbine's root, the goal "turbine:build" is called
> 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.
It is not the same thing if you want to build your project using TDK or run it.
Maven can help you to build it but you need to configure it (see the maven doc)
> 2) if we can create app using maven how is the directory structure supposed to look like ?
By default, all the generated data are stored in the subdirectory
"target" in your project.
> 3) how to integrate with tomcat ? how to start tomcat from 'within' maven ?
> folloing are the commands i gave and the results
You need for example use the plugin webserver for example.
http://maven.apache.org/reference/plugins/webserver/
I didn't use it, thus I don't know how it works.
Arnaud
>
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org