You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Jason van Zyl <ja...@maven.org> on 2003/03/03 08:07:07 UTC
Update
Hi,
I'm at the point now where I'm debugging the isolated classloaders per
plugin. I have completely faked out the AntClassLoader with a
replacement that simply delegates to ClassWorlds. Many goals can run and
each plugin has a classloader so I'm just sorting out attaching the
right classloader to the right context. Made lots of progress this
weekend but it will take me a couple more days to finish the ClassWorlds
conversion.
jvz.
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
> > >
> > > The group id is used widely and is the preferred approach in fact.
> >
> > Then I must have missed something. I presumed that the groupId, in
> > general, would be more closely related to the domain name like java
> > packages.
>
> There's no hard and fast rule. Domain names would definitely provide a
> level of uniqueness. It's arbitrary and undefined insofar as what's
> best. Alexei suggested FQDNs and that's probably the wisest so you
could
> have things like:
>
> org.apache
> org.apache.ant
> org.apache.avalon
> org.apache.avalon.excalibur
> org.apache.avalon.excalibur.fortress
>
> You get the idea. But that sort of nesting isn't supported yet but
it's
> on my internal list as necessary for real-life usage.
+1 - Exactly what I'm getting at.
> > I.E. Jakarta Commons would *all* be apart of the groupId
> > org.apache.commons. A superior solution would be a Unique ID
created
> > using project name and domain name ->
> > commons-collections@mavenrepo.apache.org
>
> Right. Any sort of arbitrary nesting will be supported.
Great.
> > This is related to the DNS SRV, and the more I think about it, I am
> > proposing a messaging based repository.
> >
> > Unique IDs can be <groupID>.<projectID>@<repository domain>
> >
> > Implementation of the DNS SRV, provides infrastructure for a
distributed
> > repository with dynamic lookups. Default servers like the one
hosted at
> > Ibiblio are still very useful and provide a fallback (or default
host,
> > where the dynamic search is the fallback).
> >
> > More information on the DNS SRV protocol can be found here
> > http://www.ietf.org/rfc/rfc2782.txt
>
> Cool, I'll take a look.
>
> > This setup can provide immediate availability of dependencies. For
> > example, say I create a reusable component 'coolWidget'. Currently
I
> > would need to request that the coolWidget be added to the central
> > repository.
>
> Well, for long. It will get better quickly. Very quickly.
>
> > However, if I had a maven repository service set up on my
> > own domain 'org.mikestanley', a Maven project can now add the
dependency
> > -> org.mikestanley.coolWidget@ mikestanley.org
> >
> > My coolWidget is immediately available to Maven projects. In
addition,
> > once the best fit repository is located, communication can be set up
> > between client and host to negotiate available versions,
permissions,
> > etc.
>
> Cool, I'm not familiar with DNS SRV but sounds like something worth
> investigating. We would need a java implementation :-) Is there one?
Not sure. I'll look into it.
Thanks for hearing me out :-)
- Mike
> > The DNS SRV provides dynamic resolution to the service
> > _maven_tcp.mikestanley.org. This can be a single server, cluster,
> > whatever. This allows repository administrators to "use several
servers
> > for a single domain, to move services from host to host with little
> > fuss, and to designate some hosts as primary servers for a service
and
> > others as backups."
> >
> > > > I think this is also crucial and should be
> > > > enforced. As the repository grows, namespaces become extremely
> > > > important. Unique Project ID's just isn't good enough. Also,
even
> > now
> > > > the repository is very large. Breaking things into sub
directories
> > > > would clean it up a bit and allow for better scalability.
> > >
> > > Arbitrarily nested groups are coming as a means to allow projects
to
> > > organize as they please. This will take a bit of work.
> >
> > Can you elaborate? I assume you mean the subdirectories of a group
will
> > be able to have additional groups other than jar & distributions.
This
> > doesn't help the conflicts at the top level. Are 100% confident
that
> > Jakarta is the only developer community to have a project named
> > "commons-email"? And are you confident that as Maven becomes widely
> > adopted there will be no conflicts? Most of the projects I've built
> > with Maven don't even mention groupID in their dependency list.
> >
> > >
> > > > In the future - how about a repository search algorithm based on
the
> > > > convention that group id can equal the domain name. It would
then
> > be
> > > > possible to implement a repository service lookup utilizing the
DNS
> > > > service protocol. Similar to how Jabber handles s2s
communication.
> > > >
> > > > Thoughts?
> > >
> > > I'm not really sure what that buys us. Can you explain in more
detail?
> >
> > See above.
> >
> > - Mike
> > >
> > >
> > > > - Mike
> > > >
> > > > > -----Original Message-----
> > > > > From: Jason van Zyl [mailto:jason@maven.org]
> > > > > Sent: Monday, March 03, 2003 2:07 AM
> > > > > To: Turbine Maven Developers List
> > > > > Subject: Update
> > > > >
> > > > > Hi,
> > > > >
> > > > > I'm at the point now where I'm debugging the isolated
classloaders
> > per
> > > > > plugin. I have completely faked out the AntClassLoader with a
> > > > > replacement that simply delegates to ClassWorlds. Many goals
can
> > run
> > > > and
> > > > > each plugin has a classloader so I'm just sorting out
attaching
> > the
> > > > > right classloader to the right context. Made lots of progress
this
> > > > > weekend but it will take me a couple more days to finish the
> > > > ClassWorlds
> > > > > conversion.
> > > > >
> > > > > jvz.
> > > > >
> > > > >
> > > > >
> >
---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > turbine-maven-dev-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail:
> > > > turbine-maven-dev-help@jakarta.apache.org
> > > >
> > > >
> > > >
> >
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > turbine-maven-dev-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: turbine-maven-dev-
> > > help@jakarta.apache.org
> > > --
> > > jvz.
> > >
> > > Jason van Zyl
> > > jason@zenplex.com
> > > http://tambora.zenplex.org
> > >
> > > In short, man creates for himself a new religion of a rational
> > > and technical order to justify his work and to be justified in it.
> > >
> > > -- Jacques Ellul, The Technological Society
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > turbine-maven-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > turbine-maven-dev-help@jakarta.apache.org
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-maven-dev-
> help@jakarta.apache.org
> --
> jvz.
>
> Jason van Zyl
> jason@zenplex.com
> http://tambora.zenplex.org
>
> In short, man creates for himself a new religion of a rational
> and technical order to justify his work and to be justified in it.
>
> -- Jacques Ellul, The Technological Society
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
RE: Update
Posted by Jason van Zyl <ja...@zenplex.com>.
On Mon, 2003-03-03 at 10:38, Stanley,Michael P. wrote:
> >
> > The group id is used widely and is the preferred approach in fact.
>
> Then I must have missed something. I presumed that the groupId, in
> general, would be more closely related to the domain name like java
> packages.
There's no hard and fast rule. Domain names would definitely provide a
level of uniqueness. It's arbitrary and undefined insofar as what's
best. Alexei suggested FQDNs and that's probably the wisest so you could
have things like:
org.apache
org.apache.ant
org.apache.avalon
org.apache.avalon.excalibur
org.apache.avalon.excalibur.fortress
You get the idea. But that sort of nesting isn't supported yet but it's
on my internal list as necessary for real-life usage.
> I.E. Jakarta Commons would *all* be apart of the groupId
> org.apache.commons. A superior solution would be a Unique ID created
> using project name and domain name ->
> commons-collections@mavenrepo.apache.org
Right. Any sort of arbitrary nesting will be supported.
> This is related to the DNS SRV, and the more I think about it, I am
> proposing a messaging based repository.
>
> Unique IDs can be <groupID>.<projectID>@<repository domain>
>
> Implementation of the DNS SRV, provides infrastructure for a distributed
> repository with dynamic lookups. Default servers like the one hosted at
> Ibiblio are still very useful and provide a fallback (or default host,
> where the dynamic search is the fallback).
>
> More information on the DNS SRV protocol can be found here
> http://www.ietf.org/rfc/rfc2782.txt
Cool, I'll take a look.
> This setup can provide immediate availability of dependencies. For
> example, say I create a reusable component 'coolWidget'. Currently I
> would need to request that the coolWidget be added to the central
> repository.
Well, for long. It will get better quickly. Very quickly.
> However, if I had a maven repository service set up on my
> own domain 'org.mikestanley', a Maven project can now add the dependency
> -> org.mikestanley.coolWidget@ mikestanley.org
>
> My coolWidget is immediately available to Maven projects. In addition,
> once the best fit repository is located, communication can be set up
> between client and host to negotiate available versions, permissions,
> etc.
Cool, I'm not familiar with DNS SRV but sounds like something worth
investigating. We would need a java implementation :-) Is there one?
> The DNS SRV provides dynamic resolution to the service
> _maven_tcp.mikestanley.org. This can be a single server, cluster,
> whatever. This allows repository administrators to "use several servers
> for a single domain, to move services from host to host with little
> fuss, and to designate some hosts as primary servers for a service and
> others as backups."
>
> > > I think this is also crucial and should be
> > > enforced. As the repository grows, namespaces become extremely
> > > important. Unique Project ID's just isn't good enough. Also, even
> now
> > > the repository is very large. Breaking things into sub directories
> > > would clean it up a bit and allow for better scalability.
> >
> > Arbitrarily nested groups are coming as a means to allow projects to
> > organize as they please. This will take a bit of work.
>
> Can you elaborate? I assume you mean the subdirectories of a group will
> be able to have additional groups other than jar & distributions. This
> doesn't help the conflicts at the top level. Are 100% confident that
> Jakarta is the only developer community to have a project named
> "commons-email"? And are you confident that as Maven becomes widely
> adopted there will be no conflicts? Most of the projects I've built
> with Maven don't even mention groupID in their dependency list.
>
> >
> > > In the future - how about a repository search algorithm based on the
> > > convention that group id can equal the domain name. It would then
> be
> > > possible to implement a repository service lookup utilizing the DNS
> > > service protocol. Similar to how Jabber handles s2s communication.
> > >
> > > Thoughts?
> >
> > I'm not really sure what that buys us. Can you explain in more detail?
>
> See above.
>
> - Mike
> >
> >
> > > - Mike
> > >
> > > > -----Original Message-----
> > > > From: Jason van Zyl [mailto:jason@maven.org]
> > > > Sent: Monday, March 03, 2003 2:07 AM
> > > > To: Turbine Maven Developers List
> > > > Subject: Update
> > > >
> > > > Hi,
> > > >
> > > > I'm at the point now where I'm debugging the isolated classloaders
> per
> > > > plugin. I have completely faked out the AntClassLoader with a
> > > > replacement that simply delegates to ClassWorlds. Many goals can
> run
> > > and
> > > > each plugin has a classloader so I'm just sorting out attaching
> the
> > > > right classloader to the right context. Made lots of progress this
> > > > weekend but it will take me a couple more days to finish the
> > > ClassWorlds
> > > > conversion.
> > > >
> > > > jvz.
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > turbine-maven-dev-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > turbine-maven-dev-help@jakarta.apache.org
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> turbine-maven-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: turbine-maven-dev-
> > help@jakarta.apache.org
> > --
> > jvz.
> >
> > Jason van Zyl
> > jason@zenplex.com
> > http://tambora.zenplex.org
> >
> > In short, man creates for himself a new religion of a rational
> > and technical order to justify his work and to be justified in it.
> >
> > -- Jacques Ellul, The Technological Society
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> turbine-maven-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> turbine-maven-dev-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-maven-dev-help@jakarta.apache.org
--
jvz.
Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
Re: Update
Posted by di...@multitask.com.au.
Hey Brian,
Brian Ewins <Br...@i-documentsystems.com> wrote on 05/03/2003
02:52:37 AM:
> Henning P. Schmiedehausen wrote:
>
> >[...]
> >
> >I do this innocent "maven" about 10-40 times a day when I do deeper
> >development in a jakarta project. Every run (which also has an annoying
> >pause of 10 seconds at the beginning) accesses ibiblio.
> >
> You are using maven's HEAD (itself a snapshot build), which is using
> snapshots for everything. Did you try that with the release build of b8?
> Look ma, no snapshots.
FWIW, CVS head doesn't have any more snapshots :)
C:\source\jakarta\jakarta-turbine-maven>grep SNAPSHOT project.xml
C:\source\jakarta\jakarta-turbine-maven>
--
dIon Gillard, Multitask Consulting
Blog: http://www.freeroller.net/page/dion/Weblog
Work: http://www.multitask.com.au
Re: Update
Posted by bob mcwhirter <bo...@werken.com>.
> In my own projects, I'd move a dependency to a snapshot only if I was
> trying to track the bleeding edge of that dependency. The current
> situation is that maven is trying to track bleeding edges of many
> projects so that their plugins are up to date, so its an understandable
> convenience.
It's ultra-super convenient when working on several projects
simultaneously that are interrelated. ie, I'm debugging
interactions between jelly, werkz and maven, it's nice to be
able to fix bugs in all of them, deploying snapshots, and
not having to edit project.xml all the time.
It's also sorta an auto-gump feature. Someone updates a snapshot,
your build breaks. But, you agreed to the breakage by using
the SNAPSHOT instead of a timestamp, so it forces you to keep
up to date. And everyone thinks gump is the best thing since
sliced cheese.
> >This is not about releases. It is about development. If I remove snapshot
> >dependencies from a POM, the next developer adds it again. I remove it,
> >he adds it again. Great solution!
> >
> Yes, it is. If you explicitly change your dependency from the bleeding
> edge to a specific version, you get what you asked for. If the next
> developer explicitly changes the dependency from a specific version to
> the bleeding edge to a specific version, he gets what he asked for.
> Maven does exactly what you ask for in your project.xml - amazing,
> isn't it.
Sounds like his 'community' needs more communication to avoid this
type of confusing. A thousand monkeys, eh?
> Declaring a dependency on a snapshot is /explicitly/ declaring that you
> want to track the bleeding edge. If you don't want it, /don't do it/.
Ayup, it's sorta a contract you make with maven, giving it permission
to possibly break your build, but agreeing that you know what you're
doing.
-bob
Re: Update
Posted by Brian Ewins <Br...@i-documentsystems.com>.
Henning P. Schmiedehausen wrote:
>[...]
>
>I do this innocent "maven" about 10-40 times a day when I do deeper
>development in a jakarta project. Every run (which also has an annoying
>pause of 10 seconds at the beginning) accesses ibiblio.
>
You are using maven's HEAD (itself a snapshot build), which is using
snapshots for everything. Did you try that with the release build of b8?
Look ma, no snapshots.
The annoying pause goes away if you use maven console. Its also a known
performance issue which you could rightly expect to be fixed in 1.0 but
not in an unreleased beta version.
>Now imagine a project with just 1% of the popularity of, say, Linux
>kernel and thousands of developers working (or simply compiling) the
>CVS HEAD of said project.
>
In my own projects, I'd move a dependency to a snapshot only if I was
trying to track the bleeding edge of that dependency. The current
situation is that maven is trying to track bleeding edges of many
projects so that their plugins are up to date, so its an understandable
convenience.
I'm not sure you're making the distinction between a project which is
building a snapshot version of itself, and a project which has snapshot
dependencies; the way things work in the b9 HEAD might be the source of
your confusion. The massive use of snapshots in the maven build is one
way to work, but its not the only way.
>>Then remove snapshot dependencies. They are merely a convenience but
>>your project can decide as a policy not to use them. That is up to your
>>project. You are not _forced_ to use them.
>>
>>
>
>This is not about releases. It is about development. If I remove snapshot
>dependencies from a POM, the next developer adds it again. I remove it,
>he adds it again. Great solution!
>
Yes, it is. If you explicitly change your dependency from the bleeding
edge to a specific version, you get what you asked for. If the next
developer explicitly changes the dependency from a specific version to
the bleeding edge to a specific version, he gets what he asked for.
Maven does exactly what you ask for in your project.xml - amazing,
isn't it.
>And you still didn't really answer to the "tale of two builds" thread
>where I told you about a real life case of a snapshot jar changing on
>the repo and breaking a normal development build. This is the main
>problem.
>
Declaring a dependency on a snapshot is /explicitly/ declaring that you
want to track the bleeding edge. If you don't want it, /don't do it/.
>>>- Make builds completely offline by default. If a jar is missing, die.
>>>
>>>
>>I don't see any upside to this except inconvenience. And again you can
>>decide this as a policy for your projects. I am working with Vassily to
>>
>>
>
>Think 56k modem lines.
>
Think maven -o. I have no problem building my projects, with snapshot
dependencies, at home on my 56k modem, even with b9's HEAD. I don't
bother getting the snapshots while I'm out of the office.
- Baz
Privacy and Confidentiality Notice
------------------------------------------------
The information contained in this E-Mail message is intended only for the person or persons to whom it is addressed. Such information is confidential and privileged and no mistake in transmission is intended to waive or compromise such privilege. If you have received it in error, please destroy it and notify us on the telephone number printed above. If you do not receive complete and legible copies, please telephone us immediately. Any opinions expressed herein including attachments are those of the author only. i-documentsystems Ltd. does not accept responsibility for the accuracy or completeness of the information provided or for any changes to this Email, however made, after it was sent. (Please note that it is your responsibility to scan this message for viruses).
Re: Update
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Jason van Zyl <ja...@zenplex.com> writes:
>> What I'd like to see
>>
>> - getting rid of the "SNAPSHOT" concept. This is fundamentally flawed.
>> Lets check at every build process whether "there is a newer jar in the
>> repository" is bad.
>It's not flawed, you don't understand it.
I understand it very well.
henning@forge 16:04 ~/jakarta/jakarta-turbine-2 > maven
__ __
| \/ |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-beta-9-SNAPSHOT
Attempting to download avalon-framework-SNAPSHOT.jar.
Attempting to download commons-collections-SNAPSHOT.jar.
Attempting to download commons-configuration-SNAPSHOT.jar.
Attempting to download excalibur-component-SNAPSHOT.jar.
Attempting to download excalibur-instrument-SNAPSHOT.jar.
Attempting to download excalibur-logger-SNAPSHOT.jar.
Attempting to download excalibur-pool-SNAPSHOT.jar.
[...]
I do this innocent "maven" about 10-40 times a day when I do deeper
development in a jakarta project. Every run (which also has an annoying
pause of 10 seconds at the beginning) accesses ibiblio.
Now imagine a project with just 1% of the popularity of, say, Linux
kernel and thousands of developers working (or simply compiling) the
CVS HEAD of said project.
>Then remove snapshot dependencies. They are merely a convenience but
>your project can decide as a policy not to use them. That is up to your
>project. You are not _forced_ to use them.
This is not about releases. It is about development. If I remove snapshot
dependencies from a POM, the next developer adds it again. I remove it,
he adds it again. Great solution!
And you still didn't really answer to the "tale of two builds" thread
where I told you about a real life case of a snapshot jar changing on
the repo and breaking a normal development build. This is the main
problem.
>> - Make builds completely offline by default. If a jar is missing, die.
>I don't see any upside to this except inconvenience. And again you can
>decide this as a policy for your projects. I am working with Vassily to
Think 56k modem lines.
>The -dev moniker I've told people not to use forever. This is generally
>a turbine problem.
>ignore you. It basically boils down to you being 1) abrasive, 2)
>obnoxious and 3) highly misinformed.
Can I use this as my signature?
I will stop writing on the maven lists for, let's say, three
months. After that we will see in which direction maven moved. I'm
pretty sure that after long fussing and doing, you will arrive where
I'm already are.
Regards
Henning
[Off till June]
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
Re: Update
Posted by James Taylor <ja...@jamestaylor.org>.
> Or why the plugin language changed at least once (or twice? DVSL ->
> Jelly I do remember. Wasn't there some ant involved, too? :-) )
I KNOW! What is up with them changing how an unreleased product works
after finding that the original implementation did not have sufficient
flexibility to meet the original goals of the project. Those Maven guys
must be on crack.
Somebody want to form a committee to address ways to slow down the
evolution of this project?
-- jt
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
> Maven has users. Maven has users who have willfully chosen to use it.
Damn straight.
Re: Update
Posted by bob mcwhirter <bo...@werken.com>.
> Or why the plugin language changed at least once (or twice? DVSL ->
> Jelly I do remember. Wasn't there some ant involved, too? :-) )
See, this is the 'ill-informed' of which I speak.
Before beta-5, maven was purely a set of ant tasks and idioms.
Starting with beta-5, maven became standalone, and use Jelly
for the plugins.
The DVSL change was merely a change in the implementation of
a particular plugin. I don't see change as necessarily bad
if it help evolve the code into something better.
> While I don't like committees, I've learned that having some plan
> where one wants to end, really helps deciding where to go (The
> Odysseus approach to project management).
All plans are typically just wrong, though, when dealing with
software. How many projects have kept to the plan and still
devliered what the customer wants?
> You wrote: "Jason has won a user base". This is at least partly not
> true.
Sure, this is a shades-of-grey opinion statement. Right. <sarcasm/>
Maven has users. Maven has users who have willfully chosen to use it.
> I would still happily use ant to build Turbine if the Turbine
> build process wouldn't have been forcefully converted to some maven
> version, then the ant build being broken and then finally removed. I
> don't feel being won. I still feel being at least half-assimilated
Then join the project if you're not already a commit to Turbine, and
commit to maintaining an ant-based build. Nothing prevents you from
doing that. But, the core developers seem to have chosen maven for
their build-system. Just as core developers make lots of choices
every day. Do you feel offended that maven uses jelly, commons-collections
and other things that you are 'forced' to use, creating an artificial
user-base for those components?
> (The Microsof^wBorg approach to software development) about "having
> been converted to see the light".
Okay, I'm tired of this. Use it. Don't use it. I personally don't care.
-bob
Re: Update
Posted by di...@multitask.com.au.
"Henning P. Schmiedehausen" <hp...@intermeta.de> wrote on 05/03/2003
02:04:00 AM:
> bob mcwhirter <bo...@werken.com> writes:
>
> >would like to holler DO IT NOW!, go ahead. But, we'll just sit here
> >and keep writing code. If you want to write a proposale to form
> >a committee to vote upon the repo structure, go head. But, we'll
> >just sit here and keep writing code.
>
> Sorry Bob, but this is the thousand monkeys approach to software
> development. It explains why some parts of maven look as they do. :-)
> Ok, it is called "eXtreme programming" these days and hip people do
> cool talks about it, but I've learned that in the eighties as
> "spaghetti coding". Yes, I do it from time to time, too. :-)
>
> Or why the plugin language changed at least once (or twice? DVSL ->
> Jelly I do remember. Wasn't there some ant involved, too? :-) )
FWIW, plugins were originally written in ant, and then we moved from ant
build file snippets to jelly. Plugins were never written using DVSL.
Reports were written using Velocity and DVSL. Almost all are now
Jelly/JSL.
The reasons for the change were that the original choices simply didn't
work when pushed to their limits. It's not that Ant/DVSL was/is a bad
thing, but it's not geared for this sort of usage.
--
dIon Gillard, Multitask Consulting
Blog: http://www.freeroller.net/page/dion/Weblog
Work: http://www.multitask.com.au
Re: Update
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
bob mcwhirter <bo...@werken.com> writes:
>would like to holler DO IT NOW!, go ahead. But, we'll just sit here
>and keep writing code. If you want to write a proposale to form
>a committee to vote upon the repo structure, go head. But, we'll
>just sit here and keep writing code.
Sorry Bob, but this is the thousand monkeys approach to software
development. It explains why some parts of maven look as they do. :-)
Ok, it is called "eXtreme programming" these days and hip people do
cool talks about it, but I've learned that in the eighties as
"spaghetti coding". Yes, I do it from time to time, too. :-)
Or why the plugin language changed at least once (or twice? DVSL ->
Jelly I do remember. Wasn't there some ant involved, too? :-) )
While I don't like committees, I've learned that having some plan
where one wants to end, really helps deciding where to go (The
Odysseus approach to project management).
You wrote: "Jason has won a user base". This is at least partly not
true. I would still happily use ant to build Turbine if the Turbine
build process wouldn't have been forcefully converted to some maven
version, then the ant build being broken and then finally removed. I
don't feel being won. I still feel being at least half-assimilated
(The Microsof^wBorg approach to software development) about "having
been converted to see the light".
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
Re: Update
Posted by Jason van Zyl <ja...@zenplex.com>.
On Tue, 2003-03-04 at 11:36, Stéphane Mor wrote:
> >
> > look e.g. at the commons-collections directory. There is
> >
> > commons-collections-2.0.20020914.015953
> > commons-collections-2.0.20020914.020746
> > commons-collections-2.0.20020914.020858
> > commons-collections-2.1-dev.jar
> >
> > which one should commons-collections-SNAPSHOT map to? IMHO
> > it maps to the wrong version. 2.1-dev is newer than 2.0.<something>
> >
>
> Patches welcome.
I missed this one. Patches aren't needed. When a snapshot is deployed a
mapping created which creates a pointer:
http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-snapshot-version
So the version stated in that file is what the snapshot corresponds to
if you wish to resolve it.
I made a tool for the last maven release that uses these mappings to
interactively resolve all snapshots in a project.xml file. You can
actually do this interactively or just let maven go to town and do it
for you.
We are actually trying to build things too, we realize snapshots can be
hazardous to your health but we know that. We have tried to make
snapshots convenient to use during development and easy to resolve for
release.
--
jvz.
Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
Re: Update
Posted by Stéphane Mor <st...@yahoo.fr>.
On Tue, Mar 04, 2003 at 12:14:01PM +0000, Henning P. Schmiedehausen wrote:
> "Stanley,Michael P." <ms...@mitre.org> writes:
>
> >decisions that were made, are explainable). I *DO* care about the
> >future roadmap! I'm not throwing mud, I'm trying to help.
>
> >Maybe Jason didn't see this before, maybe he sees it better now, maybe
> >it was articulated poorly before, maybe it still needs to be explained
> >better, whatever the case lets just keep the discussion technical. If
> >someone doesn't agree, convince them. If you can't, don't whine, keep
> >trying, or fork off ;-)
>
> What I'd like to see
>
> - getting rid of the "SNAPSHOT" concept. This is fundamentally flawed.
> Lets check at every build process whether "there is a newer jar in the
> repository" is bad.
>
> - Make builds completely offline by default. If a jar is missing, die.
>
> - Have a switch doing a "closure" which does explicit download of all
> missing jars at that point. Then you have a set of jars in your local
> repository, which can be used to build. You have a reliable set of
> jars to be able to test a local change. If the build breaks, it was your
> change and not some developer uploading a newer "snapshot" version while
> you were not looking.
>
> If something needs a "newer" jar, either run this closure switch again or,
> even better, maybe have
>
> % maven --update <artifact-id>, e.g. maven --update commons-collections
>
> which then pulls the most current release from the repository.
>
> - get rid of the "symlink" concept on ibiblio. If you need a newer
> version of the jar, you're willing to wait. Let maven check all existing
> versions of an artifact and "get the newest"
>
> - add a "manifest" file to each jar directory. This is managed at upload
> time and can be downloaded by maven to get md5 sums, current versions
> available and other meta information. Get an upload application / tool.
>
> - finally do a _clear_ definition of the semantics of
>
> artifactid-a.b
> artifactid-a.b-yyyymmdd-hhmmss
> artifactid-a.b-dev
> artifactid-SNAPSHOT
>
> look e.g. at the commons-collections directory. There is
>
> commons-collections-2.0.20020914.015953
> commons-collections-2.0.20020914.020746
> commons-collections-2.0.20020914.020858
> commons-collections-2.1-dev.jar
>
> which one should commons-collections-SNAPSHOT map to? IMHO
> it maps to the wrong version. 2.1-dev is newer than 2.0.<something>
>
Patches welcome.
> After you get _these_ things nailed down, you can even start to think
> about replicating or clustering maven repositories. I'm really scared,
> thinking about a _really_ popular project which is used by thousands
> of developers starting to use maven. Think Tomcat.
>
> Jason often talks about how he does not like "half-assed"
> approaches. I let it to your imagination what my opinion about the
> current maven repository structure is... :-)
>
> Regards
> Henning
>
> Jason: BTW: Do you have any traffic numbers from the ibiblio repo?
Stéphane
Re: Update
Posted by Jason van Zyl <ja...@zenplex.com>.
On Tue, 2003-03-04 at 07:14, Henning P. Schmiedehausen wrote:
> "Stanley,Michael P." <ms...@mitre.org> writes:
>
> >decisions that were made, are explainable). I *DO* care about the
> >future roadmap! I'm not throwing mud, I'm trying to help.
>
> >Maybe Jason didn't see this before, maybe he sees it better now, maybe
> >it was articulated poorly before, maybe it still needs to be explained
> >better, whatever the case lets just keep the discussion technical. If
> >someone doesn't agree, convince them. If you can't, don't whine, keep
> >trying, or fork off ;-)
>
> What I'd like to see
>
> - getting rid of the "SNAPSHOT" concept. This is fundamentally flawed.
> Lets check at every build process whether "there is a newer jar in the
> repository" is bad.
It's not flawed, you don't understand it.
Then remove snapshot dependencies. They are merely a convenience but
your project can decide as a policy not to use them. That is up to your
project. You are not _forced_ to use them.
> - Make builds completely offline by default. If a jar is missing, die.
I don't see any upside to this except inconvenience. And again you can
decide this as a policy for your projects. I am working with Vassily to
make a group mode workable so there will be a global properties file
where you can set the offline mode. But for now you can certainly do
this in your project files.
> - Have a switch doing a "closure" which does explicit download of all
> missing jars at that point. Then you have a set of jars in your local
> repository, which can be used to build. You have a reliable set of
> jars to be able to test a local change. If the build breaks, it was your
> change and not some developer uploading a newer "snapshot" version while
> you were not looking.
Again you are not _forced_ to use snapshots.
> If something needs a "newer" jar, either run this closure switch again or,
> even better, maybe have
>
> % maven --update <artifact-id>, e.g. maven --update commons-collections
>
> which then pulls the most current release from the repository.
As a general feature to fetch things from the repository this would be
useful. But not for dependencies in general. But there's no downside to
allowing any artifact to be fetched.
> - get rid of the "symlink" concept on ibiblio. If you need a newer
> version of the jar, you're willing to wait. Let maven check all existing
> versions of an artifact and "get the newest"
Sorry, I don't understand this statement. But there is a marked
difference between most recent release and snapshot. There is the
ability to convert the snapshots to their most current timestamped
version if you wish.
> - add a "manifest" file to each jar directory. This is managed at upload
> time and can be downloaded by maven to get md5 sums, current versions
> available and other meta information. Get an upload application / tool.
Most of this is already in place but again your descriptions are vague.
> - finally do a _clear_ definition of the semantics of
>
> artifactid-a.b
> artifactid-a.b-yyyymmdd-hhmmss
> artifactid-a.b-dev
> artifactid-SNAPSHOT
>
> look e.g. at the commons-collections directory. There is
>
> commons-collections-2.0.20020914.015953
> commons-collections-2.0.20020914.020746
> commons-collections-2.0.20020914.020858
> commons-collections-2.1-dev.jar
>
> which one should commons-collections-SNAPSHOT map to? IMHO
> it maps to the wrong version. 2.1-dev is newer than 2.0.<something>
For historic purposes I haven't gone through the repository and deleted
things that don't fit but in short there exists:
artifact-<version>
artifact-SNAPSHOT
artifact-yyyymmdd.hhmmss
The first is a release; the second is a pointer to the most current
timestamped version; The third is simply a timestamped version used when
resolving snapshots or can be used by projects to avoid the snapshot
dilemma you speak of which is only the case when you use snapshots
across releases.
The -dev moniker I've told people not to use forever. This is generally
a turbine problem.
> After you get _these_ things nailed down, you can even start to think
> about replicating or clustering maven repositories. I'm really scared,
> thinking about a _really_ popular project which is used by thousands
> of developers starting to use maven. Think Tomcat.
I really don't think you get most of these concepts Henning, I really
don't.
> Jason often talks about how he does not like "half-assed"
> approaches. I let it to your imagination what my opinion about the
> current maven repository structure is... :-)
Say what you like Henning but in conjunction with the many people here
who are actually contributing useful feedback most problem will get
worked out. The majority of your problems stem from your fundamental
lack of understanding and your generally obnoxious behaviour doesn't
really lend itself to anyone wanting to clarify any issues for you.
Don't wonder why many of us don't answer your questions or generally
ignore you. It basically boils down to you being 1) abrasive, 2)
obnoxious and 3) highly misinformed.
> Regards
> Henning
>
> Jason: BTW: Do you have any traffic numbers from the ibiblio repo?
--
jvz.
Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
Re: Update
Posted by bob mcwhirter <bo...@werken.com>.
> Jason often talks about how he does not like "half-assed"
> approaches. I let it to your imagination what my opinion about the
> current maven repository structure is... :-)
Henning,
I know jason doesn't like half-assed things and doesn't intentionally
create half-assed things. I also know that maven is a project that
has evolved over time and is still evolving. It's also pre-1.0.
Instead of writing proposals and forming committees, jason wrote code
and gained a user-base for maven. Users contribute ideas, use-cases
and desires which are integrated into the project in an evolutionary
sort of way.
And yes, a lot of your ideas are good ones. And a lot of them are
ideas that we've had before but have not implemented yet. If you
would like to holler DO IT NOW!, go ahead. But, we'll just sit here
and keep writing code. If you want to write a proposale to form
a committee to vote upon the repo structure, go head. But, we'll
just sit here and keep writing code.
Eventually the project will evolve to fancy mature state. But,
right now, the few folks who actually write code have spent a
lot of time answering lots of ill-conceived and ill-informed
emails.
-bob
(back to coding)
Re: Update
Posted by Brian Ewins <Br...@i-documentsystems.com>.
Stanley,Michael P. wrote:
>Is this any different than how the lookup works today? local -> remote
>list
>
No, the lookup is unchanged. Its how you get the relative path that is
different. Right now, you take the group/version and build a relative
path, then append that to remote repo locations. What I would do (given
group/version) is build a complete URL, and work back from that to get
the relative path, just as if the URL had been specified directly. From
there processing continues as before. That's why I'm saying I can
actually write the code for this, its not a big leap from here to there.
>Ok I see what you are talking about with cache's and /different/ URL
>structures. I don't see a benefit to having different repo structures.
>I think some naming guidelines (unique namespace for a Project's
>Repository Space) is desired.
>
I think guidelines and structure are good too. I just don't expect to be
able to impose it on the world. Also I do happen to think that the
benefits of being able to grab jars from anywhere will be a real
timesaver. Even being able to just download, unpack and use - without
renaming - the stuff under the Sun binary license would be benefit
enough for some.
>You solution does address complete repository/directory flexibility, and
>addresses collisions from different repositories. Personally, I don't
>see a benefit in this flexibility. I think some restricted structure is
>important.
>
>
The solution makes how we get hold of dependencies independent of future
changes to the repository structures, and lets people use existing
repositories (the corporate fileserver example was real - we use that
for ant based projects right now)
>This definitely can coexists with the DNS portion of my proposal.
>However, the other part of my proposal is looking for a "standard" base
>structure based on groupID (namespaces based on reverse domain names).
>The base structure will point to the Project's Repository Space. In
>this there will be a default structure and naming convention as well,
>but this can be overridden with the presence of a meta file.
>
Ok. This is where I reckon the cost lies. I'll believe it when I see it ;)
>>Anyway, enough. I need to put up or shut up, I'll get some coding
>>
>>
>done.
>
>Nonsense ;-) It is definitely beneficial to talk about design in plain
>English rather than in code.
>
>- Mike
>
>
Privacy and Confidentiality Notice
------------------------------------------------
The information contained in this E-Mail message is intended only for the person or persons to whom it is addressed. Such information is confidential and privileged and no mistake in transmission is intended to waive or compromise such privilege. If you have received it in error, please destroy it and notify us on the telephone number printed above. If you do not receive complete and legible copies, please telephone us immediately. Any opinions expressed herein including attachments are those of the author only. i-documentsystems Ltd. does not accept responsibility for the accuracy or completeness of the information provided or for any changes to this Email, however made, after it was sent. (Please note that it is your responsibility to scan this message for viruses).
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
> Stanley,Michael P. wrote:
>
> >I just don't think you see it. This still forces a developer to know
> >the URL of the jar -
> >"http://www.ibiblio.org/maven/ant/jars/ant-1.4.1.jar".
> >
> >What happens if the dependency moves. Every POM that has that
hardoced
> >URL fails.
> >
> ><dependency>
> > <id>ant</id>
> > <version>1.4.1</version>
> > <groupId>org.apache</groupId>
> ></dependency>
> >
> >This tells me everything I need to get to the repository (regardless
of
> >where it is, or how the PRS is organized!)
> >
> >
> I don't think you see it either. I am perfectly aware that adding a
> layer of indirection to looking up something allows you to get
anywhere
> you like. I am not proposing removing this ability with the URL
stuff.
> I am proposing that I can just specify the URL if I know where the
heck
> something is.
Your right I didn't get it :-). I can see how this would be useful for
a single developer, but for this to work across a team - they would need
to have the same file:/// structure. (or corporate fileserver mapped to
the same point). And if you change it to use http:/// or another
protocol you fall under the same fate - to a move in the repository.
> For example on my PC right now I have javamail jars in
> "file:///lon_fp1/developers/packages/javamail-1.3/lib/imap.jar" (etc)
-
> being used by ant-based projects. In order to use this in maven right
> now, I'd have to copy it, rename it, or provide metadata for it. Why?
I
> /know/ this file isn't going to move off the corporate fileserver. Why
> can't I just write:
>
> <dependency>
> <id>imap</id>
>
> <location>file:///lon_fp1/developers/packages/javamail-
> 1.3/lib/imap.jar</location>
> </dependency>
Yeah, I understand what you are getting at now.
> Does this stop you writing metadata for other packages? No. Does it
get
> the project up and running faster? Yes.
Faster is debatable :-)
> Will this break in the future? eg, lon_fp1 gets replaced by lon_fp2.
> Actually, no, it doesn't. Not if I can provide an equivalent location
> for that URL, e.g:
> maven.repo.remote=file:///lon_fp2/developers/maven
> file:///lon_fp1/developers/maven
> (see comments below about uses of mirrors...)
>
> >The Ant project can name the resource foobar and put it in their
donkey/
> >folder. It doesn't matter. The contract is on the Dependency ID and
> >the Group ID and optionally the version and artifact.
> >
> >Give me a situation this doesn't hold true on.
> >
> >
> Of course there isn't one. Indirection is a panacea. But its a panacea
> with a cost.
What's the cost? There is a cost with everything of course, and I'm
trying to minimize cost through design and discussions. With a default
base structure, and optional meta-data for extensibility purposes, I
think this becomes is a minimal cost solution.
> >What I'm proposing can not be compared to Mirrors. Mirrors are good
at
> >distributing load, and providing faster resources based on
geographical
> >location. However, they do not provide a de-centralized service.
There
> >is big difference to the Maven build system and Linux distribution
> >sites. The Maven repository/dependency resolution system should not
> >imitate distro-sites.
> >
> Its a different aspect of mirrors that interests me. The file
structure
> of silos, repos - whatever you care to call them - within sets of
> mirrors is identical. I can try to get the same file from a selection
of
> mirrors (even incomplete mirrors) by using the same relative path.
Once
> you know the url to a file on one of a set of mirrors, its trivial to
> find out if its on any of the others.
Agreed.
I'm arguing to utilize the DNS protocol to determine this base path.
> To achieve the same effect purely with metadata you need to have an
> entire catalog for the repository in your metadata, or equivalently a
> lookup service (eg LDAP, as you say). I'm not saying you can't do this
> stuff with metadata. What I am saying is that the observation that
> repositories are currently mirrors (in the sense of sharing the same
URL
> structure) is useful as it allows us to take eg:
I'm not saying there needs to be a repository meta-data. The repository
should be structured from groupID (series of sub-directories matching
reverse domain pattern).
> maven.repo.remote=http://www.ibiblio.org/maven
> file:///lon_fp1/developers/maven
>
> and from that determine that:
> http://www.ibiblio.org/maven/ant/jars/ant-1.4.1.jar
>
> belongs in this set of mirrors (it starts with the name of one of the
> mirrors) and thus may also be available at:
> file:///lon_fp1/developers/maven/ant/jars/ant-1.4.1.jar
Is this any different than how the lookup works today? local -> remote
list
> Knowing that I can work with mirrors this way is what /lets me/
specify
> a dependency as an URL and still manage to get it from multiple repos.
> It also allows me to observe that this use of URLs would allow for
sets
> of mirrors with /different/ URL structures, the structures only being
> equivalent within each set (and this does 'decentralize' repo stuff).
>
> Splitting the local repo to have a separate per-repo cache allows me
to
> avoid name clashes on downloaded artifacts without requiring metadata
to
> exist. Once we have the metadata and some global naming strategy we
> could get the same thing, but the cache structure prevents us ever
> having name clashes, and can be put in place right now. (after
patching
> the 15 plugins that 'know' the structure of maven.repo.local)
Ok I see what you are talking about with cache's and /different/ URL
structures. I don't see a benefit to having different repo structures.
I think some naming guidelines (unique namespace for a Project's
Repository Space) is desired.
You solution does address complete repository/directory flexibility, and
addresses collisions from different repositories. Personally, I don't
see a benefit in this flexibility. I think some restricted structure is
important.
>
> I think the two proposals can coexist. I think the role of metadata,
> among other things, will be to resolve ids, versions to 'real' urls;
at
> that point maven will attempt to download the URL from /equivalent
> mirrors/ for that URL, in the users order of preference; for each
mirror
> it tries, it will first check the cache, then download a copy to the
> cache if none exists; finally the location of the file in the cache is
> returned. However, I can get straight URL dependencies to work even if
> the metadata doesnt exist.
This definitely can coexists with the DNS portion of my proposal.
However, the other part of my proposal is looking for a "standard" base
structure based on groupID (namespaces based on reverse domain names).
The base structure will point to the Project's Repository Space. In
this there will be a default structure and naming convention as well,
but this can be overridden with the presence of a meta file.
> Anyway, enough. I need to put up or shut up, I'll get some coding
done.
Nonsense ;-) It is definitely beneficial to talk about design in plain
English rather than in code.
- Mike
>
> - Baz
>
>
>
>
>
> Privacy and Confidentiality Notice
>
> ------------------------------------------------
>
> The information contained in this E-Mail message is intended only for
the
> person or persons to whom it is addressed. Such information is
> confidential and privileged and no mistake in transmission is intended
to
> waive or compromise such privilege. If you have received it in error,
> please destroy it and notify us on the telephone number printed above.
If
> you do not receive complete and legible copies, please telephone us
> immediately. Any opinions expressed herein including attachments are
those
> of the author only. i-documentsystems Ltd. does not accept
responsibility
> for the accuracy or completeness of the information provided or for
any
> changes to this Email, however made, after it was sent. (Please note
that
> it is your responsibility to scan this message for viruses).
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
Re: Update
Posted by Brian Ewins <Br...@i-documentsystems.com>.
Stanley,Michael P. wrote:
>I just don't think you see it. This still forces a developer to know
>the URL of the jar -
>"http://www.ibiblio.org/maven/ant/jars/ant-1.4.1.jar".
>
>What happens if the dependency moves. Every POM that has that hardoced
>URL fails.
>
><dependency>
> <id>ant</id>
> <version>1.4.1</version>
> <groupId>org.apache</groupId>
></dependency>
>
>This tells me everything I need to get to the repository (regardless of
>where it is, or how the PRS is organized!)
>
>
I don't think you see it either. I am perfectly aware that adding a
layer of indirection to looking up something allows you to get anywhere
you like. I am not proposing removing this ability with the URL stuff.
I am proposing that I can just specify the URL if I know where the heck
something is.
For example on my PC right now I have javamail jars in
"file:///lon_fp1/developers/packages/javamail-1.3/lib/imap.jar" (etc) -
being used by ant-based projects. In order to use this in maven right
now, I'd have to copy it, rename it, or provide metadata for it. Why? I
/know/ this file isn't going to move off the corporate fileserver. Why
can't I just write:
<dependency>
<id>imap</id>
<location>file:///lon_fp1/developers/packages/javamail-1.3/lib/imap.jar</location>
</dependency>
Does this stop you writing metadata for other packages? No. Does it get
the project up and running faster? Yes.
Will this break in the future? eg, lon_fp1 gets replaced by lon_fp2.
Actually, no, it doesn't. Not if I can provide an equivalent location
for that URL, e.g:
maven.repo.remote=file:///lon_fp2/developers/maven
file:///lon_fp1/developers/maven
(see comments below about uses of mirrors...)
>The Ant project can name the resource foobar and put it in their donkey/
>folder. It doesn't matter. The contract is on the Dependency ID and
>the Group ID and optionally the version and artifact.
>
>Give me a situation this doesn't hold true on.
>
>
Of course there isn't one. Indirection is a panacea. But its a panacea
with a cost.
>What I'm proposing can not be compared to Mirrors. Mirrors are good at
>distributing load, and providing faster resources based on geographical
>location. However, they do not provide a de-centralized service. There
>is big difference to the Maven build system and Linux distribution
>sites. The Maven repository/dependency resolution system should not
>imitate distro-sites.
>
Its a different aspect of mirrors that interests me. The file structure
of silos, repos - whatever you care to call them - within sets of
mirrors is identical. I can try to get the same file from a selection of
mirrors (even incomplete mirrors) by using the same relative path. Once
you know the url to a file on one of a set of mirrors, its trivial to
find out if its on any of the others.
To achieve the same effect purely with metadata you need to have an
entire catalog for the repository in your metadata, or equivalently a
lookup service (eg LDAP, as you say). I'm not saying you can't do this
stuff with metadata. What I am saying is that the observation that
repositories are currently mirrors (in the sense of sharing the same URL
structure) is useful as it allows us to take eg:
maven.repo.remote=http://www.ibiblio.org/maven
file:///lon_fp1/developers/maven
and from that determine that:
http://www.ibiblio.org/maven/ant/jars/ant-1.4.1.jar
belongs in this set of mirrors (it starts with the name of one of the
mirrors) and thus may also be available at:
file:///lon_fp1/developers/maven/ant/jars/ant-1.4.1.jar
Knowing that I can work with mirrors this way is what /lets me/ specify
a dependency as an URL and still manage to get it from multiple repos.
It also allows me to observe that this use of URLs would allow for sets
of mirrors with /different/ URL structures, the structures only being
equivalent within each set (and this does 'decentralize' repo stuff).
Splitting the local repo to have a separate per-repo cache allows me to
avoid name clashes on downloaded artifacts without requiring metadata to
exist. Once we have the metadata and some global naming strategy we
could get the same thing, but the cache structure prevents us ever
having name clashes, and can be put in place right now. (after patching
the 15 plugins that 'know' the structure of maven.repo.local)
I think the two proposals can coexist. I think the role of metadata,
among other things, will be to resolve ids, versions to 'real' urls; at
that point maven will attempt to download the URL from /equivalent
mirrors/ for that URL, in the users order of preference; for each mirror
it tries, it will first check the cache, then download a copy to the
cache if none exists; finally the location of the file in the cache is
returned. However, I can get straight URL dependencies to work even if
the metadata doesnt exist.
Anyway, enough. I need to put up or shut up, I'll get some coding done.
- Baz
Privacy and Confidentiality Notice
------------------------------------------------
The information contained in this E-Mail message is intended only for the person or persons to whom it is addressed. Such information is confidential and privileged and no mistake in transmission is intended to waive or compromise such privilege. If you have received it in error, please destroy it and notify us on the telephone number printed above. If you do not receive complete and legible copies, please telephone us immediately. Any opinions expressed herein including attachments are those of the author only. i-documentsystems Ltd. does not accept responsibility for the accuracy or completeness of the information provided or for any changes to this Email, however made, after it was sent. (Please note that it is your responsibility to scan this message for viruses).
Re: Update
Posted by Rafal Krzewski <Ra...@caltha.pl>.
Stanley,Michael P. wrote:
>>I've seen this DNS proposal, and I'm not keen on it at all. Being able
>>to provide arbitrary DNS entries is a pretty high barrier to entry for
>>someone trying to set up a repo (I'm happy enough editing zone files,
>>but I know most sysadmins would be dead set against letting you do
> this)
>
> This is not a good argument at all. Yes Joe Developer doesn't always
> have sysadmin privalages within a domain, and doesn't always have access
> to DNS entries. The capability exists, is commonly used by
> organizations, and many sysadmins have no problem setting up DNS
> aliases. This is all it is.
>
> I work for a mid size corporation and I would be able to get an alias
> for this.
If we go the HTTP + XML way, anyone who is able to put a file onto their
own domain's webserver is able to run their own maven repository.
If we go the DNS SRV way, only those who can persuade the administrator
of theri domain's DNS server to create funny entries is able to run
a maven repository. I bet you that the second set is much much smaller.
Think about all these SourceForge projects...
R.
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
> Stanley,Michael P. wrote:
>
> >I'm not a fan of adding path to the POM. It requires developers to
have
> >knowledge of each dependencies project's repository space. It also
> >prevents projects from manipulating (reorganizing) their project
space
> >without worrying about breaking anyone dependent on its resources.
> >
> >
> Currently developers have to have a knowledge of each dependencies
> repository space anyway. They also have to 'undo' the name munging to
> figure out how to create a reference to a specific jar on ibiblio. As
> for re-org - my point was that these things are like PURLs - you can't
> reorganize the past. Adding another layer of indirection doesn't get
> away from the fact that at /some point/ the references have to be
> stable, eg the referernce to the metadata for a project gets you
there,
> or there's a searchable repo catalog in every repo thats always in the
> same place with the same structure. It amounts to the same thing.
Knowing the Name(id) of a dependency is much different than knowing the
location (repository structure, url, etc) of a dependency.
Yes at some point the basic repository structure needs to be stable.
(up to the convetion of finding the project's repository space). I
think this is desirable.
> Also, devs don't need to understand the structure of a repo - only
where
> one thing is in the repo, which they can find easily by browsing.
There
> is a difference; the current maven conventions require understanding
of
> the structure /as well/ in order to decompose an URL into
> group/artifact/version parts.
Not really. Some things do (and I'm asking that things like <jar> be
removed). Composing Project Repository Spaces (PRS) out of groupID &
projectID is a good thing. It just needs to be more hierarchal
(organized a little better, to allow for better scalability - room to
grow). Its easy to communicate to developers projectID and groupID.
ArtifactID becomes a reference point to an entry in the PRS repository
file, which seperates knowing what a project depends on from where the
dependency lives.
> >I don't think this is a pro. Granted it needs to be cleaned up, and
> >restrictions(conventions) need to be agreed on once and for all, but
I
> >feel that having general conventions (and restriction) w/ projected,
> >groupID, artifactID, version, and domain is desired.
> >
> Yes and no. We do need a mapping from group/artifact/version to a
path,
> in order to install something into the repo. However when we get
> something back out, its not always been built with maven. The g/a/v
> mapping works poorly there. I'm suggesting it gets in the way.
I don't think artifactId as a reference to a file works poorly here. In
fact I argue that it works better than what currently exists (<jar>) for
this situation.
> >But with URNs the developers depending on them will need to. This
isn't
> >ideal. I shouldn't matter to the developers how the PRS is
organized.
> >They just need to know I'm need this version of this project.
> >
> That would be nice. But it only works if everyone uses the maven
> conventions. This is patently not the case, and is unlikely to ever be
> the case.
The repository is organized with Maven conventions. In my proposal, the
Dependency provider has as much flexibility as they need to work with
resources that don't follow default Maven conventions.
> >By adding the domain we can also now provide dependency providers to
> >stand up and maintain their own repositories. Repositories that
> >dependencies exist in can be auto discovered through DNS lookup for
> >_mavenrepo._tcp.<domain>
> >
> >- Dependency providers can move to different repositories with no
fuss
> >- With the addition of the repository meta-info they can
move/reorganize
> >PRS without screwing projects that depend on it.
> >
> I've seen this DNS proposal, and I'm not keen on it at all. Being able
> to provide arbitrary DNS entries is a pretty high barrier to entry for
> someone trying to set up a repo (I'm happy enough editing zone files,
> but I know most sysadmins would be dead set against letting you do
this)
This is not a good argument at all. Yes Joe Developer doesn't always
have sysadmin privalages within a domain, and doesn't always have access
to DNS entries. The capability exists, is commonly used by
organizations, and many sysadmins have no problem setting up DNS
aliases. This is all it is.
I work for a mid size corporation and I would be able to get an alias
for this.
Your thinking too small. Imagine if this convention becomes widely
adopted (which I hope to make it :-) and companies like SourceForge
start offering a Maven Repository service for Java projects. Or Sun,
Apache, Tigris, IBM, Ibiblio, etc... Aside from Jabber's use of this
protocol, it is commonly used in LDAP, and other enterprise services.
The fact is in my proposal they can. And Dependency providers have the
freedom to move from repository to repository, reorganizing the
repository on the whim, and projects that depend on these resources
aren't effected at all. In fact, developers that do depend on these
don't *need* to care where a dependency lives, or the file name of the
resource. POM writers just need to know the ID of the dependency, maybe
the artifact ID of the dependency, and where it comes from. Not too
much to ask. After all I know my project depends on Beanutils, and I
know beanutils comes from Jakarta.
> After some more thought, I came up with a slight update that allows
for
> distributed repositories. I mean to write patches to try this idea out
> so I'm not just shooting the breeze this time.
>
> Dependencies
> ==========
> All deps are specified using an URL. ie, for ant-1.4.1, you'd name it
as
> "http://www.ibiblio.org/maven/ant/jars/ant-1.4.1.jar".
> All deps have a unique id which is used to refer to them from jelly.
> This is unrelated to the URL.
> In the patches, I plan to do this by allowing the URL to be specified,
> while maintaining backwards compatibility with the current behaviour
(by
> default I will construct an URL to your first listed remote repo, ids
> are constructed exactly as at present).
I just don't think you see it. This still forces a developer to know
the URL of the jar -
"http://www.ibiblio.org/maven/ant/jars/ant-1.4.1.jar".
What happens if the dependency moves. Every POM that has that hardoced
URL fails.
<dependency>
<id>ant</id>
<version>1.4.1</version>
<groupId>org.apache</groupId>
</dependency>
This tells me everything I need to get to the repository (regardless of
where it is, or how the PRS is organized!)
The Ant project can name the resource foobar and put it in their donkey/
folder. It doesn't matter. The contract is on the Dependency ID and
the Group ID and optionally the version and artifact.
Give me a situation this doesn't hold true on.
What I'm proposing can not be compared to Mirrors. Mirrors are good at
distributing load, and providing faster resources based on geographical
location. However, they do not provide a de-centralized service. There
is big difference to the Maven build system and Linux distribution
sites. The Maven repository/dependency resolution system should not
imitate distro-sites.
And I too plan on implementing this, once the idea is ironed out enough.
I feel it's getting pretty darn close. However, I will first gather up
the scattered information from this thread and put it into a formal Xdoc
proposal.
It comes down to too parts (that are related but not dependent on each
other)
- Proposal for repository layout (determining the PRS)
- Proposal for de-centralized repository resolution
- Mike
>
> Local Repos
> =========
> There is a cache which contains downloads from remote repos. There is
a
> different cache dir for each remote repo, so repo structure is allowed
> to vary.
> The local repo is just that, a local repo, with no possibility of
remote
> stuff being downloaded into it.
> There is a list of remote repos which are regarded as 'local' - they
are
> only copied into the build directly, not from the local repo (I'm
> thinking here of file:// repos, inside a LAN. This would allow for
> peer-to-peer behaviours, listing your groups local repos as remote to
> you, but marking them local in terms of file copying)
>
> Remote Repos
> ==========
> The list of remote repos becomes a list of mirrors. Actually I'd like
> something richer, so I can have multiple repos with different
> structures, each with a separate list of mirrors. Simple string
matching
> is used to determine if a dep comes from a mirror set, and to remove
the
> mirror prefix to obtain the relative URL.
> Downloads are into a cache-per-repo. You don't get clashes from
multiple
> remote repos. The cache is obviously checked first, except for
SNAPSHOTS.
> A file requested from a remote repo with no mirrors is grabbed
directly
> from that URL. NB this allows arbitrary resources to be listed as
> dependencies, without them being in a maven repo at all.
> Cache-per-mirror-set is /necessary/ to support multiple sets of
mirrors
> with different structures, but isn't required if all repos have the
same
> structure. Cache-per-repo requires less info at the point of download,
> so its easier to implement than cache-per-mirror-set.
>
> Installs
> =====
> This is the point where maven needs to build a name which can go into
a
> local repo, or the group repo. The rule is in a property in the jelly
> context, and can be overridden.
>
> While I know you don't like the URL/URN idea, some of the key
> separations of concerns are surely pertinent to any maven repo
redesign:
> the local repo and the cache are not the same thing, constructing a
name
> for the artifact we're building is not required to name an artifact we
> depend on, remote repos with the same structure act like mirrors.
>
> Anyhoo, I'm busy with project stuff for the next couple of days, but
> I'll try to come up with patches that do all this over the weekend.
Then
> they can be accepted or rejected, but at least there'll be something
> concrete to argue about. The changes should be pretty much entirely
> backwards compatible, with the exception of the split of the cache
from
> the local repo.
>
> Cheers,
> Baz
>
>
>
> Privacy and Confidentiality Notice
>
> ------------------------------------------------
>
> The information contained in this E-Mail message is intended only for
the
> person or persons to whom it is addressed. Such information is
> confidential and privileged and no mistake in transmission is intended
to
> waive or compromise such privilege. If you have received it in error,
> please destroy it and notify us on the telephone number printed above.
If
> you do not receive complete and legible copies, please telephone us
> immediately. Any opinions expressed herein including attachments are
those
> of the author only. i-documentsystems Ltd. does not accept
responsibility
> for the accuracy or completeness of the information provided or for
any
> changes to this Email, however made, after it was sent. (Please note
that
> it is your responsibility to scan this message for viruses).
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
Re: Update
Posted by Brian Ewins <Br...@i-documentsystems.com>.
Stanley,Michael P. wrote:
>I'm not a fan of adding path to the POM. It requires developers to have
>knowledge of each dependencies project's repository space. It also
>prevents projects from manipulating (reorganizing) their project space
>without worrying about breaking anyone dependent on its resources.
>
>
Currently developers have to have a knowledge of each dependencies
repository space anyway. They also have to 'undo' the name munging to
figure out how to create a reference to a specific jar on ibiblio. As
for re-org - my point was that these things are like PURLs - you can't
reorganize the past. Adding another layer of indirection doesn't get
away from the fact that at /some point/ the references have to be
stable, eg the referernce to the metadata for a project gets you there,
or there's a searchable repo catalog in every repo thats always in the
same place with the same structure. It amounts to the same thing.
Also, devs don't need to understand the structure of a repo - only where
one thing is in the repo, which they can find easily by browsing. There
is a difference; the current maven conventions require understanding of
the structure /as well/ in order to decompose an URL into
group/artifact/version parts.
>I don't think this is a pro. Granted it needs to be cleaned up, and
>restrictions(conventions) need to be agreed on once and for all, but I
>feel that having general conventions (and restriction) w/ projected,
>groupID, artifactID, version, and domain is desired.
>
Yes and no. We do need a mapping from group/artifact/version to a path,
in order to install something into the repo. However when we get
something back out, its not always been built with maven. The g/a/v
mapping works poorly there. I'm suggesting it gets in the way.
>But with URNs the developers depending on them will need to. This isn't
>ideal. I shouldn't matter to the developers how the PRS is organized.
>They just need to know I'm need this version of this project.
>
That would be nice. But it only works if everyone uses the maven
conventions. This is patently not the case, and is unlikely to ever be
the case.
>By adding the domain we can also now provide dependency providers to
>stand up and maintain their own repositories. Repositories that
>dependencies exist in can be auto discovered through DNS lookup for
>_mavenrepo._tcp.<domain>
>
>- Dependency providers can move to different repositories with no fuss
>- With the addition of the repository meta-info they can move/reorganize
>PRS without screwing projects that depend on it.
>
I've seen this DNS proposal, and I'm not keen on it at all. Being able
to provide arbitrary DNS entries is a pretty high barrier to entry for
someone trying to set up a repo (I'm happy enough editing zone files,
but I know most sysadmins would be dead set against letting you do this)
After some more thought, I came up with a slight update that allows for
distributed repositories. I mean to write patches to try this idea out
so I'm not just shooting the breeze this time.
Dependencies
==========
All deps are specified using an URL. ie, for ant-1.4.1, you'd name it as
"http://www.ibiblio.org/maven/ant/jars/ant-1.4.1.jar".
All deps have a unique id which is used to refer to them from jelly.
This is unrelated to the URL.
In the patches, I plan to do this by allowing the URL to be specified,
while maintaining backwards compatibility with the current behaviour (by
default I will construct an URL to your first listed remote repo, ids
are constructed exactly as at present).
Local Repos
=========
There is a cache which contains downloads from remote repos. There is a
different cache dir for each remote repo, so repo structure is allowed
to vary.
The local repo is just that, a local repo, with no possibility of remote
stuff being downloaded into it.
There is a list of remote repos which are regarded as 'local' - they are
only copied into the build directly, not from the local repo (I'm
thinking here of file:// repos, inside a LAN. This would allow for
peer-to-peer behaviours, listing your groups local repos as remote to
you, but marking them local in terms of file copying)
Remote Repos
==========
The list of remote repos becomes a list of mirrors. Actually I'd like
something richer, so I can have multiple repos with different
structures, each with a separate list of mirrors. Simple string matching
is used to determine if a dep comes from a mirror set, and to remove the
mirror prefix to obtain the relative URL.
Downloads are into a cache-per-repo. You don't get clashes from multiple
remote repos. The cache is obviously checked first, except for SNAPSHOTS.
A file requested from a remote repo with no mirrors is grabbed directly
from that URL. NB this allows arbitrary resources to be listed as
dependencies, without them being in a maven repo at all.
Cache-per-mirror-set is /necessary/ to support multiple sets of mirrors
with different structures, but isn't required if all repos have the same
structure. Cache-per-repo requires less info at the point of download,
so its easier to implement than cache-per-mirror-set.
Installs
=====
This is the point where maven needs to build a name which can go into a
local repo, or the group repo. The rule is in a property in the jelly
context, and can be overridden.
While I know you don't like the URL/URN idea, some of the key
separations of concerns are surely pertinent to any maven repo redesign:
the local repo and the cache are not the same thing, constructing a name
for the artifact we're building is not required to name an artifact we
depend on, remote repos with the same structure act like mirrors.
Anyhoo, I'm busy with project stuff for the next couple of days, but
I'll try to come up with patches that do all this over the weekend. Then
they can be accepted or rejected, but at least there'll be something
concrete to argue about. The changes should be pretty much entirely
backwards compatible, with the exception of the split of the cache from
the local repo.
Cheers,
Baz
Privacy and Confidentiality Notice
------------------------------------------------
The information contained in this E-Mail message is intended only for the person or persons to whom it is addressed. Such information is confidential and privileged and no mistake in transmission is intended to waive or compromise such privilege. If you have received it in error, please destroy it and notify us on the telephone number printed above. If you do not receive complete and legible copies, please telephone us immediately. Any opinions expressed herein including attachments are those of the author only. i-documentsystems Ltd. does not accept responsibility for the accuracy or completeness of the information provided or for any changes to this Email, however made, after it was sent. (Please note that it is your responsibility to scan this message for viruses).
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
> >Actually, this is similar to an idea I had. Last night I was trying
to
> >think of how to provide project-by-project customizable organization
of
> >their repository space. Then it hit me - A meta file
"repository.xml".
> >
> >
> Counter-proposal (just thinking aloud):
> Specify all dependencies repository paths explicitly (really, this is
> defining an urn:maven: URN scheme, without bothering to specify the
> prefix). Specify a short name/alias for your dependency in your
> project.xml. ie
>
> <dependency>
> <groupId>foo</groupId>
> <artifactId>bar</artifactId>
> <version>1.0</version>
> <jar>some-wacky-name-1.0-is-broken.not-a-jar</jar>
> </dependency>
>
> becomes:
> <dependency>
> <!-- id goes back to being the thing you use to refer to this
> thing from jelly-->
> <id>foo</id>
> <path>foo/jars/some-wacky-name-1.0-is-broken.not-a-jar</path>
> </dependency>
>
I'm not a fan of adding path to the POM. It requires developers to have
knowledge of each dependencies project's repository space. It also
prevents projects from manipulating (reorganizing) their project space
without worrying about breaking anyone dependent on its resources.
> This explains how you get to dependencies, but not how the project
comes
> up with its /own/ URN. We do this by making the current project's
naming
> rule explicit in your project.properties:
> maven.repopath.jar=megacorp.com/funky/${pom.id}-${pom.version}.jar
> or whatever. clearly projects that do want to build multiple artifacts
> could come up with their own naming convention, now its jellified; and
> the default rule that is used currently would be the default for this
> property.
>
> When it comes down to it, artifact ids are being used in jelly as
> aliases for more complex 'constructed' names which might as well be
> URNs. The version numbers, for example, are never used anywhere, apart
> from looking for the word 'SNAPSHOT'. The paths are also currently the
> same no matter what kind of repo is being used. Using explicit URNs
> means that URI-handling code can deal with breaking down the path
> elements if you want. You can have domain names or reverse domain
names
> in paths if you think these will help. Realising that aliases are just
> local names for dependencies means we can go back to simple ways of
> referring to specific dependencies from our jelly - you just use the
> short alias.
>
> PROS: gets rid of groupid, artifactid, <jar>, artifact name munging
> rules etc etc in one fell swoop.
I don't think this is a pro. Granted it needs to be cleaned up, and
restrictions(conventions) need to be agreed on once and for all, but I
feel that having general conventions (and restriction) w/ projected,
groupID, artifactID, version, and domain is desired. This provides
uniformity in dependencies, enough information to provide a clean
repository, freedom of extensibility for dependency providers (project
repository space admins), and ability to provide a distributed lookup
process.
Example for my proposal:
<dependency>
<id>commons-collections</id>
<version>SNAPSHOT</version>
<groupID>org.apache.jakarta.commons</groupId>
<domain>org.apache</domain>
<artifactID>optionalAPIs</artifactID>
</dependency>
NOTE: I included all elements (even optional ones, even though they
don't necessarily fit with the example dependency).
<domain> & <artifactID> are optional. If domain doesn't exist it is
considered to be == to <groupID>. Likewise <artifactID> would be == to
<id>
In this scenario the project's repository space (PRS) would be -
org/apache/jakarta/commons/commons-collections/
if no repository.xml file was found in this PRS/ then it would look for
the jars in the default directory jars/
However if the repository.xml existed, it could look something like this
(top of my head needs some work) ->
<project-repository>
<artifact name="optionalAPIs" location="additionalStuff/"/>
<artifact name="optionalAPIs" version="1.2"
path="release/optionalAPIs-1.2.jar"/>
<artifact id="commons-collections" location="jars"/>
</project-repository>
The artifact element can have the following attributes -
name = the short name (artifactID || id) of the dependency (or matching
rule, regular expression)
version = version matching rule (or matching rule, regular expression)
location = relative path - the file name will follow standard
<id>-<version>.jar
path = relative path to the file itself
>
> >PROS;
> >- Ultimate extensibility over time (consist extension point)
> >
> Your proposal kept the current layout as a way of navigating to the
> metadata. The URN proposal lets people organize the metadata the same
as
> the data.
Yes and no. my proposal keeps a standard layout for navigating to the
metadata, but improves upon the current layout.
>
> >- Very flexible in regards to project specific organization
> >
> URNs don't give a hoot about project organisation either.
But with URNs the developers depending on them will need to. This isn't
ideal. I shouldn't matter to the developers how the PRS is organized.
They just need to know I'm need this version of this project.
> >- Still provides default layout for *most* projects, since specific
> >project organization is probably going to be a rare thing
> >
> >
> Providing a default URN building rule lets people use the default
> layout. Providing flexible URN rules lets people do what the heck they
> want.
>
> >CONS:
> >- Need to tread carefully as far as performance is concerned (adding
xml
> >processing to artifacts may provide a bottleneck). I do feel though
> >that this is going to be a rare case for most projects.
> >
> The URN proposal gives repo layout flexibility (some might say
> "uncontrolled flexibility") without requiring the metadata facility to
> work yet. However I don't expect it to be adopted anytime soon as it
> breaks backward compatibility (its biggest CON), eg with the SNAPSHOT
> dependency flipping thang. It also prevents future layout reorgs,
since
> the URNs you provide act similarly to PURLs for the resources you
depend
> on. I don't see this as necessarily a bad thing.
I do. It is much more cumbersome for both the developers and dependency
providers, since they need to be able to communicate these to each other
and are very susceptible to unresolved dependency errors upon minor
changes.
By adding the domain we can also now provide dependency providers to
stand up and maintain their own repositories. Repositories that
dependencies exist in can be auto discovered through DNS lookup for
_mavenrepo._tcp.<domain>
- Dependency providers can move to different repositories with no fuss
- With the addition of the repository meta-info they can move/reorganize
PRS without screwing projects that depend on it.
- Mike
> As an example of how this might make life simpler, I can browse to a
dep
> on ibiblio that I need:
> http://www.ibiblio.org/maven/xerces/jars/xercesImpl-2.0.2.jar
> Then add it as a dependency like so:
> <dependency>
> <id>xml-parser</id>
> <path>xerces/jars/xercesImpl-2.0.2.jar</path>
> </dependency>
> ... without having to figure out how to turn that back into group,
> artifact id, version; and then change my xml parser to crimson like
so:
> <dependency>
> <id>xml-parser</id>
> <path>crimson/jars/crimson-1.1.3.jar</path>
> </dependency>
> ... without having to change my jelly that mentioned the "xml-parser"
> alias. This would be much simpler to explain to people than the
current
> scheme ;)
>
> Anyway, something to discuss.
>
> -Baz
>
>
>
>
>
> Privacy and Confidentiality Notice
>
> ------------------------------------------------
>
> The information contained in this E-Mail message is intended only for
the
> person or persons to whom it is addressed. Such information is
> confidential and privileged and no mistake in transmission is intended
to
> waive or compromise such privilege. If you have received it in error,
> please destroy it and notify us on the telephone number printed above.
If
> you do not receive complete and legible copies, please telephone us
> immediately. Any opinions expressed herein including attachments are
those
> of the author only. i-documentsystems Ltd. does not accept
responsibility
> for the accuracy or completeness of the information provided or for
any
> changes to this Email, however made, after it was sent. (Please note
that
> it is your responsibility to scan this message for viruses).
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
Re: Update
Posted by Brian Ewins <Br...@i-documentsystems.com>.
Stanley,Michael P. wrote:
>Actually, this is similar to an idea I had. Last night I was trying to
>think of how to provide project-by-project customizable organization of
>their repository space. Then it hit me - A meta file "repository.xml".
>
>
Counter-proposal (just thinking aloud):
Specify all dependencies repository paths explicitly (really, this is
defining an urn:maven: URN scheme, without bothering to specify the
prefix). Specify a short name/alias for your dependency in your
project.xml. ie
<dependency>
<groupId>foo</groupId>
<artifactId>bar</artifactId>
<version>1.0</version>
<jar>some-wacky-name-1.0-is-broken.not-a-jar</jar>
</dependency>
becomes:
<dependency>
<!-- id goes back to being the thing you use to refer to this
thing from jelly-->
<id>foo</id>
<path>foo/jars/some-wacky-name-1.0-is-broken.not-a-jar</path>
</dependency>
This would resolve to
http://www.ibiblio.org/maven/data/foo/jars/some-wacky-name-1.0-is-broken.not-a-jar
Why the extra 'data' bit? Metadata, checksums, and the like, would just
use a different prefix:
http://www.ibiblio.org/maven/checksum/foo/jars/some-wacky-name-1.0-is-broken.not-a-jar
http://www.ibiblio.org/maven/metadata/foo/jars/some-wacky-name-1.0-is-broken.not-a-jar
This explains how you get to dependencies, but not how the project comes
up with its /own/ URN. We do this by making the current project's naming
rule explicit in your project.properties:
maven.repopath.jar=megacorp.com/funky/${pom.id}-${pom.version}.jar
or whatever. clearly projects that do want to build multiple artifacts
could come up with their own naming convention, now its jellified; and
the default rule that is used currently would be the default for this
property.
When it comes down to it, artifact ids are being used in jelly as
aliases for more complex 'constructed' names which might as well be
URNs. The version numbers, for example, are never used anywhere, apart
from looking for the word 'SNAPSHOT'. The paths are also currently the
same no matter what kind of repo is being used. Using explicit URNs
means that URI-handling code can deal with breaking down the path
elements if you want. You can have domain names or reverse domain names
in paths if you think these will help. Realising that aliases are just
local names for dependencies means we can go back to simple ways of
referring to specific dependencies from our jelly - you just use the
short alias.
PROS: gets rid of groupid, artifactid, <jar>, artifact name munging
rules etc etc in one fell swoop.
>PROS;
>- Ultimate extensibility over time (consist extension point)
>
Your proposal kept the current layout as a way of navigating to the
metadata. The URN proposal lets people organize the metadata the same as
the data.
>- Very flexible in regards to project specific organization
>
URNs don't give a hoot about project organisation either.
>- Still provides default layout for *most* projects, since specific
>project organization is probably going to be a rare thing
>
>
Providing a default URN building rule lets people use the default
layout. Providing flexible URN rules lets people do what the heck they want.
>CONS:
>- Need to tread carefully as far as performance is concerned (adding xml
>processing to artifacts may provide a bottleneck). I do feel though
>that this is going to be a rare case for most projects.
>
The URN proposal gives repo layout flexibility (some might say
"uncontrolled flexibility") without requiring the metadata facility to
work yet. However I don't expect it to be adopted anytime soon as it
breaks backward compatibility (its biggest CON), eg with the SNAPSHOT
dependency flipping thang. It also prevents future layout reorgs, since
the URNs you provide act similarly to PURLs for the resources you depend
on. I don't see this as necessarily a bad thing.
As an example of how this might make life simpler, I can browse to a dep
on ibiblio that I need:
http://www.ibiblio.org/maven/xerces/jars/xercesImpl-2.0.2.jar
Then add it as a dependency like so:
<dependency>
<id>xml-parser</id>
<path>xerces/jars/xercesImpl-2.0.2.jar</path>
</dependency>
... without having to figure out how to turn that back into group,
artifact id, version; and then change my xml parser to crimson like so:
<dependency>
<id>xml-parser</id>
<path>crimson/jars/crimson-1.1.3.jar</path>
</dependency>
... without having to change my jelly that mentioned the "xml-parser"
alias. This would be much simpler to explain to people than the current
scheme ;)
Anyway, something to discuss.
-Baz
Privacy and Confidentiality Notice
------------------------------------------------
The information contained in this E-Mail message is intended only for the person or persons to whom it is addressed. Such information is confidential and privileged and no mistake in transmission is intended to waive or compromise such privilege. If you have received it in error, please destroy it and notify us on the telephone number printed above. If you do not receive complete and legible copies, please telephone us immediately. Any opinions expressed herein including attachments are those of the author only. i-documentsystems Ltd. does not accept responsibility for the accuracy or completeness of the information provided or for any changes to this Email, however made, after it was sent. (Please note that it is your responsibility to scan this message for viruses).
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
> Turbine world. My hat is tipped to you Jason.)
And the rest of the Maven team!!
- Mike
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
Henning I'm only going to respond to this email, since it is the only
one in this thread that actually tries to contribute something to the
progress of this project....
> - getting rid of the "SNAPSHOT" concept. This is fundamentally flawed.
> Lets check at every build process whether "there is a newer jar in
the
> repository" is bad.
-1 : One of the benefits to Maven is its ability to keep un-related
projects in sync. Honestly, since Maven, I've had better success at
building Jakarta projects. I contribute this, in part, to the SNAPSHOT
concept of benefiting the cross-pollination of open source projects.
However - SNAPSHOTS should be replaced with actual versions, when
creating a source release.
> - Make builds completely offline by default. If a jar is missing, die.
-1 : Again, one major benefit to Maven is being able to resolve
dependencies for you. Don't change the online behavior to appease the
situation that you have a slow connection. Instead create a more robust
lookup that distributes the load. AND if your project doesn't require
SNAPSHOTS don't use them (most production project don't), but if you are
working with a project that is in-development than you want to stay in
sync. In the end, it is the developers call, and it should stay that
way. Dependencies should (IMHO) be resolved in the following way
local repository -> internal repository -> master repository (or mirror)
-> domain specific repositories
The last one Maven doesn't currently have, the DNS SRV proposal will
make that possible.
> - Have a switch doing a "closure" which does explicit download of all
> missing jars at that point. Then you have a set of jars in your
local
> repository, which can be used to build. You have a reliable set of
> jars to be able to test a local change. If the build breaks, it was
your
> change and not some developer uploading a newer "snapshot" version
while
> you were not looking.
>
> If something needs a "newer" jar, either run this closure switch
again
> or,
> even better, maybe have
>
> % maven --update <artifact-id>, e.g. maven --update
commons-collections
>
> which then pulls the most current release from the repository.
I agree with Jason on this one, this is useful, but doesn't necessarily
help development. And it is basically making it harder for a developer
- let me explain. Currently, unless SNAPSHOT is specified, dependencies
are resolved in your local repository first, therefore a build on hits
the remote repository once! Instant "closure"
> - get rid of the "symlink" concept on ibiblio. If you need a newer
> version of the jar, you're willing to wait. Let maven check all
existing
> versions of an artifact and "get the newest"
What? To me, it sounds like you just described a SNAPSHOT
> - add a "manifest" file to each jar directory. This is managed at
upload
> time and can be downloaded by maven to get md5 sums, current
versions
> available and other meta information. Get an upload application /
tool.
Actually, this is similar to an idea I had. Last night I was trying to
think of how to provide project-by-project customizable organization of
their repository space. Then it hit me - A meta file "repository.xml".
In this scenario <domain> specifies the origin of the project <groupID>
provides the placement in a repository (restriction groupID must begin
with the revers domain, and is required. Domain is optional, if domain
is not specified it is considered equal to the reverse of groupID).
Each project directory can be organized in a default manner (currently
how it is done today, with artifact naming conventions,
Jar/Distribtuions/License directories), but if repository.xml exists in
the project's top level directory, than it is processed. This provides
an extension point that can have artifact - physical location mappings.
PROS;
- Ultimate extensibility over time (consist extension point)
- Very flexible in regards to project specific organization
- Still provides default layout for *most* projects, since specific
project organization is probably going to be a rare thing
CONS:
- Need to tread carefully as far as performance is concerned (adding xml
processing to artifacts may provide a bottleneck). I do feel though
that this is going to be a rare case for most projects.
> - finally do a _clear_ definition of the semantics of
This is being established. The repository as it stands right now,
however, is evolving so there are artifacts that don't necessarily
belong. I assume once a future repository layout is agreed on (Jason
did mention that it would be the "final" layout change), that their will
be a cleanup cycle. Until then developers just need to deal with it.
It doesn't interfere with the dependency resolution.
> After you get _these_ things nailed down, you can even start to think
> about replicating or clustering maven repositories. I'm really scared,
> thinking about a _really_ popular project which is used by thousands
> of developers starting to use maven. Think Tomcat.
Maven has grown fast and will continue to grow fast. Don't be scared,
be excited. Maven is evolving, and in my opinion, has the potential of
becoming the defacto standard for building projects. It is no secret,
that it is not there yet. (and get the facts straight - JBoss knows
this, and isn't making any moves. Someone mentioned it on the list, but
that's about it. Somewhere along the way the message got
misinterpreted. I lurk on that list. However, the fact that someone
even mentioned Maven shows that it is making waves outside of the
Turbine world. My hat is tipped to you Jason.)
Help Maven get there through positive contributions. I think it is
apparently clear that no one wants (or has the time) to deal with
bullshit.
- Mike
>
> Jason often talks about how he does not like "half-assed"
> approaches. I let it to your imagination what my opinion about the
> current maven repository structure is... :-)
>
> Regards
> Henning
>
> Jason: BTW: Do you have any traffic numbers from the ibiblio repo?
>
> --
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
> hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
>
> Java, perl, Solaris, Linux, xSP Consulting, Web Services
> freelance consultant -- Jakarta Turbine Development -- hero for hire
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
Re: Update
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
"Stanley,Michael P." <ms...@mitre.org> writes:
>decisions that were made, are explainable). I *DO* care about the
>future roadmap! I'm not throwing mud, I'm trying to help.
>Maybe Jason didn't see this before, maybe he sees it better now, maybe
>it was articulated poorly before, maybe it still needs to be explained
>better, whatever the case lets just keep the discussion technical. If
>someone doesn't agree, convince them. If you can't, don't whine, keep
>trying, or fork off ;-)
What I'd like to see
- getting rid of the "SNAPSHOT" concept. This is fundamentally flawed.
Lets check at every build process whether "there is a newer jar in the
repository" is bad.
- Make builds completely offline by default. If a jar is missing, die.
- Have a switch doing a "closure" which does explicit download of all
missing jars at that point. Then you have a set of jars in your local
repository, which can be used to build. You have a reliable set of
jars to be able to test a local change. If the build breaks, it was your
change and not some developer uploading a newer "snapshot" version while
you were not looking.
If something needs a "newer" jar, either run this closure switch again or,
even better, maybe have
% maven --update <artifact-id>, e.g. maven --update commons-collections
which then pulls the most current release from the repository.
- get rid of the "symlink" concept on ibiblio. If you need a newer
version of the jar, you're willing to wait. Let maven check all existing
versions of an artifact and "get the newest"
- add a "manifest" file to each jar directory. This is managed at upload
time and can be downloaded by maven to get md5 sums, current versions
available and other meta information. Get an upload application / tool.
- finally do a _clear_ definition of the semantics of
artifactid-a.b
artifactid-a.b-yyyymmdd-hhmmss
artifactid-a.b-dev
artifactid-SNAPSHOT
look e.g. at the commons-collections directory. There is
commons-collections-2.0.20020914.015953
commons-collections-2.0.20020914.020746
commons-collections-2.0.20020914.020858
commons-collections-2.1-dev.jar
which one should commons-collections-SNAPSHOT map to? IMHO
it maps to the wrong version. 2.1-dev is newer than 2.0.<something>
After you get _these_ things nailed down, you can even start to think
about replicating or clustering maven repositories. I'm really scared,
thinking about a _really_ popular project which is used by thousands
of developers starting to use maven. Think Tomcat.
Jason often talks about how he does not like "half-assed"
approaches. I let it to your imagination what my opinion about the
current maven repository structure is... :-)
Regards
Henning
Jason: BTW: Do you have any traffic numbers from the ibiblio repo?
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
Re: Update
Posted by Jason van Zyl <ja...@zenplex.com>.
On Mon, 2003-03-03 at 17:44, Henning P. Schmiedehausen wrote:
> "Stanley,Michael P." <ms...@mitre.org> writes:
>
> >> groupId is whatever someone chooses it to be. in the case of
> >> commons-collections, the groupId is commons-collections.
>
> >But that's kind of my point, this isn't scalable. A Project ID is not
> >necessarily unique. The large the repository grows the more
> >unmanageable it will become.
>
> Jason didn't understand this in the pre4 time frame. What makes you
> think that suddently he changed his mind?
That simply isn't true. Where do you get these things from? I'm fully
cognizant of what is involved in making this scalable. As I've said time
and time again nothing of a distributed nature will be possible until
the real collection of POMs happens and a mechanism that reflects the
support for multiple repositories is in place for POMs that can't be
pushed into the public eye.
> The whole "everything in one repository on the planet" approach is
> flawed.
I never said I wanted the only repository to be the one at Ibiblio.
Clearly evidenced by support for more than one repository and the active
search for other mirrors. You claim yourself to use repositories other
than Ibiblio. But a single cohesive reference repository is necessary.
That doesn't mean it has to be the only repository. I would urge you to
refrain from commenting on things you don't fully understand and I'm
trying to be polite this time because you're going all out on the FUD.
> That's what I'm saying for four month now.
What have you been saying for four months?
> And Jason gave me a
> "whiner" label because of that.
Henning, I'm sorry but you do tend to complain a lot about things you
either don't understand and it's primarily because you don't ask any
questions. As a result you spread misinformation and I therefore tend to
get highly pissed off with you and then I ignore you.
Yes, the documentation should be better but I have started adding to it
and it's been getting better, possibly even approaching moderately
useful.
So try again and explain to me what you have been saying for four months
and I will try to answer it this time. I'm not sure what is limiting
your ability to build. I thought you did just fine with your own
corporate repository.
> Regards
> Henning
--
jvz.
Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
Re: Update
Posted by di...@multitask.com.au.
I hear ya Henning,
and that's the reason that I got an Australian mirror site set up. All
people down here can now point to planetmirror.com as their primary
repository.
I expect that this sort of thing could be better handled in the future
with aliases like au.maven.org (I'm assuming au.maven.apache.org is out of
the question since it wouldn't be an ASF box), de.maven.org etc leveraging
off the linux kernel mirror ideas.
I've had no hassles since switching to planetmirror as my main repo.
We need more mirrors too.
--
dIon Gillard, Multitask Consulting
Blog: http://www.freeroller.net/page/dion/Weblog
Work: http://www.multitask.com.au
"Henning P. Schmiedehausen" <hp...@intermeta.de> wrote on 04/03/2003
11:02:15 PM:
> Jason van Zyl <ja...@zenplex.com> writes:
>
> >On Mon, 2003-03-03 at 19:54, Stanley,Michael P. wrote:
> >> Look at the directory now. From the root directory there is a list
of
> >> project names. There is absolutely no organization, other than an
> >> alphabetical listing by project name.
>
> >This has not gone without notice, but we figured until we had some best
> >practices it's not worth diddling the repository in a half-ass manner.
> >It grew faster than expected.
>
> Jason,
>
> the problem is, that _many_ apache projects now rely on this
> repository and maven to be usable. You simply can't build things like
> Turbine (which does not have a too large user base) without ibiblio
> and maven.
>
> While I'm excited with the prospect of getting JBoss mavenized, I'm
> really scared about the implications when a project with such a large
> user base starts hitting the "SNAPSHOT" concept from ibiblio really
> hard.
>
> Regards
> Henning
>
> --
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
> hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
>
> Java, perl, Solaris, Linux, xSP Consulting, Web Services
> freelance consultant -- Jakarta Turbine Development -- hero for hire
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
>
Re: Update
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Jason van Zyl <ja...@zenplex.com> writes:
>On Mon, 2003-03-03 at 19:54, Stanley,Michael P. wrote:
>> Look at the directory now. From the root directory there is a list of
>> project names. There is absolutely no organization, other than an
>> alphabetical listing by project name.
>This has not gone without notice, but we figured until we had some best
>practices it's not worth diddling the repository in a half-ass manner.
>It grew faster than expected.
Jason,
the problem is, that _many_ apache projects now rely on this
repository and maven to be usable. You simply can't build things like
Turbine (which does not have a too large user base) without ibiblio
and maven.
While I'm excited with the prospect of getting JBoss mavenized, I'm
really scared about the implications when a project with such a large
user base starts hitting the "SNAPSHOT" concept from ibiblio really
hard.
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
> On Mon, 2003-03-03 at 19:54, Stanley,Michael P. wrote:
> > Look at the directory now. From the root directory there is a list
of
> > project names. There is absolutely no organization, other than an
> > alphabetical listing by project name.
>
> This has not gone without notice, but we figured until we had some
best
> practices it's not worth diddling the repository in a half-ass manner.
> It grew faster than expected.
I figured as much. If we recall the beginning of this email thread was
- "what is the future direction".
>
> > A repository structured around
> > FQDNs will provide an organized hierarchy of resources, help avoid
> > project collision, and help identify resource providers. It will
simply
> > be more manageable. It is more than a formatted string. Repository
> > organization guidelines provide much more than guaranteed
uniqueness.
> > Keep all your files on your computer in one directory for 1 year,
and
> > tell me how easy it is to find things or try programming with no
package
> > names. By enforcing some basic guidelines, repositories become
easier
> > for human/program to navigate.
>
> Certainly, which is why everything isn't in a _single_ directory.
> Greater granularity is desired but when we make the switch it will be
> the last time.
Great! I don't have the answer myself, just suggesting possibilities.
>
> > What I'm suggesting is *much* more than resource organization, and
> > multiple repositories. Using a de-centralized model for
repositories,
> > allows maven projects to resolve dependencies without needing to
know
> > the exact address of a server.
>
> I'm all for it. There needs to be a single cohesive repository for
> archival and historical purposes but if you find a way to make
> distributed behaviour work in a safe and synchronized manner then
that's
> great. But this is not as easy as it sounds.
Understood, and I appreciate the support.
- Mike
>
> > In a de-centralized model, as a developer, I can maintain my own
> > repository (or repository cluster for my organization), manage my
own
> > distributions, and provide them immediately across *ALL* maven
projects
> > without each project needing to update any properties!
>
> Sounds like the PORTS type system Kurt was talking about a while ago.
> Kurt, ring any bells?
>
> > - Mike
> >
> > > -----Original Message-----
> > > From: dion@multitask.com.au [mailto:dion@multitask.com.au]
> > > Sent: Monday, March 03, 2003 5:57 PM
> > > To: Turbine Maven Developers List
> > > Subject: Re: Update
> > >
> > > Mike (and Henning),
> > >
> > > if a string is not 'scalable', how is another formatted string
more
> > > scalable?
> > >
> > > I'm obviously missing something. Multiple repositories exist now,
so
> > > there's not a "everything in one repository on the planet"
problem.
> > >
> > > What is it I'm missing?
> > > --
> > > dIon Gillard, Multitask Consulting
> > > Blog: http://www.freeroller.net/page/dion/Weblog
> > > Work: http://www.multitask.com.au
> > >
> > >
> > > "Henning P. Schmiedehausen" <hp...@intermeta.de> wrote on 04/03/2003
> > > 09:44:42 AM:
> > >
> > > > "Stanley,Michael P." <ms...@mitre.org> writes:
> > > >
> > > > >> groupId is whatever someone chooses it to be. in the case of
> > > > >> commons-collections, the groupId is commons-collections.
> > > >
> > > > >But that's kind of my point, this isn't scalable. A Project ID
is
> > not
> > > > >necessarily unique. The large the repository grows the more
> > > > >unmanageable it will become.
> > > >
> > > > Jason didn't understand this in the pre4 time frame. What makes
you
> > > > think that suddently he changed his mind?
> > > >
> > > > The whole "everything in one repository on the planet" approach
is
> > > > flawed. That's what I'm saying for four month now. And Jason
gave me
> > a
> > > > "whiner" label because of that.
> > > >
> > > > Regards
> > > > Henning
> > > >
> > > > --
> > > > Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA
GmbH
> > > > hps@intermeta.de +49 9131 50 654 0
http://www.intermeta.de/
> > > >
> > > > Java, perl, Solaris, Linux, xSP Consulting, Web Services
> > > > freelance consultant -- Jakarta Turbine Development -- hero for
> > hire
> > > >
> > > >
> >
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > turbine-maven-dev-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > turbine-maven-dev-help@jakarta.apache.org
> > > >
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > turbine-maven-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > turbine-maven-dev-help@jakarta.apache.org
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-maven-dev-
> help@jakarta.apache.org
> --
> jvz.
>
> Jason van Zyl
> jason@zenplex.com
> http://tambora.zenplex.org
>
> In short, man creates for himself a new religion of a rational
> and technical order to justify his work and to be justified in it.
>
> -- Jacques Ellul, The Technological Society
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
[Jason writes:]
> I'm all for it. There needs to be a single cohesive repository for
> archival and historical purposes but if you find a way to make
> distributed behaviour work in a safe and synchronized manner then
that's
> great. But this is not as easy as it sounds.
Question: What is the benefit of having a single/cohesive repository
for archival and historical purposes? I can see how this is beneficial
for Repository Maintainers (I'm still working on terms) to do for
themselves, but is it necessary for a single/cohesive repository.
There can be the notion of an Archive Repository, which performs
aggregation (through some sort of registration process or something).
But given the de-centralized nature of my proposal, is this really
desired (across all known repositories)?
I don't think it is, however, I can see there becoming some major/well
known maven repository services such as Apache, Ibiblio, Sourceforge,
Sun, etc. And I can see the desire to create a cohesive archive
(reference) repository of these.
Possible Approach:
- Provide a registration process, which a Repository Maintainer can
register with the Archive Repository Service. This should be somewhat
restrictive.
- The Archive Repository Service - should not be used directly by maven
builds
- The Archive Repository Service and the Repository Maintainer can
establish a contract for "restoration" if needed. The Repository
Maintainer can opt to restore an older / removed / lost & needed
resource from the archive.
- This by no means should be automatic.
Thoughts?
Other Pending Questions:
Part of my proposal depends on default convention agreements (default if
no repository.xml file is found in the PRS root). Is this accurate?
- default directory PRS (Project Repository Space) structure
<PRS>/jars
<PRS>/poms
<PRS>/distributions
<PRS>/licenses
- default resouce names
<ArtifactID>-<version>.ext (jar/pom/license)
- ArtifactID == ID if not explicitly stated.
- Mike
RE: Update
Posted by Jason van Zyl <ja...@zenplex.com>.
On Mon, 2003-03-03 at 19:54, Stanley,Michael P. wrote:
> Look at the directory now. From the root directory there is a list of
> project names. There is absolutely no organization, other than an
> alphabetical listing by project name.
This has not gone without notice, but we figured until we had some best
practices it's not worth diddling the repository in a half-ass manner.
It grew faster than expected.
> A repository structured around
> FQDNs will provide an organized hierarchy of resources, help avoid
> project collision, and help identify resource providers. It will simply
> be more manageable. It is more than a formatted string. Repository
> organization guidelines provide much more than guaranteed uniqueness.
> Keep all your files on your computer in one directory for 1 year, and
> tell me how easy it is to find things or try programming with no package
> names. By enforcing some basic guidelines, repositories become easier
> for human/program to navigate.
Certainly, which is why everything isn't in a _single_ directory.
Greater granularity is desired but when we make the switch it will be
the last time.
> What I'm suggesting is *much* more than resource organization, and
> multiple repositories. Using a de-centralized model for repositories,
> allows maven projects to resolve dependencies without needing to know
> the exact address of a server.
I'm all for it. There needs to be a single cohesive repository for
archival and historical purposes but if you find a way to make
distributed behaviour work in a safe and synchronized manner then that's
great. But this is not as easy as it sounds.
> In a de-centralized model, as a developer, I can maintain my own
> repository (or repository cluster for my organization), manage my own
> distributions, and provide them immediately across *ALL* maven projects
> without each project needing to update any properties!
Sounds like the PORTS type system Kurt was talking about a while ago.
Kurt, ring any bells?
> - Mike
>
> > -----Original Message-----
> > From: dion@multitask.com.au [mailto:dion@multitask.com.au]
> > Sent: Monday, March 03, 2003 5:57 PM
> > To: Turbine Maven Developers List
> > Subject: Re: Update
> >
> > Mike (and Henning),
> >
> > if a string is not 'scalable', how is another formatted string more
> > scalable?
> >
> > I'm obviously missing something. Multiple repositories exist now, so
> > there's not a "everything in one repository on the planet" problem.
> >
> > What is it I'm missing?
> > --
> > dIon Gillard, Multitask Consulting
> > Blog: http://www.freeroller.net/page/dion/Weblog
> > Work: http://www.multitask.com.au
> >
> >
> > "Henning P. Schmiedehausen" <hp...@intermeta.de> wrote on 04/03/2003
> > 09:44:42 AM:
> >
> > > "Stanley,Michael P." <ms...@mitre.org> writes:
> > >
> > > >> groupId is whatever someone chooses it to be. in the case of
> > > >> commons-collections, the groupId is commons-collections.
> > >
> > > >But that's kind of my point, this isn't scalable. A Project ID is
> not
> > > >necessarily unique. The large the repository grows the more
> > > >unmanageable it will become.
> > >
> > > Jason didn't understand this in the pre4 time frame. What makes you
> > > think that suddently he changed his mind?
> > >
> > > The whole "everything in one repository on the planet" approach is
> > > flawed. That's what I'm saying for four month now. And Jason gave me
> a
> > > "whiner" label because of that.
> > >
> > > Regards
> > > Henning
> > >
> > > --
> > > Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
> > > hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
> > >
> > > Java, perl, Solaris, Linux, xSP Consulting, Web Services
> > > freelance consultant -- Jakarta Turbine Development -- hero for
> hire
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> turbine-maven-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > turbine-maven-dev-help@jakarta.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> turbine-maven-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> turbine-maven-dev-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-maven-dev-help@jakarta.apache.org
--
jvz.
Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
Re: Update
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
dion@multitask.com.au writes:
>It won't make the list of directories on the repo any short, as
>commons-logging/ will be replaced with org.apache.commons.logging/,
>commons-httpclient/ with org.apache.commons.httpclient/ etc, right?
>And what of jars that contain multiple packages of code?
Create something like IANA which hands out the identifiers for a
project and can be used on every repository.
Create a special identifier, e.g. "local" oder "development" which may
contain any jar and is never pulled from a remote repository. So if
you have "local:mytest.jar" in your POM, you must have it local.
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
> > The idea is we come up with a standard service name - 'mavenrepo'
(for
> > arguments sake). I can set up my DNS record to have ->
> > _mavenrepo._tcp.mikestanley.org point to a number of different
> > servers/ports such as mavenrepo1.mikestanley.org:80, and
> > mavenrepo2.mikestanley.org:8000
> I wasn't aware DNS did ports, but ok.
Ports are definitely supported by the spec
>
> > The DNS lookup will resolve _manverepo._tcp.mikestanley.org to
whatever
> > my domain is set up for. I can move the repository, add more
servers,
> > load balance requests, or even move to a completely different domain
say
> > www.ibiblio.com/maven all without forcing any changes in Maven
clients
> > and changes to dependent maven project's project.xml file.
>
> How does the client know to talk to _manverepo._tcp.mikestanley.org
rather
> than www.ibiblio.org/maven or whatever else? I thought the idea was to
get
> away from properties files?
The domain name 'mikestanley.org' should be part of the POMs dependency
entry. (NOTE: there are actually two issues here, 1 - directory
structure of the repository, 2 - associating a domain to a project for
repository lookup). There is several ways to do this, it is just a
matter of convention.
Some options are:
1: add a new required <domain> element. The project directory
is rooted in the reverse domain name. Maven service name is standard
(i.e. 'mavenrepo')
2: require groupID be the reverse project domain. <domain>
element can be added as an optional element to provide repository
lookup. This doesn't enforce groupID and domain are the same.
3. don't require either and provide defaults if they don't
exist.
I tend to favor option 2, but I think that <domain> should at least
match the root substring of <groupID>. An example -> Jakarta Apache
hosts a maven repository @ jakarta.apache.org. A project from Jakarta
would have the domain set to Jakarta.apache.org. However groupID may be
org.apache.jakarta.commons The only restriction is groupId must match
<reverse domain>.*
Regardless of the option the lookup process can follow - unless
requesting SNAPSHOT, there can be a prioritized repository search list
similar to maven does now, except when the project is not found in the
default list it finds the resource using the DNS SRV lookup service.
This will get away from the properties file since the POM dependency
will state their domain. The service will append
_mavenrepo._tcp.<domain> to handle the lookup.
>
> How do paths like /maven get specified in a DNS entry?
They don't directly, but at this point it is easy for domain
administrators to set up virtual hosts with their web server.
maven.srv1.mikestanley.org -> srv1.mikestanley.org/maven
Any way you slice it, the repository administrator can set it up any way
they like, Maven projects just need to know that the project belongs to
(comes from) mikestanley.org domain.
- Mike
>
>
> > They need to know the projects domain, but not the details of the
server
> > location. Look at the Jabber Protocol dnssrv and s2s service for an
> > example of how the DNS SRV spec can be used for this type of thing.
> Ok, will do.
>
> > It is very "magic wand"-ish and therefore can be very cool.
> Cool.
> --
> dIon Gillard, Multitask Consulting
> Blog: http://www.freeroller.net/page/dion/Weblog
> Work: http://www.multitask.com.au
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
RE: Update
Posted by di...@multitask.com.au.
"Stanley,Michael P." <ms...@mitre.org> wrote on 04/03/2003 12:55:56 PM:
> I would like to see things organized in reverse domain names, which
> typically would reflect the projects root package. The repository can
> be broken down into a series of sub-directories.
Gotcha...now I'm getting it.
> The idea is we come up with a standard service name - 'mavenrepo' (for
> arguments sake). I can set up my DNS record to have ->
> _mavenrepo._tcp.mikestanley.org point to a number of different
> servers/ports such as mavenrepo1.mikestanley.org:80, and
> mavenrepo2.mikestanley.org:8000
I wasn't aware DNS did ports, but ok.
> The DNS lookup will resolve _manverepo._tcp.mikestanley.org to whatever
> my domain is set up for. I can move the repository, add more servers,
> load balance requests, or even move to a completely different domain say
> www.ibiblio.com/maven all without forcing any changes in Maven clients
> and changes to dependent maven project's project.xml file.
How does the client know to talk to _manverepo._tcp.mikestanley.org rather
than www.ibiblio.org/maven or whatever else? I thought the idea was to get
away from properties files?
How do paths like /maven get specified in a DNS entry?
> They need to know the projects domain, but not the details of the server
> location. Look at the Jabber Protocol dnssrv and s2s service for an
> example of how the DNS SRV spec can be used for this type of thing.
Ok, will do.
> It is very "magic wand"-ish and therefore can be very cool.
Cool.
--
dIon Gillard, Multitask Consulting
Blog: http://www.freeroller.net/page/dion/Weblog
Work: http://www.multitask.com.au
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
> > project collision, and help identify resource providers. It will
simply
> > be more manageable. It is more than a formatted string. Repository
> > organization guidelines provide much more than guaranteed
uniqueness.
> > Keep all your files on your computer in one directory for 1 year,
and
> > tell me how easy it is to find things or try programming with no
package
> > names. By enforcing some basic guidelines, repositories become
easier
> > for human/program to navigate.
> I agree, but what are the guidelines you mention? I haven't seen them
in
> any detail except FQDN.
I would like to see things organized in reverse domain names, which
typically would reflect the projects root package. The repository can
be broken down into a series of sub-directories.
org/
|
+ apache
| |
| + jakarta
| | |
| | + commons-logging
| | | |
| | | + jars
|
+ mikestanley
| |
| + projectA
It also needs to be flexible enough to provide customizable
sub-directories under the project directory.
>
> It won't make the list of directories on the repo any short, as
> commons-logging/ will be replaced with org.apache.commons.logging/,
> commons-httpclient/ with org.apache.commons.httpclient/ etc, right?
>
> And what of jars that contain multiple packages of code?
The repository FQDN doesn't need to match the java package name(s).
Just follow similar Namespace rules.
> > What I'm suggesting is *much* more than resource organization, and
> > multiple repositories. Using a de-centralized model for
repositories,
> > allows maven projects to resolve dependencies without needing to
know
> > the exact address of a server.
> This I don't get. How do you communicate with something via TCP/IP
without
> knowing it's address?
The idea is we come up with a standard service name - 'mavenrepo' (for
arguments sake). I can set up my DNS record to have ->
_mavenrepo._tcp.mikestanley.org point to a number of different
servers/ports such as mavenrepo1.mikestanley.org:80, and
mavenrepo2.mikestanley.org:8000
The DNS lookup will resolve _manverepo._tcp.mikestanley.org to whatever
my domain is set up for. I can move the repository, add more servers,
load balance requests, or even move to a completely different domain say
www.ibiblio.com/maven all without forcing any changes in Maven clients
and changes to dependent maven project's project.xml file.
Also by allowing developers to manage their own repositories, then can
deploy without effecting the "master production" repository.
> > In a de-centralized model, as a developer, I can maintain my own
> > repository (or repository cluster for my organization), manage my
own
> > distributions, and provide them immediately across *ALL* maven
projects
> > without each project needing to update any properties!
> This is the part I don't get. I wave the magic wand and
presto-distributo
> everyone now has a new repository they don't necessarily know
about.....
They need to know the projects domain, but not the details of the server
location. Look at the Jabber Protocol dnssrv and s2s service for an
example of how the DNS SRV spec can be used for this type of thing.
It is very "magic wand"-ish and therefore can be very cool.
- Mike
> --
> dIon Gillard, Multitask Consulting
> Blog: http://www.freeroller.net/page/dion/Weblog
> Work: http://www.multitask.com.au
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
RE: Update
Posted by di...@multitask.com.au.
"Stanley,Michael P." <ms...@mitre.org> wrote on 04/03/2003 11:54:00 AM:
> Look at the directory now. From the root directory there is a list of
I look at the directory very often. Probably more than anyone else.
> project names. There is absolutely no organization, other than an
> alphabetical listing by project name. A repository structured around
> FQDNs will provide an organized hierarchy of resources, help avoid
Not all java code has a FQDN associated with it. Did you mean the package
name?
> project collision, and help identify resource providers. It will simply
> be more manageable. It is more than a formatted string. Repository
> organization guidelines provide much more than guaranteed uniqueness.
> Keep all your files on your computer in one directory for 1 year, and
> tell me how easy it is to find things or try programming with no package
> names. By enforcing some basic guidelines, repositories become easier
> for human/program to navigate.
I agree, but what are the guidelines you mention? I haven't seen them in
any detail except FQDN.
It won't make the list of directories on the repo any short, as
commons-logging/ will be replaced with org.apache.commons.logging/,
commons-httpclient/ with org.apache.commons.httpclient/ etc, right?
And what of jars that contain multiple packages of code?
> What I'm suggesting is *much* more than resource organization, and
> multiple repositories. Using a de-centralized model for repositories,
> allows maven projects to resolve dependencies without needing to know
> the exact address of a server.
This I don't get. How do you communicate with something via TCP/IP without
knowing it's address?
> In a de-centralized model, as a developer, I can maintain my own
> repository (or repository cluster for my organization), manage my own
> distributions, and provide them immediately across *ALL* maven projects
> without each project needing to update any properties!
This is the part I don't get. I wave the magic wand and presto-distributo
everyone now has a new repository they don't necessarily know about.....
--
dIon Gillard, Multitask Consulting
Blog: http://www.freeroller.net/page/dion/Weblog
Work: http://www.multitask.com.au
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
Look at the directory now. From the root directory there is a list of
project names. There is absolutely no organization, other than an
alphabetical listing by project name. A repository structured around
FQDNs will provide an organized hierarchy of resources, help avoid
project collision, and help identify resource providers. It will simply
be more manageable. It is more than a formatted string. Repository
organization guidelines provide much more than guaranteed uniqueness.
Keep all your files on your computer in one directory for 1 year, and
tell me how easy it is to find things or try programming with no package
names. By enforcing some basic guidelines, repositories become easier
for human/program to navigate.
What I'm suggesting is *much* more than resource organization, and
multiple repositories. Using a de-centralized model for repositories,
allows maven projects to resolve dependencies without needing to know
the exact address of a server.
In a de-centralized model, as a developer, I can maintain my own
repository (or repository cluster for my organization), manage my own
distributions, and provide them immediately across *ALL* maven projects
without each project needing to update any properties!
- Mike
> -----Original Message-----
> From: dion@multitask.com.au [mailto:dion@multitask.com.au]
> Sent: Monday, March 03, 2003 5:57 PM
> To: Turbine Maven Developers List
> Subject: Re: Update
>
> Mike (and Henning),
>
> if a string is not 'scalable', how is another formatted string more
> scalable?
>
> I'm obviously missing something. Multiple repositories exist now, so
> there's not a "everything in one repository on the planet" problem.
>
> What is it I'm missing?
> --
> dIon Gillard, Multitask Consulting
> Blog: http://www.freeroller.net/page/dion/Weblog
> Work: http://www.multitask.com.au
>
>
> "Henning P. Schmiedehausen" <hp...@intermeta.de> wrote on 04/03/2003
> 09:44:42 AM:
>
> > "Stanley,Michael P." <ms...@mitre.org> writes:
> >
> > >> groupId is whatever someone chooses it to be. in the case of
> > >> commons-collections, the groupId is commons-collections.
> >
> > >But that's kind of my point, this isn't scalable. A Project ID is
not
> > >necessarily unique. The large the repository grows the more
> > >unmanageable it will become.
> >
> > Jason didn't understand this in the pre4 time frame. What makes you
> > think that suddently he changed his mind?
> >
> > The whole "everything in one repository on the planet" approach is
> > flawed. That's what I'm saying for four month now. And Jason gave me
a
> > "whiner" label because of that.
> >
> > Regards
> > Henning
> >
> > --
> > Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
> > hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
> >
> > Java, perl, Solaris, Linux, xSP Consulting, Web Services
> > freelance consultant -- Jakarta Turbine Development -- hero for
hire
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> turbine-maven-dev-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
Re: Update
Posted by di...@multitask.com.au.
Mike (and Henning),
if a string is not 'scalable', how is another formatted string more
scalable?
I'm obviously missing something. Multiple repositories exist now, so
there's not a "everything in one repository on the planet" problem.
What is it I'm missing?
--
dIon Gillard, Multitask Consulting
Blog: http://www.freeroller.net/page/dion/Weblog
Work: http://www.multitask.com.au
"Henning P. Schmiedehausen" <hp...@intermeta.de> wrote on 04/03/2003
09:44:42 AM:
> "Stanley,Michael P." <ms...@mitre.org> writes:
>
> >> groupId is whatever someone chooses it to be. in the case of
> >> commons-collections, the groupId is commons-collections.
>
> >But that's kind of my point, this isn't scalable. A Project ID is not
> >necessarily unique. The large the repository grows the more
> >unmanageable it will become.
>
> Jason didn't understand this in the pre4 time frame. What makes you
> think that suddently he changed his mind?
>
> The whole "everything in one repository on the planet" approach is
> flawed. That's what I'm saying for four month now. And Jason gave me a
> "whiner" label because of that.
>
> Regards
> Henning
>
> --
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
> hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
>
> Java, perl, Solaris, Linux, xSP Consulting, Web Services
> freelance consultant -- Jakarta Turbine Development -- hero for hire
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
>
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
> >> groupId is whatever someone chooses it to be. in the case of
> >> commons-collections, the groupId is commons-collections.
>
> >But that's kind of my point, this isn't scalable. A Project ID is
not
> >necessarily unique. The large the repository grows the more
> >unmanageable it will become.
>
> Jason didn't understand this in the pre4 time frame. What makes you
> think that suddently he changed his mind?
Listen. I'm new to Maven. Whatever baggage is exists in this project
is not my concern. Maven is great and has a lot of potential. I see
room for a possible improvement and I'm trying to articulate that as
best as possible. After all this is open source. Honestly, I'm not
that concerned wit pre4 time frame (obviously any long lasting design
decisions that were made, are explainable). I *DO* care about the
future roadmap! I'm not throwing mud, I'm trying to help.
Maybe Jason didn't see this before, maybe he sees it better now, maybe
it was articulated poorly before, maybe it still needs to be explained
better, whatever the case lets just keep the discussion technical. If
someone doesn't agree, convince them. If you can't, don't whine, keep
trying, or fork off ;-)
> The whole "everything in one repository on the planet" approach is
> flawed. That's what I'm saying for four month now. And Jason gave me a
> "whiner" label because of that.
No offense, but I would have to give this email a "whiner" label myself,
and I've only been on this list several days.
Basically what I'm trying to say is, I have no personal feelings
involved. I think a de-centralized repository approach would be
extremely COOL! I will work with everyone on this list to formalize the
idea into a solid design, that hopefully will turn into +1's across the
board :-)
Nothing personal, just ideas -
- Mike
>
> Regards
> Henning
>
> --
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
> hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
>
> Java, perl, Solaris, Linux, xSP Consulting, Web Services
> freelance consultant -- Jakarta Turbine Development -- hero for hire
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
Re: Update
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
"Stanley,Michael P." <ms...@mitre.org> writes:
>> groupId is whatever someone chooses it to be. in the case of
>> commons-collections, the groupId is commons-collections.
>But that's kind of my point, this isn't scalable. A Project ID is not
>necessarily unique. The large the repository grows the more
>unmanageable it will become.
Jason didn't understand this in the pre4 time frame. What makes you
think that suddently he changed his mind?
The whole "everything in one repository on the planet" approach is
flawed. That's what I'm saying for four month now. And Jason gave me a
"whiner" label because of that.
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
RE: Update
Posted by John Casey <jd...@commonjava.org>.
<snip/>
> The more I talk about this the more strongly I feel - groupID should be
> enforced.
>
> - Mike
>
For what it's worth, I'd +1000 Mike's idea. I haven't read the DNS SRV
rfc, but his description does seem to address three important points:
1. Managing repository lists from a build.properties or
project.properties standpoint quickly becomes arduous. It's just not
practical to assume that all dependencies can (or should) be served by
one site. Look at the problems we're having with licensing and the Sun
jars...if we had a lookup mechanism that encapsulated multiple repo's,
we could maybe build on that to handle licensing click-throughs, etc.
2. If I have the ability to control the repository serving my project's
jars, I have the ability to maintain those jar offerings. This relieves
the core Maven team of the increasingly heavy burden of replying to the
[ibiblio-jar-request] messages...instead, just throw your jar up on your
own server[s] and maintain it.
3. If we use the ${maven.final.name} as a unique key for a jar
file/project/anything else, we need a way of guaranteeing that this is
in fact a unique id. This is related to a sequence id generator for a
database with many servers in a cluster...how do you generate an id that
you know will be unique? The answer is either to control the generation
via a central mechanism (single point of failure; load scaling issues),
or implement some sort of (enforced!) namespacing.
Although I'm currently in the middle of a pretty aggressive production
rollout, I'd be perfectly willing to supply what little free time I have
to the implementation efforts for this mechanism...we just need to flesh
it out a little more, and get the bigwigs' approval (JVZ et al)... ;-)
Just my 2c.
John
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
> > Then I must have missed something. I presumed that the groupId, in
> > general, would be more closely related to the domain name like java
> > packages. I.E. Jakarta Commons would *all* be apart of the groupId
> > org.apache.commons. A superior solution would be a Unique ID
created
> > using project name and domain name ->
> > commons-collections@mavenrepo.apache.org
> groupId is whatever someone chooses it to be. in the case of
> commons-collections, the groupId is commons-collections.
But that's kind of my point, this isn't scalable. A Project ID is not
necessarily unique. The large the repository grows the more
unmanageable it will become.
>
> [snip]
> > This setup can provide immediate availability of dependencies. For
> > example, say I create a reusable component 'coolWidget'. Currently
I
> > would need to request that the coolWidget be added to the central
> > repository. However, if I had a maven repository service set up on
my
> > own domain 'org.mikestanley', a Maven project can now add the
dependency
> > -> org.mikestanley.coolWidget@ mikestanley.org
> They can do this now, by adding your repo into their maven.repo.remote
> property in ~/build.properties.
Not the same. This creates a single point of failure, doesn't
effectively abstract the clients from the location of the resource, and
fails to provide large scalability. If I have a large project that has
dependencies on 40 different components, that are located at 40
different repositories, I have to maintain that list, and ensure that
each host doesn't unexpectedly get moved.
Providing a list of centralized hosts does not make a distributed
service. I believe the repository should be a distributed service.
Maven.repo.remote is great for near term and I am excited that it
exists. I just learned of it today. My proposal - design a message
driven distributed repository.
> > Can you elaborate? I assume you mean the subdirectories of a group
will
> > be able to have additional groups other than jar & distributions.
This
> > doesn't help the conflicts at the top level. Are 100% confident
that
> > Jakarta is the only developer community to have a project named
> > "commons-email"? And are you confident that as Maven becomes widely
> > adopted there will be no conflicts? Most of the projects I've built
> > with Maven don't even mention groupID in their dependency list.
> They don't need to. Most simply mention the 'legacy' format: <id></id>
The more I talk about this the more strongly I feel - groupID should be
enforced.
- Mike
>
> --
> dIon Gillard, Multitask Consulting
> Blog: http://www.freeroller.net/page/dion/Weblog
> Work: http://www.multitask.com.au
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
RE: Update
Posted by di...@multitask.com.au.
"Stanley,Michael P." <ms...@mitre.org> wrote on 04/03/2003 02:38:00 AM:
> Then I must have missed something. I presumed that the groupId, in
> general, would be more closely related to the domain name like java
> packages. I.E. Jakarta Commons would *all* be apart of the groupId
> org.apache.commons. A superior solution would be a Unique ID created
> using project name and domain name ->
> commons-collections@mavenrepo.apache.org
groupId is whatever someone chooses it to be. in the case of
commons-collections, the groupId is commons-collections.
[snip]
> This setup can provide immediate availability of dependencies. For
> example, say I create a reusable component 'coolWidget'. Currently I
> would need to request that the coolWidget be added to the central
> repository. However, if I had a maven repository service set up on my
> own domain 'org.mikestanley', a Maven project can now add the dependency
> -> org.mikestanley.coolWidget@ mikestanley.org
They can do this now, by adding your repo into their maven.repo.remote
property in ~/build.properties.
> Can you elaborate? I assume you mean the subdirectories of a group will
> be able to have additional groups other than jar & distributions. This
> doesn't help the conflicts at the top level. Are 100% confident that
> Jakarta is the only developer community to have a project named
> "commons-email"? And are you confident that as Maven becomes widely
> adopted there will be no conflicts? Most of the projects I've built
> with Maven don't even mention groupID in their dependency list.
They don't need to. Most simply mention the 'legacy' format: <id></id>
--
dIon Gillard, Multitask Consulting
Blog: http://www.freeroller.net/page/dion/Weblog
Work: http://www.multitask.com.au
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
> On Mon, 2003-03-03 at 09:23, Stanley,Michael P. wrote:
> > Very cool.
> >
> > After seeing your email the other day (in response to the JBoss
Group),
> > I became very curious about ClassWorlds and dug through the code.
It's
> > a nice project, and I'm excited to see it integrated into Maven.
> >
> > It be nice to have a list of things that are planner (or currently
being
> > worked on by others) to get an idea of where Maven is heading. One
> > question I have, what is the future of repositories?
>
> As I posted yesterday, I will try to get a roadmap together.
Cool.
> > In the near term it would be nice to have a prioritized search list
for
> > remote repositories.
>
> You can already do that, if there isn't something in the user guide
I'll
> add it.
Sorry, I'm still feeling my way around :-)
> > This could be very useful for internal development
> > (set up an intranet repository for developers to share reusable
> > components, and provide quicker access to remote libraries). This
then
> > introduces mirrors that break the mirror rules.
> >
> > It seems that group id is almost abandoned, or at least a much
> > unpracticed behavior.
>
> The group id is used widely and is the preferred approach in fact.
Then I must have missed something. I presumed that the groupId, in
general, would be more closely related to the domain name like java
packages. I.E. Jakarta Commons would *all* be apart of the groupId
org.apache.commons. A superior solution would be a Unique ID created
using project name and domain name ->
commons-collections@mavenrepo.apache.org
This is related to the DNS SRV, and the more I think about it, I am
proposing a messaging based repository.
Unique IDs can be <groupID>.<projectID>@<repository domain>
Implementation of the DNS SRV, provides infrastructure for a distributed
repository with dynamic lookups. Default servers like the one hosted at
Ibiblio are still very useful and provide a fallback (or default host,
where the dynamic search is the fallback).
More information on the DNS SRV protocol can be found here
http://www.ietf.org/rfc/rfc2782.txt
This setup can provide immediate availability of dependencies. For
example, say I create a reusable component 'coolWidget'. Currently I
would need to request that the coolWidget be added to the central
repository. However, if I had a maven repository service set up on my
own domain 'org.mikestanley', a Maven project can now add the dependency
-> org.mikestanley.coolWidget@ mikestanley.org
My coolWidget is immediately available to Maven projects. In addition,
once the best fit repository is located, communication can be set up
between client and host to negotiate available versions, permissions,
etc.
The DNS SRV provides dynamic resolution to the service
_maven_tcp.mikestanley.org. This can be a single server, cluster,
whatever. This allows repository administrators to "use several servers
for a single domain, to move services from host to host with little
fuss, and to designate some hosts as primary servers for a service and
others as backups."
> > I think this is also crucial and should be
> > enforced. As the repository grows, namespaces become extremely
> > important. Unique Project ID's just isn't good enough. Also, even
now
> > the repository is very large. Breaking things into sub directories
> > would clean it up a bit and allow for better scalability.
>
> Arbitrarily nested groups are coming as a means to allow projects to
> organize as they please. This will take a bit of work.
Can you elaborate? I assume you mean the subdirectories of a group will
be able to have additional groups other than jar & distributions. This
doesn't help the conflicts at the top level. Are 100% confident that
Jakarta is the only developer community to have a project named
"commons-email"? And are you confident that as Maven becomes widely
adopted there will be no conflicts? Most of the projects I've built
with Maven don't even mention groupID in their dependency list.
>
> > In the future - how about a repository search algorithm based on the
> > convention that group id can equal the domain name. It would then
be
> > possible to implement a repository service lookup utilizing the DNS
> > service protocol. Similar to how Jabber handles s2s communication.
> >
> > Thoughts?
>
> I'm not really sure what that buys us. Can you explain in more detail?
See above.
- Mike
>
>
> > - Mike
> >
> > > -----Original Message-----
> > > From: Jason van Zyl [mailto:jason@maven.org]
> > > Sent: Monday, March 03, 2003 2:07 AM
> > > To: Turbine Maven Developers List
> > > Subject: Update
> > >
> > > Hi,
> > >
> > > I'm at the point now where I'm debugging the isolated classloaders
per
> > > plugin. I have completely faked out the AntClassLoader with a
> > > replacement that simply delegates to ClassWorlds. Many goals can
run
> > and
> > > each plugin has a classloader so I'm just sorting out attaching
the
> > > right classloader to the right context. Made lots of progress this
> > > weekend but it will take me a couple more days to finish the
> > ClassWorlds
> > > conversion.
> > >
> > > jvz.
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > turbine-maven-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > turbine-maven-dev-help@jakarta.apache.org
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-maven-dev-
> help@jakarta.apache.org
> --
> jvz.
>
> Jason van Zyl
> jason@zenplex.com
> http://tambora.zenplex.org
>
> In short, man creates for himself a new religion of a rational
> and technical order to justify his work and to be justified in it.
>
> -- Jacques Ellul, The Technological Society
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
RE: Update
Posted by Jason van Zyl <ja...@zenplex.com>.
On Mon, 2003-03-03 at 09:23, Stanley,Michael P. wrote:
> Very cool.
>
> After seeing your email the other day (in response to the JBoss Group),
> I became very curious about ClassWorlds and dug through the code. It's
> a nice project, and I'm excited to see it integrated into Maven.
>
> It be nice to have a list of things that are planner (or currently being
> worked on by others) to get an idea of where Maven is heading. One
> question I have, what is the future of repositories?
As I posted yesterday, I will try to get a roadmap together.
> In the near term it would be nice to have a prioritized search list for
> remote repositories.
You can already do that, if there isn't something in the user guide I'll
add it.
> This could be very useful for internal development
> (set up an intranet repository for developers to share reusable
> components, and provide quicker access to remote libraries). This then
> introduces mirrors that break the mirror rules.
>
> It seems that group id is almost abandoned, or at least a much
> unpracticed behavior.
The group id is used widely and is the preferred approach in fact.
> I think this is also crucial and should be
> enforced. As the repository grows, namespaces become extremely
> important. Unique Project ID's just isn't good enough. Also, even now
> the repository is very large. Breaking things into sub directories
> would clean it up a bit and allow for better scalability.
Arbitrarily nested groups are coming as a means to allow projects to
organize as they please. This will take a bit of work.
> In the future - how about a repository search algorithm based on the
> convention that group id can equal the domain name. It would then be
> possible to implement a repository service lookup utilizing the DNS
> service protocol. Similar to how Jabber handles s2s communication.
>
> Thoughts?
I'm not really sure what that buys us. Can you explain in more detail?
> - Mike
>
> > -----Original Message-----
> > From: Jason van Zyl [mailto:jason@maven.org]
> > Sent: Monday, March 03, 2003 2:07 AM
> > To: Turbine Maven Developers List
> > Subject: Update
> >
> > Hi,
> >
> > I'm at the point now where I'm debugging the isolated classloaders per
> > plugin. I have completely faked out the AntClassLoader with a
> > replacement that simply delegates to ClassWorlds. Many goals can run
> and
> > each plugin has a classloader so I'm just sorting out attaching the
> > right classloader to the right context. Made lots of progress this
> > weekend but it will take me a couple more days to finish the
> ClassWorlds
> > conversion.
> >
> > jvz.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> turbine-maven-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> turbine-maven-dev-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-maven-dev-help@jakarta.apache.org
--
jvz.
Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
RE: Update
Posted by "Stanley,Michael P." <ms...@mitre.org>.
Very cool.
After seeing your email the other day (in response to the JBoss Group),
I became very curious about ClassWorlds and dug through the code. It's
a nice project, and I'm excited to see it integrated into Maven.
It be nice to have a list of things that are planner (or currently being
worked on by others) to get an idea of where Maven is heading. One
question I have, what is the future of repositories?
In the near term it would be nice to have a prioritized search list for
remote repositories. This could be very useful for internal development
(set up an intranet repository for developers to share reusable
components, and provide quicker access to remote libraries). This then
introduces mirrors that break the mirror rules.
It seems that group id is almost abandoned, or at least a much
unpracticed behavior. I think this is also crucial and should be
enforced. As the repository grows, namespaces become extremely
important. Unique Project ID's just isn't good enough. Also, even now
the repository is very large. Breaking things into sub directories
would clean it up a bit and allow for better scalability.
In the future - how about a repository search algorithm based on the
convention that group id can equal the domain name. It would then be
possible to implement a repository service lookup utilizing the DNS
service protocol. Similar to how Jabber handles s2s communication.
Thoughts?
- Mike
> -----Original Message-----
> From: Jason van Zyl [mailto:jason@maven.org]
> Sent: Monday, March 03, 2003 2:07 AM
> To: Turbine Maven Developers List
> Subject: Update
>
> Hi,
>
> I'm at the point now where I'm debugging the isolated classloaders per
> plugin. I have completely faked out the AntClassLoader with a
> replacement that simply delegates to ClassWorlds. Many goals can run
and
> each plugin has a classloader so I'm just sorting out attaching the
> right classloader to the right context. Made lots of progress this
> weekend but it will take me a couple more days to finish the
ClassWorlds
> conversion.
>
> jvz.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
Re: Update
Posted by di...@multitask.com.au.
Great stuff!
--
dIon Gillard, Multitask Consulting
Blog: http://www.freeroller.net/page/dion/Weblog
Work: http://www.multitask.com.au
Jason van Zyl <ja...@maven.org> wrote on 03/03/2003 06:07:07 PM:
> Hi,
>
> I'm at the point now where I'm debugging the isolated classloaders per
> plugin. I have completely faked out the AntClassLoader with a
> replacement that simply delegates to ClassWorlds. Many goals can run and
> each plugin has a classloader so I'm just sorting out attaching the
> right classloader to the right context. Made lots of progress this
> weekend but it will take me a couple more days to finish the ClassWorlds
> conversion.
>
> jvz.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org
>