You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Steven R Brandt <sb...@cct.lsu.edu> on 2007/07/02 18:14:53 UTC

deploy question

Hi, I'm new to Maven and have just built the "Hello, World" program and 
deployed it (mvn deploy). I also built the site (mvn site).

I tried the site-deploy option (mvn site-deploy), but got the message 
"Missing site information in the distribution management element in the 
project.." Not sure what's missing or how I find out.

I'm also wondering how I can configure other projects to use the code I 
just deployed. I'm guessing it goes into dependencies somehow, but I'm 
having trouble finding it in the docs.

Thx
Steve

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


Re: deploy question

Posted by Andrew Williams <an...@handyande.co.uk>.
Hey Steven,
Don't get confused between a local repository and an internal (or  
corporate etc) repository.
The local repository is used just for yourself and maven creates and  
manages it automatically (in ~/.m2/repository by default).
An internal repository is a place in your group where you can share  
deployed artifacts.

Andy

On 2 Jul 2007, at 23:03, Steven R Brandt wrote:

> I found an answer to one of my questions. How to setup the local  
> repo is here: http://www.sonatype.com/book/ 
> repository.html#creating_an_in-house_repository
>
> Steven R Brandt wrote:
>> Thanks. I can do a site-deploy now!
>>
>> What I am trying to figure out is how the repository system works  
>> and I could not quite figure it out from the intro link below --  
>> how does the dependency mechanism do what it does? Apparently the  
>> depencies are resolved by talking to the registrar. I have 4  
>> questions:
>>
>> 1) Does the registrar contain the entire object code, the source  
>> code, or just meta data?
>> 2) Does the registrar forward the request to the hosting site for  
>> download or does it deliver it itself?
>> 3) How do you set up a local repository?
>> 4) Is Maven just for Java?
>>
>> Thanks,
>> Steve
>>
>> Yann Le Du wrote:
>>> Hi Steven,
>>>
>>> About site :
>>> http://maven.apache.org/plugins/maven-site-plugin/usage.html
>>>
>>> About dependencies :
>>> http://maven.apache.org/guides/introduction/introduction-to- 
>>> dependency-mechanism.html
>>>
>>> - Yann
>>>
>>>
>>> On 7/2/07, Steven R Brandt < sbrandt@cct.lsu.edu> wrote:
>>>>
>>>> Hi, I'm new to Maven and have just built the "Hello, World"  
>>>> program and
>>>> deployed it (mvn deploy). I also built the site (mvn site).
>>>>
>>>> I tried the site-deploy option (mvn site-deploy), but got the  
>>>> message
>>>> "Missing site information in the distribution management element  
>>>> in the
>>>> project.." Not sure what's missing or how I find out.
>>>>
>>>> I'm also wondering how I can configure other projects to use the  
>>>> code I
>>>> just deployed. I'm guessing it goes into dependencies somehow,  
>>>> but I'm
>>>> having trouble finding it in the docs.
>>>>
>>>> Thx
>>>> Steve
>>>>
>>>> ------------------------------------------------------------------- 
>>>> --
>>>> 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: deploy question

Posted by Yann Le Du <le...@gmail.com>.
You are talking about the central repository :
http://repo1.maven.org/maven2/

