You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Averill Cate Jr <ac...@email.arizona.edu> on 2007/05/16 02:06:56 UTC
Novice User Question
Hi,
I am relatively new to Maven and hope to try and use it for a project.
I am using another vendors jar files (many) for my web-app project. I
would like to add all of this vendor's jar files to my local
repository. I am not sure how to do this. Can someone help? Thanks in
advance.
acatejr
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Novice User Question
Posted by Jo Vandermeeren <jo...@gmail.com>.
Hi Averill,
Seems you're getting a bit confused.
For each jar file that you want to install manually in your local maven
repository, do the following:
1. Define a group ID value for the jars you are installing, if they are 3rd
party, give them the vendor's name or url or something (groupId)
2. Define a unique artifact ID for the jar file (artifactId)
3. Define a version for the jar file (version)
4. Execute the following command, using the values you have defined in the
previous steps instead of "your.groupId", "your.artifactId" and "
your.version":
mvn install:install-file -DgroupId=your.groupId -DartifactId=your.artifactId \
-Dversion=your.version -Dpackaging=jar
-Dfile=/path/to/the/jarfile/ -DgeneratePom=true
This will install the jar file in your maven repository and creat a POM
descriptor for it..
If the jar files has dependencies to other artifacts, you might want to add
them to the depdendencies list of the generated POM.
Cheers
Jo
On 5/16/07, Averill Cate Jr <ac...@email.arizona.edu> wrote:
>
> Hi,
>
> I am relatively new to Maven and hope to try and use it for a project.
> I am using another vendors jar files (many) for my web-app project. I
> would like to add all of this vendor's jar files to my local
> repository. I am not sure how to do this. Can someone help? Thanks in
> advance.
>
> acatejr
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Novice User Question
Posted by Steven Rowe <sa...@syr.edu>.
Hi Averill,
What exactly do you mean by "append each jar"? To what? What outcome
are you looking for?
I think "(over)writing the jar file in the repository" is exactly what
is meant by "adding jar files to the local repository". Maybe your
terminology is causing miscommunication.
The main point of putting .jar files in your local repository is to make
them available for Maven's dependency resolution mechanism - do you have
something else in mind?
Steve
Averill Cate Jr wrote:
> Thanks. I tried that, but all it does is keep overwriting the jar file
> in the repository. It doesn't append each jar that I need. Is there a
> setting or command line arg that I should be using? Thanks again.
>
> acatejr
>
> Jaish.Singh@wellsfargo.com wrote:
>> Use maven install:install command
>>
>> -----Original Message-----
>> From: Averill Cate Jr [mailto:acate@email.arizona.edu] Sent: Tuesday,
>> May 15, 2007 5:07 PM
>> To: users@maven.apache.org
>> Subject: Novice User Question
>>
>> Hi,
>>
>> I am relatively new to Maven and hope to try and use it for a
>> project. I am using another vendors jar files (many) for my web-app
>> project. I
>> would like to add all of this vendor's jar files to my local repository.
>> I am not sure how to do this. Can someone help? Thanks in advance.
>>
>> acatejr
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Novice User Question
Posted by Maria Odea Ching <oc...@exist.com>.
The -D settings that you can set for the maven plugin goals are
available at the maven site, here's the link:
http://maven.apache.org/plugins
The parameters are listed in each of the plugin goals page and the
Expression defined in the plugin docs are the values which you use in
the -D settings.
-Deng
Averill Cate Jr wrote:
> Thank you. This is very useful. One question though, where do I find
> documentation on all of the "-D" settings that can be set in maven?
>
> Thanks again.
>
> Averill
>
> Maria Odea Ching wrote:
>> <div class="moz-text-flowed" style="font-family: -moz-fixed">You want
>> to install your vendor jars in the local repo right?
>>
>> You should use 'mvn install:install-file', an example can be found here:
>> http://maven.apache.org/plugins/maven-install-plugin/examples/generic-pom-generation.html
>>
>>
>> To use these jars in your project, you should add them as
>> dependencies in your pom file. Make sure that you specified the
>> correct groupId, artifactId and version (should be the same as what
>> you've set when you did 'mvn install:install-file').
>>
>> Btw, what 'mvn install:install', or just simply 'mvn install', does
>> is that it builds and installs the project (where you executed this
>> command) in your local repository.
>>
>> -Deng
>>
>> Averill Cate Jr wrote:
>>> Thanks. I tried that, but all it does is keep overwriting the jar
>>> file in the repository. It doesn't append each jar that I need. Is
>>> there a setting or command line arg that I should be using? Thanks
>>> again.
>>>
>>> acatejr
>>>
>>> Jaish.Singh@wellsfargo.com wrote:
>>>> Use maven install:install command
>>>>
>>>> -----Original Message-----
>>>> From: Averill Cate Jr [mailto:acate@email.arizona.edu] Sent:
>>>> Tuesday, May 15, 2007 5:07 PM
>>>> To: users@maven.apache.org
>>>> Subject: Novice User Question
>>>>
>>>> Hi,
>>>>
>>>> I am relatively new to Maven and hope to try and use it for a
>>>> project. I am using another vendors jar files (many) for my
>>>> web-app project. I
>>>> would like to add all of this vendor's jar files to my local
>>>> repository.
>>>> I am not sure how to do this. Can someone help? Thanks in advance.
>>>>
>>>> acatejr
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> </div>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Novice User Question
Posted by Maria Odea Ching <oc...@exist.com>.
You want to install your vendor jars in the local repo right?
You should use 'mvn install:install-file', an example can be found here:
http://maven.apache.org/plugins/maven-install-plugin/examples/generic-pom-generation.html
To use these jars in your project, you should add them as dependencies
in your pom file. Make sure that you specified the correct groupId,
artifactId and version (should be the same as what you've set when you
did 'mvn install:install-file').
Btw, what 'mvn install:install', or just simply 'mvn install', does is
that it builds and installs the project (where you executed this
command) in your local repository.
-Deng
Averill Cate Jr wrote:
> Thanks. I tried that, but all it does is keep overwriting the jar
> file in the repository. It doesn't append each jar that I need. Is
> there a setting or command line arg that I should be using? Thanks
> again.
>
> acatejr
>
> Jaish.Singh@wellsfargo.com wrote:
>> Use maven install:install command
>>
>> -----Original Message-----
>> From: Averill Cate Jr [mailto:acate@email.arizona.edu] Sent: Tuesday,
>> May 15, 2007 5:07 PM
>> To: users@maven.apache.org
>> Subject: Novice User Question
>>
>> Hi,
>>
>> I am relatively new to Maven and hope to try and use it for a
>> project. I am using another vendors jar files (many) for my web-app
>> project. I
>> would like to add all of this vendor's jar files to my local repository.
>> I am not sure how to do this. Can someone help? Thanks in advance.
>>
>> acatejr
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>
>
> ---------------------------------------------------------------------
> 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: Novice User Question
Posted by Wayne Fay <wa...@gmail.com>.
Copy and paste the command(s) you are using, and what the outcome is
of each execution. You're probably just using the mvn install command
incorrectly.
Wayne
On 5/15/07, Averill Cate Jr <ac...@email.arizona.edu> wrote:
> Thanks. I tried that, but all it does is keep overwriting the jar file
> in the repository. It doesn't append each jar that I need. Is there a
> setting or command line arg that I should be using? Thanks again.
>
> acatejr
>
> Jaish.Singh@wellsfargo.com wrote:
> > Use maven install:install command
> >
> > -----Original Message-----
> > From: Averill Cate Jr [mailto:acate@email.arizona.edu]
> > Sent: Tuesday, May 15, 2007 5:07 PM
> > To: users@maven.apache.org
> > Subject: Novice User Question
> >
> > Hi,
> >
> > I am relatively new to Maven and hope to try and use it for a project.
> > I am using another vendors jar files (many) for my web-app project. I
> > would like to add all of this vendor's jar files to my local repository.
> > I am not sure how to do this. Can someone help? Thanks in advance.
> >
> > acatejr
> >
> > ---------------------------------------------------------------------
> > 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
> >
> >
>
>
> ---------------------------------------------------------------------
> 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: Novice User Question
Posted by Averill Cate Jr <ac...@email.arizona.edu>.
Thanks. I tried that, but all it does is keep overwriting the jar file
in the repository. It doesn't append each jar that I need. Is there a
setting or command line arg that I should be using? Thanks again.
acatejr
Jaish.Singh@wellsfargo.com wrote:
> Use maven install:install command
>
> -----Original Message-----
> From: Averill Cate Jr [mailto:acate@email.arizona.edu]
> Sent: Tuesday, May 15, 2007 5:07 PM
> To: users@maven.apache.org
> Subject: Novice User Question
>
> Hi,
>
> I am relatively new to Maven and hope to try and use it for a project.
> I am using another vendors jar files (many) for my web-app project. I
> would like to add all of this vendor's jar files to my local repository.
> I am not sure how to do this. Can someone help? Thanks in advance.
>
> acatejr
>
> ---------------------------------------------------------------------
> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Novice User Question
Posted by Ja...@wellsfargo.com.
Use maven install:install command
-----Original Message-----
From: Averill Cate Jr [mailto:acate@email.arizona.edu]
Sent: Tuesday, May 15, 2007 5:07 PM
To: users@maven.apache.org
Subject: Novice User Question
Hi,
I am relatively new to Maven and hope to try and use it for a project.
I am using another vendors jar files (many) for my web-app project. I
would like to add all of this vendor's jar files to my local repository.
I am not sure how to do this. Can someone help? Thanks in advance.
acatejr
---------------------------------------------------------------------
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