mirror of https://github.com/apache/maven.git
avoid redirects as they are not compat with maven 1.0.2
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@367530 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ac8b8442b6
commit
984c496ebe
|
@ -1,20 +1,24 @@
|
||||||
## IF YOU MODIFY THIS FILE, MAKE SURE IT GETS UPDATED IN SVN
|
## IF YOU MODIFY THIS FILE, MAKE SURE IT GETS UPDATED IN SVN
|
||||||
|
|
||||||
|
|
||||||
|
## MAVEN 1.0.2 doesn't deal with redirects. Avoid them
|
||||||
|
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
#RewriteLog c:/home/brett/scm/codehaus/maven/maven/rewrite.log
|
#RewriteLog c:/home/brett/scm/codehaus/maven/maven/rewrite.log
|
||||||
#RewriteLogLevel 9
|
#RewriteLogLevel 9
|
||||||
|
|
||||||
RewriteBase /maven/
|
RewriteBase /maven/
|
||||||
|
|
||||||
RedirectMatch permanent /dom4j/jars/dom4j-(.+).jar$ http://www.ibiblio.org/maven2/dom4j/dom4j/$1/dom4j-$1.jar
|
RewriteRule /dom4j/jars/dom4j-(.+).jar$ /maven2/dom4j/dom4j/$1/dom4j-$1.jar [L]
|
||||||
RedirectMatch permanent /cactus/jars/cactus-([0-9]+)-(.+).jar$ http://www.ibiblio.org/maven2/cactus/cactus/$1-$2/cactus-$1-$2.jar
|
RewriteRule /cactus/jars/cactus-([0-9]+)-(.+).jar$ /maven2/cactus/cactus/$1-$2/cactus-$1-$2.jar [L]
|
||||||
RedirectMatch permanent /commons-logging/jars/commons-logging-1.1-dev.jar http://www.ibiblio.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
|
RewriteRule /commons-logging/jars/commons-logging-1.1-dev.jar /maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar [L]
|
||||||
RedirectMatch permanent /strutstestcase/jars/strutstestcase-(.+).jar http://www.ibiblio.org/maven2/strutstestcase/strutstestcase/$1/strutstestcase-$1.jar
|
RewriteRule /strutstestcase/jars/strutstestcase-(.+).jar /maven2/strutstestcase/strutstestcase/$1/strutstestcase-$1.jar [L]
|
||||||
RedirectMatch permanent /stax-utils/jars/stax-utils-snapshot-(.+).jar http://www.ibiblio.org/maven2/stax-utils/stax-utils/snapshot-$1/stax-utils-snapshot-$1.jar
|
RewriteRule /stax-utils/jars/stax-utils-snapshot-(.+).jar /maven2/stax-utils/stax-utils/snapshot-$1/stax-utils-snapshot-$1.jar [L]
|
||||||
|
|
||||||
# rewrite // to /
|
# rewrite // to /
|
||||||
#RewriteRule ^/maven//(.*) /maven/$1
|
#RewriteRule ^/maven//(.*) /maven/$1
|
||||||
RewriteRule ^/(.*)$ /maven/$1 [R]
|
RewriteRule ^/(.*)$ /maven/$1
|
||||||
|
#RewriteRule ^/(.*)$ /maven/$1 [R]
|
||||||
# rewrite mapped artifact
|
# rewrite mapped artifact
|
||||||
#RewriteRule ^(.*)(\.sha1)$ ${artifact-map:$1|$1}$2 [PT]
|
#RewriteRule ^(.*)(\.sha1)$ ${artifact-map:$1|$1}$2 [PT]
|
||||||
#RewriteRule ^(.*)(\.md5)$ ${artifact-map:$1|$1}$2 [PT]
|
#RewriteRule ^(.*)(\.md5)$ ${artifact-map:$1|$1}$2 [PT]
|
||||||
|
@ -25,7 +29,8 @@ RewriteRule ^([^/]+)/(jar|pom|config|distribution|java-source|dist|dtd|ear|ejb|l
|
||||||
# rewrite dotted groups
|
# rewrite dotted groups
|
||||||
RewriteRule ^r/([^/]+)\.(.*)$ r/$1/$2 [PT] [N]
|
RewriteRule ^r/([^/]+)\.(.*)$ r/$1/$2 [PT] [N]
|
||||||
# final redirect
|
# final redirect
|
||||||
RewriteRule ^r/(.*)$ /maven2/$1 [R]
|
RewriteRule ^r/(.*)$ /maven2/$1
|
||||||
|
#RewriteRule ^r/(.*)$ /maven2/$ [R]
|
||||||
|
|
||||||
# rewrite for browsing
|
# rewrite for browsing
|
||||||
#RewriteRule ^/maven$ /maven2/ [R]
|
#RewriteRule ^/maven$ /maven2/ [R]
|
||||||
|
|
Loading…
Reference in New Issue