To specify the repository where Maven will deploy your artifact to, use
<distributionManagement> :
http://maven.apache.org/maven-model/maven.html#class_distributionManagement

Hope this helps,
--
Yann

2005/12/27, Valerio Schiavoni <[EMAIL PROTECTED]>:
>
> hello Wim,
>
> 2005/12/27, Wim Deblauwe <[EMAIL PROTECTED]>:
> >
> > 'mvn install' copies your artifact (e.g. a jar or war or ...) to your
> > local
> > repository, along with the additional files.
>
>
> this step  sounds good.
>
> 'mvn deploy' copies it to the remote repository (normally a server in your
> > company)
>
>
> this one is less clear to me: how can maven know where to copy it ?
> i mean: how do I specify to which repository maven will deploy it ?
>
> thanks for the help,
> valerio
>
> regards,
> >
> > Wim
> >
> > 2005/12/27, Valerio Schiavoni <[EMAIL PROTECTED]>:
> > >
> > > Hello Yann,
> > > ok, so I should follow that example. question: who is in charge to
> > create
> > > the directory structure into http://mycompany/maven2/ directory ?
> > > that is, say my application i want to share is called 'acme',
> > > then, i'm expecting to found a repository at this path:
> > >
> > > http://mycompany/maven2/acme/
> > >
> > > than, inside this path, a new directory called acme should be found,
> > like
> > > this:
> > > http://mycompany/maven2/acme/acme
> > >
> > > which should contains files like this:
> > > maven-metadata.xml
> > > maven-metadata.xml.md5
> > > maven-metadata.xml.sha1
> > >
> > > who is in charge to produce those files?
> > > then, for every release (i suppose) there should be a directory (named
> > by
> > > the revision number of the release) which contains a jar file, the
> > digital
> > > signatures, a pom file, and another maven-metadata.xml file.
> > > how can I automate the production of this stuff?
> > > is there any predefined goal to "publish" a release on an internal
> > > repository ?
> > >
> > > the example about "Deploying to the Internal Repository"  is sadly
> > > empty...
> > >
> > > thanks,
> > > valerio
> > >
> > >
> > > 2005/12/27, Yann Le Du <[EMAIL PROTECTED]>:
> > > >
> > > > Hi Valerio,
> > > >
> > > > Actually the Maven 2 central repository is :
> > > > http://www.ibiblio.org/maven2/
> > > > (with a '2')
> > > >
> > > > --
> > > > Yann
> > > >
> > > > 2005/12/27, Valerio Schiavoni <[EMAIL PROTECTED]>:
> > > > >
> > > > > Hello,
> > > > > i'm willing to set-up an internal repository. we're just
> > starting  up
> > > > with
> > > > > maven 2.x , and i found these infos:
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> http://maven.apache.org/guides/introduction/introduction-to-repositories.html
> > > > >
> > > > > i didn't understand if they also refer to m2. In particular, when
> it
> > > is
> > > > > suggested to follow the example on ibiblio, looking at
> > > > > http://www.ibiblio.org/maven/ this look like a maven 1.xrepository.
> > > > >
> > > > > So, which artifacts should be stored there ? How can I safely
> setup
> > > this
> > > > > repo?
> > > > >
> > > > > thanks,
> > > > > valerio
> > > > >
> > > > > --
> > > > > To Iterate is Human, to Recurse, Divine
> > > > > James O. Coplien, Bell Labs
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > To Iterate is Human, to Recurse, Divine
> > > James O. Coplien, Bell Labs
> > >
> > >
> >
> >
>
>
> --
> To Iterate is Human, to Recurse, Divine
> James O. Coplien, Bell Labs
>
>

Reply via email to