There are two different repositories you deal with in Maven:
-- The "local" repository is the one that is located in
${user.home}/.m2/repository by default. This is a place where artifacts needed
for the build are stored, and cannot be shared between users. When you do an
"install", the artifact is placed in this repository.
-- The "remote" repository is one located somewhere else, usually on a central
server (whether central to your company or home or the world is not important
to this discussion). This is a place where artifacts to be shared are stored;
artifacts are downloaded from this repository to your local repository when you
need them for a build. When you do a "deploy", the artifact is placed in this
repository.
Also note that it is quite reasonable to have a number of remote repositories.
Does this help clear up the confusion?
-----Original Message-----
From: Luca Gmail [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 02, 2005 11:05
To: 'Maven Users List'
Subject: RE: deploying error
But what is the meaning of deploy plugin?
If I follow the maven doc I sould use the deploy plugin if I want to deploy
my artifact to the remote repository. Why you said using the install plugin?
I don't understand. It's seems all so random!!!
tnx,
Luca
-----Original Message-----
From: Yudong Wang [mailto:[EMAIL PROTECTED]
Sent: mercoledì 2 novembre 2005 16.05
To: Maven Users List
Subject: Re: deploying error
Or even simpler:
mvn install
This will install the file in your local repo as defined in your pom.xml.
Otherwise you have to provide all these parameters as Anuerin mentioned.
Yudong
On 11/2/05, Anuerin Diaz <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> check your command again to ensure that you are using
> "install:install-file" as shown in
> http://maven.apache.org/maven2/guides/mini/guide-coping-with-sun-jars.html
> .
> i encountered that error a while ago and the cause was i did not type
> the "-file" part of the goal. :D
>
> ciao!
>
> On 11/2/05, Luca Gmail <[EMAIL PROTECTED]> wrote:
> > Im trying to deploy my artifact to my internal repositpry. When I
> exceuted
> > mvn deploy I ahd this error:
> >
> > [INFO] The packaging for this project did not assign a file to the build
> > artifact.
> >
> <snip>
>
> --
>
> "Programming, an artform that fights back"
>
> Anuerin G. Diaz
> Registered Linux User #246176
> Friendly Linux Board @ http://mandrivausers.org/index.php
> http://capsule.ramfree17.org , when you absolutely have nothing else
> better to do
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]