You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Srikanth Reddy <gr...@yahoo.co.in> on 2006/02/24 13:54:27 UTC
how to use my own jar as dependencies
Hi,
I am new to maven environment i started intigrating an already existing project with maven, i have to use ServletPortlet jar in one of the files but
http://www.ibiblio.org/maven2 dosent have any thing by which i could map to that repositry and download that jar into my local repository by providing that info in <dependency></dependency> in pom.xml right.
Can u plz let me know how to compile my project by specifing ServletPortal.jar externally or any other way by which I can compiling my project
Regards
Srikanth Reddy
---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
Re: how to use my own jar as dependencies
Posted by Tom Joad <tj...@gmail.com>.
Hi
To run install:install-file you don't need to create pomfile. Sorry
.Gautham is wright.
you can run directly the command i gave you under your directory.
So you can use the jar as a dependency .
Tom.
2006/3/9, Ashish Srivastava <as...@yahoo.com>:
> Thanks Tom. Where do I need to create the
> library-version.pom file?
>
> If say I have a a.jar file in "lib/" where to put the
> following in?
>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>GROUIDYOUDEFINE </groupId>
> <artifactId>ARTIFACTIDYOUDEFINE </artifactId>
> <version>YOUVERSION </version>
> </project>
>
> Thanks,
> -Ashish
>
> --- Tom Joad <tj...@gmail.com> wrote:
>
> > You can install your jar in your local repository.
> >
> > Run command
> > mvn -e -X install:install-file -Dfile=(Relative or
> > absolute
> > path)ServletPortlet .jar -Dversion=YOUVERSION
> > -Dartifactid=ARTIFACTIDYOUDEFINE
> > -DgroupId=GROUIDYOUDEFINE
> > -Dpackaging=jar -Dgeneratepom=true
> > It's install your local repository with maven
> > standard tree structrur
> >
> GROUIDYOUDEFINE/ARTIFACTIDYOUDEFINE/YOUVERSION/ServletPortlet.jar
> > ~/ServletPortlet.pom
> >
> > You must declare your jar as dependency inside your
> > project pom file.
> > If this command needs a project with pomfile
> > Create a directory and copy in your jar create a
> > simple pom.xml file
> > <project>
> > <modelVersion>4.0.0</modelVersion>
> > <groupId>GROUIDYOUDEFINE </groupId>
> > <artifactId>ARTIFACTIDYOUDEFINE </artifactId>
> > <name>Clover</name>
> > <version>YOUVERSION </version>
> > </project>
> > and run the above command.
> > Tom.
> >
> > 2006/2/24, Srikanth Reddy
> > <gr...@yahoo.co.in>:
> > > Hi,
> > > I am new to maven environment i started
> > intigrating an already existing project with maven,
> > i have to use ServletPortlet jar in one of the files
> > but
> > > http://www.ibiblio.org/maven2 dosent have any
> > thing by which i could map to that repositry and
> > download that jar into my local repository by
> > providing that info in <dependency></dependency> in
> > pom.xml right.
> > >
> > > Can u plz let me know how to compile my project
> > by specifing ServletPortal.jar externally or any
> > other way by which I can compiling my project
> > >
> > > Regards
> > > Srikanth Reddy
> > >
> > >
> > > ---------------------------------
> > > Jiyo cricket on Yahoo! India cricket
> > > Yahoo! Messenger Mobile Stay in touch with your
> > buddies all the time.
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@maven.apache.org
> > For additional commands, e-mail:
> > users-help@maven.apache.org
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to use my own jar as dependencies
Posted by Ashish Srivastava <as...@yahoo.com>.
Thanks Tom. Where do I need to create the
library-version.pom file?
If say I have a a.jar file in "lib/" where to put the
following in?
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>GROUIDYOUDEFINE </groupId>
<artifactId>ARTIFACTIDYOUDEFINE </artifactId>
<version>YOUVERSION </version>
</project>
Thanks,
-Ashish
--- Tom Joad <tj...@gmail.com> wrote:
> You can install your jar in your local repository.
>
> Run command
> mvn -e -X install:install-file -Dfile=(Relative or
> absolute
> path)ServletPortlet .jar -Dversion=YOUVERSION
> -Dartifactid=ARTIFACTIDYOUDEFINE
> -DgroupId=GROUIDYOUDEFINE
> -Dpackaging=jar -Dgeneratepom=true
> It's install your local repository with maven
> standard tree structrur
>
GROUIDYOUDEFINE/ARTIFACTIDYOUDEFINE/YOUVERSION/ServletPortlet.jar
> ~/ServletPortlet.pom
>
> You must declare your jar as dependency inside your
> project pom file.
> If this command needs a project with pomfile
> Create a directory and copy in your jar create a
> simple pom.xml file
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>GROUIDYOUDEFINE </groupId>
> <artifactId>ARTIFACTIDYOUDEFINE </artifactId>
> <name>Clover</name>
> <version>YOUVERSION </version>
> </project>
> and run the above command.
> Tom.
>
> 2006/2/24, Srikanth Reddy
> <gr...@yahoo.co.in>:
> > Hi,
> > I am new to maven environment i started
> intigrating an already existing project with maven,
> i have to use ServletPortlet jar in one of the files
> but
> > http://www.ibiblio.org/maven2 dosent have any
> thing by which i could map to that repositry and
> download that jar into my local repository by
> providing that info in <dependency></dependency> in
> pom.xml right.
> >
> > Can u plz let me know how to compile my project
> by specifing ServletPortal.jar externally or any
> other way by which I can compiling my project
> >
> > Regards
> > Srikanth Reddy
> >
> >
> > ---------------------------------
> > Jiyo cricket on Yahoo! India cricket
> > Yahoo! Messenger Mobile Stay in touch with your
> buddies all the time.
> >
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to use my own jar as dependencies
Posted by Tom Joad <tj...@gmail.com>.
You can install your jar in your local repository.
Run command
mvn -e -X install:install-file -Dfile=(Relative or absolute
path)ServletPortlet .jar -Dversion=YOUVERSION
-Dartifactid=ARTIFACTIDYOUDEFINE -DgroupId=GROUIDYOUDEFINE
-Dpackaging=jar -Dgeneratepom=true
It's install your local repository with maven standard tree structrur
GROUIDYOUDEFINE/ARTIFACTIDYOUDEFINE/YOUVERSION/ServletPortlet.jar
~/ServletPortlet.pom
You must declare your jar as dependency inside your project pom file.
If this command needs a project with pomfile
Create a directory and copy in your jar create a simple pom.xml file
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>GROUIDYOUDEFINE </groupId>
<artifactId>ARTIFACTIDYOUDEFINE </artifactId>
<name>Clover</name>
<version>YOUVERSION </version>
</project>
and run the above command.
Tom.
2006/2/24, Srikanth Reddy <gr...@yahoo.co.in>:
> Hi,
> I am new to maven environment i started intigrating an already existing project with maven, i have to use ServletPortlet jar in one of the files but
> http://www.ibiblio.org/maven2 dosent have any thing by which i could map to that repositry and download that jar into my local repository by providing that info in <dependency></dependency> in pom.xml right.
>
> Can u plz let me know how to compile my project by specifing ServletPortal.jar externally or any other way by which I can compiling my project
>
> Regards
> Srikanth Reddy
>
>
> ---------------------------------
> Jiyo cricket on Yahoo! India cricket
> Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org