You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by srinivas ramgopal <sk...@yahoo.com> on 2007/02/02 20:56:59 UTC

Maven newbie questions

Hi all,

I am new to Maven.

1) What is the purpose of remote repository (other than ibilbilo) 

2) Whenever a file is modified in a maven project how is the SNAPSHOT jar
updated in the remote repository?

3) Are there two different ways to adding a dependency jar and a project
artifact jar to the remote repository?

4) Is maven 'deploy' goal and actualy copying of a dependency or artifact
jar to remote repository same?


Thanks in advance.


-- 
View this message in context: http://www.nabble.com/Maven-newbie-questions-tf3163222s177.html#a8774573
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: Maven newbie questions

Posted by Wayne Fay <wa...@gmail.com>.
> >4) Is maven 'deploy' goal and actualy copying of a dependency or artifact
> >jar to remote repository same?
> >
> Yes, I guess... artifact != jar. an artifact can be anything, but will
> include at least a pom. What the artifact will be depends on your
> <packaging/> setting.

Actually, simply copying the artifact to the repo is *not* the same as
using deploy. The deploy goal will update various metadata files,
create the md5 and sha1 checksum files, and can optionally create
missing pom files etc along with actually copying the artifact file.

So there is a significant difference between the copying the file and
using deploy.

Wayne

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


Re: Maven newbie questions

Posted by Christian Goetze <cg...@sensage.com>.
Ok, lemme see if I can do this one - being a newbie myself :)

srinivas ramgopal wrote:

>Hi all,
>
>I am new to Maven.
>
>1) What is the purpose of remote repository (other than ibilbilo) 
>  
>
To store stuff not in ibiblio - for example your own stuff

>2) Whenever a file is modified in a maven project how is the SNAPSHOT jar
>updated in the remote repository?
>  
>
Using mvn deploy, after inserting proper <distributionManagement/> 
section into your pom

>3) Are there two different ways to adding a dependency jar and a project
>artifact jar to the remote repository?
>  
>
Not sure I understand that one.

>4) Is maven 'deploy' goal and actualy copying of a dependency or artifact
>jar to remote repository same?
>  
>
Yes, I guess... artifact != jar. an artifact can be anything, but will 
include at least a pom. What the artifact will be depends on your 
<packaging/> setting.
--
cg

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