You are viewing a plain text version of this content. The canonical link for it is here.
Posted to community@apache.org by Stefano Mazzocchi <st...@apache.org> on 2003/03/01 12:08:36 UTC

Re: [proposal] daedalus jar repository

dion@multitask.com.au wrote:
> As an aside, one of the issues we had when coming up with Maven's 
> repository format, is that often artifacts (jars, wars, ears etc), will
> get left on the filesystem outside of a repository.
>  
> Think rpms for example.
>  
> Having a file encode <project>-<artifact>-<version>.type has been very 
> useful for us.
>  
> Yes, it's often different from what the project creates and distributes, 
> but I (and others) have been bitten by
> commons-logging.jar, struts.jar, junit.jar so many times, that seeing 
> log4j-1.2.5.jar is a godsend.

I totally share this experience and support the concept.

-- 
Stefano Mazzocchi                               <st...@apache.org>
    Pluralitas non est ponenda sine necessitate [William of Ockham]
--------------------------------------------------------------------



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


RE: [ASF-Repository]Jars with/without version. was Re: [proposal] daedalus jar repository

Posted by "Noel J. Bergman" <no...@devtech.com>.
Craig,

> If we make the two choices (which version and which local name)
> independent request parameters, we've covered all the
> combinations and permuations.

The idea I had was for the request URI to be project based.  The response to
that stable URI would be descriptor content.  Part of the descriptor content
would provide version and package naming information (I expect that this
would all be XML-based, but it just needs to be some standard format).  With
a static content server, the client parses the response, locates the desired
version, pulls out the necessary download URI.  The mapping from package and
version strings is not required to be encoded within the download URI.

ref:
http://archives.apache.org/eyebrowse/ReadMsg?listName=community@apache.org&m
sgNo=1781

	--- Noel


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


Re: [ASF-Repository]Jars with/without version. was Re: [proposal] daedalus jar repository

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Sat, 1 Mar 2003, Nick Chalko wrote:

> I think we should handle these cases
>
>     * uri to find
>           o Specific version
>           o latest released.  (blank )
>           o latest nightly
>     * Jar name on local filesystem
>           o with complete version
>           o without version.
>
> Seems like a straight forward enough to handle all of these on the
> client or the server side.
>

If we make the two choices (which version and which local name)
independent request parameters, we've covered all the combinations and
permuations.

> R,
> Nick

Craig

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


RE: [ASF-Repository]Jars with/without version. was Re: [proposal] daedalus jar repository

Posted by "Noel J. Bergman" <no...@devtech.com>.
Nick,

> Two problems here
>     * The uri to find a needed jar.
>     * How to store the jar on the local filesystem

Does the URI (request) and descriptor (response) solution I proposed not
address those goals?  That approach decoupled the naming systems.

	--- Noel


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


[ASF-Repository]Jars with/without version. was Re: [proposal] daedalus jar repository

Posted by Nick Chalko <ni...@chalko.com>.
Craig R. McClanahan wrote:

>On Sat, 1 Mar 2003, Stefano Mazzocchi wrote:
>  
>
>>dion@multitask.com.au wrote:
>>    
>>
>>>Having a file encode <project>-<artifact>-<version>.type has been very
>>>useful for us.
>>>
>>>Yes, it's often different from what the project creates and distributes,
>>>but I (and others) have been bitten by
>>>commons-logging.jar, struts.jar, junit.jar so many times, that seeing
>>>log4j-1.2.5.jar is a godsend.
>>>      
>>>
>>I totally share this experience and support the concept.
>>
>>    
>>
>
>I've gotten bit by the opposite problem (changing version number in a JAR
>filename causing broken build scripts) just as often.
>
>Wouldn't a reasonable approach to this problem be to make searches for
>"commons-foo.jar" return the latest released version, while searches for
>"commons-foo-x.y.jar" would return that particular version?  Then, you can
>have it either way.  On the former, one might also support a mode that
>grabs the latest nightly instead of the latest reslease.
>  
>
Two problems here

    * The uri to find a needed jar.
    * How to store the jar on the local filesystem

I think we should handle these cases

    * uri to find
          o Specific version
          o latest released.  (blank )
          o latest nightly
    * Jar name on local filesystem
          o with complete version
          o without version.