On 7/3/07, Steven R Brandt <sb...@cct.lsu.edu> wrote:
>
> Maybe registrar is the wrong term. I'm referring to this comment from
> this link
> (http://maven.apache.org/guides/mini/guide-central-repository-upload.html
> ):
> *
> groupId*: it will identify your project uniquely across all projects, so
> we need to enforce a naming schema. ... There are a lot of poorly
> defined package names so you *must provide proof that you control the
> domain* that matches the groupId. ...
>
> This implies that there is a central database somewhere that all
> packages are listed in. Not sure whether this database is just meta
> data, or meta data + artifacts.
>
> Or am I misunderstanding something?
>
> Yann Le Du wrote:
> > I'm not sure to understand what you mean about registrar.
> >
> > Typically, a repository contains, for each artifact, a JAR -
> > containing the
> > classes - and a POM - containing "metadata". But you'll notice that with
> > "mvn deploy", you also deployed two extra JARs, containing Javadoc and
> > sources.
> >
> > If you specify, in your POM, a dependency to artifact A, then A's POM
> and
> > JAR will be downloaded from the remote repository to your local
> > repository,
> > then used in Maven builds.
> >
> > You'll find a longer explanation about repositories here :
> >
> http://maven.apache.org/guides/introduction/introduction-to-repositories.html
> >
> >
> > And, yes, for now, Maven is mostly for Java, but you can compile C and
> > C++
> > with the native-plugin :
> > http://mojo.codehaus.org/maven-native/native-maven-plugin/
> >
> > Hope it helps,
> > - Yann
> >
> >
> > On 7/3/07, Steven R Brandt <sb...@cct.lsu.edu> wrote:
> >>
> >> I found an answer to one of my questions. How to setup the local repo
> is
> >> here:
> >>
> >>
> http://www.sonatype.com/book/repository.html#creating_an_in-house_repository
> >>
> >>
> >> Steven R Brandt wrote:
> >> > Thanks. I can do a site-deploy now!
> >> >
> >> > What I am trying to figure out is how the repository system works and
> >> > I could not quite figure it out from the intro link below -- how does
> >> > the dependency mechanism do what it does? Apparently the depencies
> are
> >> > resolved by talking to the registrar. I have 4 questions:
> >> >
> >> > 1) Does the registrar contain the entire object code, the source
> code,
> >> > or just meta data?
> >> > 2) Does the registrar forward the request to the hosting site for
> >> > download or does it deliver it itself?
> >> > 3) How do you set up a local repository?
> >> > 4) Is Maven just for Java?
> >> >
> >> > Thanks,
> >> > Steve
> >> >
> >> > Yann Le Du wrote:
> >> >> Hi Steven,
> >> >>
> >> >> About site :
> >> >> http://maven.apache.org/plugins/maven-site-plugin/usage.html
> >> >>
> >> >> About dependencies :
> >> >>
> >>
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
> >>
> >> >>
> >> >>
> >> >> - Yann
> >> >>
> >> >>
> >> >> On 7/2/07, Steven R Brandt < sbrandt@cct.lsu.edu> wrote:
> >> >>>
> >> >>> Hi, I'm new to Maven and have just built the "Hello, World" program
> >> and
> >> >>> deployed it (mvn deploy). I also built the site (mvn site).
> >> >>>
> >> >>> I tried the site-deploy option (mvn site-deploy), but got the
> >> message
> >> >>> "Missing site information in the distribution management element in
> >> the
> >> >>> project.." Not sure what's missing or how I find out.
> >> >>>
> >> >>> I'm also wondering how I can configure other projects to use the
> >> code
> >> I
> >> >>> just deployed. I'm guessing it goes into dependencies somehow,
> >> but I'm
> >> >>> having trouble finding it in the docs.
> >> >>>
> >> >>> Thx
> >> >>> Steve
> >> >>>
> >> >>>
> >> ---------------------------------------------------------------------
> >> >>> 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: deploy question

