Maven Project Administration

Please make "sources" jar available to Maven1 users

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Repository Management
  • Labels:
    None
  • Number of attachments :
    0

Description

Hello guys,

From a previous post I know Maven1 repo is a redirect to maven2 repository content, with path transcripted to match maven2 hierarchy.

commons-collection (as an example) has sources jar in maven2 repo (http://www.ibiblio.org/maven2/commons-collections/commons-collections/3.1/commons-collections-3.1-sources.jar), but I cannot get them using maven1 from http://www.ibiblio.org/maven/commons-collections/java-sources/commons-collections-3.1-sources.jar

Maybe a new Apache rewrite rule may be required for this.

I would also be very interested if someone can give me the rewrite rule used on ibiblio to convert m1 dependency path to m2 repo hierarchy.

Nicolas De Loof

Activity

Hide
nicolas de loof added a comment -

I've found it myself in maven SVN : (maven/components/trunk/maven-meeper/src/bin/ibiblio-htaccess)

The current rewrite rule converts
group/java-sources/artifact-xyz-sources.jar
to
group/artifact/artifact-xyz-java-sources.jar

So please add a rule for java-sources, something like
RewriteRule ^([^/]+)/java-sources/([^0-9]+)-([0-9].+)-sources\.([^0-9]+)(\.md5|\.sha1){0,1}$ r/$1/$3/$4/$3-$4.$5$6 [PT]

Show
nicolas de loof added a comment - I've found it myself in maven SVN : (maven/components/trunk/maven-meeper/src/bin/ibiblio-htaccess) The current rewrite rule converts group/java-sources/artifact-xyz-sources.jar to group/artifact/artifact-xyz-java-sources.jar So please add a rule for java-sources, something like RewriteRule ^([^/]+)/java-sources/([^0-9]+)-([0-9].+)-sources\.([^0-9]+)(\.md5|\.sha1){0,1}$ r/$1/$3/$4/$3-$4.$5$6 [PT]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: