To be more specific:
Look at the maven-deploy-plugin

http://maven.apache.org/plugins/maven-deploy-plugin/usage.html

and use the
> mvn deploy:deploy-file 
mojo


Example:
mvn deploy:deploy-file -DrepositoryId=myrepo.id \
                       -Dfile=myjartoupload.jar \
                       -DgroupId=my.groupId \
                       -DartifactId=my-artifactId \
                       -Dversion=myversion \
                       -Dpackaging=jar \

You can use this mojo from everywhere, since it is marked as '@requiresProject 
false'.

If this was successfull (check your ~/.m2/repository), you may remove this jar 
from your lib
folder and add the dependency in your pom.

hope this helps,
strub

--- Johan Eltes <[EMAIL PROTECTED]> schrieb:

> You need to put them in you local repo. You don't need to create a pom  
> for them.
> 
> /Johan
> 
> 
> 
> 18 apr 2008 kl. 22.05 Lachlan Deck <[EMAIL PROTECTED]> skrev:
> 
> > Hi there,
> >
> > I'm quite new to maven, but I would have thought this question would  
> > have been included on the FAQ page for maven - but it's not. I've  
> > googled around but mustn't be putting in the right search phrase or  
> > something... as obviously I've not found the answer :-)
> >
> > The simple question is how do I define dependencies on libs/*.jar  
> > for one of my projects where I have jars from a 3rd party (a payment  
> > gateway) in the project's lib folder. These libs live in svn with  
> > the project - not in a repo (and don't have a version or a pom of  
> > their own - they're just libs).
> >
> > i.e., they obviously need to be on the classpath + packaged with the  
> > final jar?
> >
> > I'm sure it's something simple... thanks in advance.
> >
> > with regards,
> > --
> >
> > Lachlan Deck
> >


      __________________________________________________________
Gesendet von Yahoo! Mail.
Der Mailbox mit unbegrenztem Speicher.
http://de.overview.mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to