Seems like a straight forward enough to handle all of these on the 
client or the server side.

R,
Nick



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


Re: [proposal] daedalus jar repository

Posted by Pete Kazmier <pe...@kazmier.com>.
>>>>> Craig R McClanahan writes:

> Wouldn't a reasonable approach to this problem be to make searches
> for "commons-foo.jar" return the latest released version, while
> searches for "commons-foo-x.y.jar" would return that particular
> version? Then, you can have it either way.  On the former, one might
> also support a mode that grabs the latest nightly instead of the
> latest reslease.

I'd prefer to be explicit to avoid any possible confusion, but I also
see the need to grab the latest released versions of a jar.  With that
said, how about doing something along the lines that we've done in
Maven.  We indicate that we want to use the latest version of a jar by
using "SNAPSHOT" as the version identifier.  Of course, this
identifies only the most recent jar (usually a dev release); however,
there is no reason why another identifier could not be used to
indicate the latest released version of a jar, perhaps "RELEASE"?  For
example:

To grab the latest released version:

    commons-foo-RELEASE.jar

To grab the latest nightly build:

    commons-foo-SNAPSHOT.jar

And of course, to grab a specific version:

    commons-foo-x.y.jar

This avoids any possible ambiguities.

-Pete


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


RE: [proposal] daedalus jar repository

Posted by Danny Angus <da...@apache.org>.
> Wouldn't a reasonable approach to this problem be to make searches for
> "commons-foo.jar" return the latest released version, while searches for
> "commons-foo-x.y.jar" would return that particular version?  Then, you can
> have it either way.  On the former, one might also support a mode that
> grabs the latest nightly instead of the latest reslease.

This sounds reasonable, and it's pretty much what the apache download mirroring does, using a symlink called "project-foo-current.format" to the latest release, and still maintaining numbered versions for those that care. 
Extending this concept to nightlies (nightlys?) could be achieved by using "project-foo-nightly.format".

I'm assuming, without reading all the mail on this topic, that this idea is bound to fit with any structure or naming scheme anyone might wish to propose.

d.



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


Re: [proposal] daedalus jar repository

Posted by Erik Abele <er...@codefaktor.de>.
Dion,

can you please use the newly created repository@apache.org mailing list (thanks, Sam) for this sort of topics?

Thanks and cheers,
Erik

Sam Ruby wrote:
> I'm in a "just do it" kind of mood.
>
> I just created a repository@apache.org mailing list.  Noel is the initial moderator.
>
> If/when there is an infrastructure.apache.org set up, I'll move the list to there.
> (currently it is infrastructure@apache.org).
>
> If there is significant dissent, or the list falls into disuse, I'll simply delete the list.
>
> - Sam Ruby 

dion@multitask.com.au wrote:
> "Craig R. McClanahan" <cr...@apache.org> wrote on 02/03/2003 05:36:38 
> AM:
> 
> [snip]
> 
>>I've gotten bit by the opposite problem (changing version number in a 
> 
> JAR
> 
>>filename causing broken build scripts) just as often.
>>
>>Wouldn't a reasonable approach to this problem be to make searches for
>>"commons-foo.jar" return the latest released version, while searches for
>>"commons-foo-x.y.jar" would return that particular version?  Then, you 
> 
> can
> 
>>have it either way.  On the former, one might also support a mode that
>>grabs the latest nightly instead of the latest reslease.
> 
> Maven has the concept of a 'SNAPSHOT' jar, which is the latest 
> date-timestamped version of an artifact available.
> 
> If tell Maven you depend on a SNAPSHOT, at each build it checks to make 
> sure you have the latest available, and downloads the new one if needed.
> 
> This however doesn't fix the problem, as people can change version numbers 
> on jars to anything they want, possibly a fictitious release.
> 
> 'LATEST' builds are often not reproducible as well.
> --
> dIon Gillard, Multitask Consulting
> Blog:      http://www.freeroller.net/page/dion/Weblog
> Work:      http://www.multitask.com.au
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: community-unsubscribe@apache.org
> For additional commands, e-mail: community-help@apache.org
> 


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


Re: [proposal] daedalus jar repository

Posted by di...@multitask.com.au.
"Craig R. McClanahan" <cr...@apache.org> wrote on 02/03/2003 05:36:38 
AM:

