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 <[EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> 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: [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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]