Posted by Steven R Brandt <sb...@cct.lsu.edu>.
Maybe registrar is the wrong term. I'm referring to this comment from 
this link 
(http://maven.apache.org/guides/mini/guide-central-repository-upload.html):
*
groupId*: it will identify your project uniquely across all projects, so 
we need to enforce a naming schema. ... There are a lot of poorly 
defined package names so you *must provide proof that you control the 
domain* that matches the groupId. ...

This implies that there is a central database somewhere that all 
packages are listed in. Not sure whether this database is just meta 
data, or meta data + artifacts.

Or am I misunderstanding something?

Yann Le Du wrote:
> I'm not sure to understand what you mean about registrar.
>
> Typically, a repository contains, for each artifact, a JAR - 
> containing the
> classes - and a POM - containing "metadata". But you'll notice that with
> "mvn deploy", you also deployed two extra JARs, containing Javadoc and
> sources.
>
> If you specify, in your POM, a dependency to artifact A, then A's POM and
> JAR will be downloaded from the remote repository to your local 
> repository,
> then used in Maven builds.
>
> You'll find a longer explanation about repositories here :
> http://maven.apache.org/guides/introduction/introduction-to-repositories.html 
>
>
> And, yes, for now, Maven is mostly for Java, but you can compile C and 
> C++
> with the native-plugin :
> http://mojo.codehaus.org/maven-native/native-maven-plugin/
>
> Hope it helps,
> - Yann
>
>
> On 7/3/07, Steven R Brandt <sb...@cct.lsu.edu> wrote:
>>
>> I found an answer to one of my questions. How to setup the local repo is
>> here:
>>
>> http://www.sonatype.com/book/repository.html#creating_an_in-house_repository 
>>
>>
>> Steven R Brandt wrote:
>> > Thanks. I can do a site-deploy now!
>> >
>> > What I am trying to figure out is how the repository system works and
>> > I could not quite figure it out from the intro link below -- how does
>> > the dependency mechanism do what it does? Apparently the depencies are
>> > resolved by talking to the registrar. I have 4 questions:
>> >
>> > 1) Does the registrar contain the entire object code, the source code,
>> > or just meta data?
>> > 2) Does the registrar forward the request to the hosting site for
>> > download or does it deliver it itself?
>> > 3) How do you set up a local repository?
>> > 4) Is Maven just for Java?
>> >
>> > Thanks,
>> > Steve
>> >
>> > Yann Le Du wrote:
>> >> Hi Steven,
>> >>
>> >> About site :
>> >> http://maven.apache.org/plugins/maven-site-plugin/usage.html
>> >>
>> >> About dependencies :
>> >>
>> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html 
>>
>> >>
>> >>
>> >> - Yann
>> >>
>> >>
>> >> On 7/2/07, Steven R Brandt < sbrandt@cct.lsu.edu> wrote:
>> >>>
>> >>> Hi, I'm new to Maven and have just built the "Hello, World" program
>> and
>> >>> deployed it (mvn deploy). I also built the site (mvn site).
>> >>>
>> >>> I tried the site-deploy option (mvn site-deploy), but got the 
>> message
>> >>> "Missing site information in the distribution management element in
>> the
>> >>> project.." Not sure what's missing or how I find out.
>> >>>
>> >>> I'm also wondering how I can configure other projects to use the 
>> code
>> I
>> >>> just deployed. I'm guessing it goes into dependencies somehow, 
>> but I'm
>> >>> having trouble finding it in the docs.
>> >>>
>> >>> Thx
>> >>> Steve
>> >>>
>> >>> 
>> ---------------------------------------------------------------------
>> >>> 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: deploy question

Posted by Yann Le Du <le...@gmail.com>.
I'm not sure to understand what you mean about registrar.

Typically, a repository contains, for each artifact, a JAR - containing the
classes - and a POM - containing "metadata". But you'll notice that with
"mvn deploy", you also deployed two extra JARs, containing Javadoc and
sources.

If you specify, in your POM, a dependency to artifact A, then A's POM and
JAR will be downloaded from the remote repository to your local repository,
then used in Maven builds.

You'll find a longer explanation about repositories here :
http://maven.apache.org/guides/introduction/introduction-to-repositories.html

And, yes, for now, Maven is mostly for Java, but you can compile C and C++
with the native-plugin :
http://mojo.codehaus.org/maven-native/native-maven-plugin/

Hope it helps,
- Yann


On 7/3/07, Steven R Brandt <sb...@cct.lsu.edu> wrote:
>
> I found an answer to one of my questions. How to setup the local repo is
> here:
>
> http://www.sonatype.com/book/repository.html#creating_an_in-house_repository
>
> Steven R Brandt wrote:
> > Thanks. I can do a site-deploy now!
> >
> > What I am trying to figure out is how the repository system works and
> > I could not quite figure it out from the intro link below -- how does
> > the dependency mechanism do what it does? Apparently the depencies are
> > resolved by talking to the registrar. I have 4 questions:
> >
> > 1) Does the registrar contain the entire object code, the source code,
> > or just meta data?
> > 2) Does the registrar forward the request to the hosting site for
> > download or does it deliver it itself?
> > 3) How do you set up a local repository?
> > 4) Is Maven just for Java?
> >
> > Thanks,
> > Steve
> >
> > Yann Le Du wrote:
> >> Hi Steven,
> >>
> >> About site :
> >> http://maven.apache.org/plugins/maven-site-plugin/usage.html
> >>
> >> About dependencies :
> >>
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
> >>
> >>
> >> - Yann
> >>
> >>
> >> On 7/2/07, Steven R Brandt < sbrandt@cct.lsu.edu> wrote:
> >>>
> >>> Hi, I'm new to Maven and have just built the "Hello, World" program
> and
> >>> deployed it (mvn deploy). I also built the site (mvn site).
> >>>
> >>> I tried the site-deploy option (mvn site-deploy), but got the message
> >>> "Missing site information in the distribution management element in
> the
> >>> project.." Not sure what's missing or how I find out.
> >>>
> >>> I'm also wondering how I can configure other projects to use the code
> I
> >>> just deployed. I'm guessing it goes into dependencies somehow, but I'm
> >>> having trouble finding it in the docs.
> >>>
> >>> Thx
> >>> Steve
> >>>
> >>> ---------------------------------------------------------------------
> >>> 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: deploy question