[snip]
> I've gotten bit by the opposite problem (changing version number in a 
JAR
> filename causing broken build scripts) just as often.
> 
> Wouldn't a reasonable approach to this problem be to make searches for
> "commons-foo.jar" return the latest released version, while searches for
> "commons-foo-x.y.jar" would return that particular version?  Then, you 
can
> have it either way.  On the former, one might also support a mode that
> grabs the latest nightly instead of the latest reslease.
Maven has the concept of a 'SNAPSHOT' jar, which is the latest 
date-timestamped version of an artifact available.

If tell Maven you depend on a SNAPSHOT, at each build it checks to make 
sure you have the latest available, and downloads the new one if needed.

This however doesn't fix the problem, as people can change version numbers 
on jars to anything they want, possibly a fictitious release.

'LATEST' builds are often not reproducible as well.
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au




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


Re: [proposal] daedalus jar repository

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Sat, 1 Mar 2003, Stefano Mazzocchi wrote:

> Date: Sat, 01 Mar 2003 12:08:36 +0100
> From: Stefano Mazzocchi <st...@apache.org>
> Reply-To: community@apache.org
> To: community@apache.org
> Subject: Re: [proposal] daedalus jar repository
>
> dion@multitask.com.au wrote:
> > As an aside, one of the issues we had when coming up with Maven's
> > repository format, is that often artifacts (jars, wars, ears etc), will
> > get left on the filesystem outside of a repository.
> >
> > Think rpms for example.
> >
> > Having a file encode <project>-<artifact>-<version>.type has been very
> > useful for us.
> >
> > Yes, it's often different from what the project creates and distributes,
> > but I (and others) have been bitten by
> > commons-logging.jar, struts.jar, junit.jar so many times, that seeing
> > log4j-1.2.5.jar is a godsend.
>
> I totally share this experience and support the concept.
>

I've gotten bit by the opposite problem (changing version number in a JAR
filename causing broken build scripts) just as often.

Wouldn't a reasonable approach to this problem be to make searches for
"commons-foo.jar" return the latest released version, while searches for
"commons-foo-x.y.jar" would return that particular version?  Then, you can
have it either way.  On the former, one might also support a mode that
grabs the latest nightly instead of the latest reslease.

> --
> Stefano Mazzocchi                               <st...@apache.org>
>     Pluralitas non est ponenda sine necessitate [William of Ockham]
> --------------------------------------------------------------------

Craig McClanahan

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


Re: [proposal] daedalus jar repository

Posted by Henri Gomez <hg...@apache.org>.
Stefano Mazzocchi wrote:
> dion@multitask.com.au wrote:
> 
>> As an aside, one of the issues we had when coming up with Maven's 
>> repository format, is that often artifacts (jars, wars, ears etc), will
>> get left on the filesystem outside of a repository.
>>  
>> Think rpms for example.
>>  
>> Having a file encode <project>-<artifact>-<version>.type has been very 
>> useful for us.
>>  
>> Yes, it's often different from what the project creates and 
>> distributes, but I (and others) have been bitten by
>> commons-logging.jar, struts.jar, junit.jar so many times, that seeing 
>> log4j-1.2.5.jar is a godsend.

A big +1 to get version in jar file name :

For instance in jpackage we install all 'small jars in ' :

/usr/share/java/

And make use of symlink :

/usr/share/java/log4j-1.2.7.jar
/usr/share/java/log4j.jar -> /usr/share/java/log4j-1.2.7.jar

When there is many jars in a project, we're using subdir :

/usr/share/java/jsse/jcert-1.0.3.01.jar
/usr/share/java/jsse/jcert.jar -> jcert-1.0.3.01.jar
/usr/share/java/jsse/jnet-1.0.3.01.jar
/usr/share/java/jsse/jnet.jar -> jnet-1.0.3.01.jar
/usr/share/java/jsse/jsse-1.0.3.01.jar
/usr/share/java/jsse/jsse.jar -> jsse-1.0.3.01.jar

As such you could have many differents versions at the same time
in the repository :

ie :

tyrex-0.9.7.jar (for TC 4.0.x)
tyrex-1.0.jar   (for TC 4.1.x)

Regards






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