You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kiran Kodlady <ki...@gmail.com> on 2007/07/24 15:04:35 UTC

how can we configure a jar project?



hello all, 

can somebody tell me how can we just configure projets using Maven2?? Like
while doing development of a jar module i want all jars should  be referred
from my local repository. So that compile time errors will be avoided.. 
In maven1,  we do have a goal like "configure" . Once we run it for a jar
module all dependency jars are refereed from local referository.. where as
for a war project, jars will be stacked inside lib folder to  help during
runtime. 

Could u plz let me know, is there any similiar kind of options in Maven2. 


Thanks a lot in advance.. 

Kiran Kodlady.
-- 
View this message in context: http://www.nabble.com/how-can-we-configure-a-jar-project--tf4135832s177.html#a11762562
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: how can we configure a jar project?

Posted by Maria Odea Ching <oc...@exist.com>.
Hi,

You don't need to do that in Maven 2. If you want to package a project, 
you only need to specify its packaging whether "jar" or "war", etc., set 
the dependencies of your project in the pom.xml and then execute "mvn 
package". These dependencies will be downloaded from the central repo if 
it does not yet exist in your local Maven 2 repo (${USER_DIR}/.m2 by 
default) and will be included when the project is packaged (for wars).

For more details on the different plugins available and how to configure 
them, see http://maven.apache.org/plugins/index.html . You can check out 
the plugin configuration by selecting/clicking a plugin on the list.

HTH,
Deng

Kiran Kodlady wrote:
>
> hello all, 
>
> can somebody tell me how can we just configure projets using Maven2?? Like
> while doing development of a jar module i want all jars should  be referred
> from my local repository. So that compile time errors will be avoided.. 
> In maven1,  we do have a goal like "configure" . Once we run it for a jar
> module all dependency jars are refereed from local referository.. where as
> for a war project, jars will be stacked inside lib folder to  help during
> runtime. 
>
> Could u plz let me know, is there any similiar kind of options in Maven2. 
>
>
> Thanks a lot in advance.. 
>
> Kiran Kodlady.
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org