Posted by Steven R Brandt <sb...@cct.lsu.edu>.
I found an answer to one of my questions. How to setup the local repo is 
here: 
http://www.sonatype.com/book/repository.html#creating_an_in-house_repository

Steven R Brandt wrote:
> Thanks. I can do a site-deploy now!
>
> What I am trying to figure out is how the repository system works and 
> I could not quite figure it out from the intro link below -- how does 
> the dependency mechanism do what it does? Apparently the depencies are 
> resolved by talking to the registrar. I have 4 questions:
>
> 1) Does the registrar contain the entire object code, the source code, 
> or just meta data?
> 2) Does the registrar forward the request to the hosting site for 
> download or does it deliver it itself?
> 3) How do you set up a local repository?
> 4) Is Maven just for Java?
>
> Thanks,
> Steve
>
> Yann Le Du wrote:
>> Hi Steven,
>>
>> About site :
>> http://maven.apache.org/plugins/maven-site-plugin/usage.html
>>
>> About dependencies :
>> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html 
>>
>>
>> - Yann
>>
>>
>> On 7/2/07, Steven R Brandt < sbrandt@cct.lsu.edu> wrote:
>>>
>>> Hi, I'm new to Maven and have just built the "Hello, World" program and
>>> deployed it (mvn deploy). I also built the site (mvn site).
>>>
>>> I tried the site-deploy option (mvn site-deploy), but got the message
>>> "Missing site information in the distribution management element in the
>>> project.." Not sure what's missing or how I find out.
>>>
>>> I'm also wondering how I can configure other projects to use the code I
>>> just deployed. I'm guessing it goes into dependencies somehow, but I'm
>>> having trouble finding it in the docs.
>>>
>>> Thx
>>> Steve
>>>
>>> ---------------------------------------------------------------------
>>> 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: deploy question

Posted by Steven R Brandt <sb...@cct.lsu.edu>.
Thanks. I can do a site-deploy now!

What I am trying to figure out is how the repository system works and I 
could not quite figure it out from the intro link below -- how does the 
dependency mechanism do what it does? Apparently the depencies are 
resolved by talking to the registrar. I have 4 questions:

1) Does the registrar contain the entire object code, the source code, 
or just meta data?
2) Does the registrar forward the request to the hosting site for 
download or does it deliver it itself?
3) How do you set up a local repository?
4) Is Maven just for Java?

Thanks,
Steve

Yann Le Du wrote:
> Hi Steven,
>
> About site :
> http://maven.apache.org/plugins/maven-site-plugin/usage.html
>
> About dependencies :
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html 
>
>
> - Yann
>
>
> On 7/2/07, Steven R Brandt < sbrandt@cct.lsu.edu> wrote:
>>
>> Hi, I'm new to Maven and have just built the "Hello, World" program and
>> deployed it (mvn deploy). I also built the site (mvn site).
>>
>> I tried the site-deploy option (mvn site-deploy), but got the message
>> "Missing site information in the distribution management element in the
>> project.." Not sure what's missing or how I find out.
>>
>> I'm also wondering how I can configure other projects to use the code I
>> just deployed. I'm guessing it goes into dependencies somehow, but I'm
>> having trouble finding it in the docs.
>>
>> Thx
>> Steve
>>
>> ---------------------------------------------------------------------
>> 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: deploy question

Posted by Yann Le Du <le...@gmail.com>.
Hi Steven,

About site :
http://maven.apache.org/plugins/maven-site-plugin/usage.html

About dependencies :
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

- Yann


On 7/2/07, Steven R Brandt < sbrandt@cct.lsu.edu> wrote:
>
> Hi, I'm new to Maven and have just built the "Hello, World" program and
> deployed it (mvn deploy). I also built the site (mvn site).
>
> I tried the site-deploy option (mvn site-deploy), but got the message
> "Missing site information in the distribution management element in the
> project.." Not sure what's missing or how I find out.
>
> I'm also wondering how I can configure other projects to use the code I
> just deployed. I'm guessing it goes into dependencies somehow, but I'm
> having trouble finding it in the docs.
>
> Thx
> Steve
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>