| 1 |
# Maven rules - transform Maven dependencies and plugins
|
| 2 |
# Format of this file is:
|
| 3 |
# [group] [artifact] [type] [version] [classifier] [scope]
|
| 4 |
# where each element can be either
|
| 5 |
# - the exact string, for example org.apache for the group, or 3.1
|
| 6 |
# for the version. In this case, the element is simply matched
|
| 7 |
# and left as it is
|
| 8 |
# - * (the star character, alone). In this case, anything will
|
| 9 |
# match and be left as it is. For example, using * on the
|
| 10 |
# position of the artifact field will match any artifact id
|
| 11 |
# - a regular expression of the form s/match/replace/
|
| 12 |
# in this case, elements that match are transformed using
|
| 13 |
# the regex rule.
|
| 14 |
# All elements much match before a rule can be applied
|
| 15 |
# Example rule: match jar with groupid= junit, artifactid= junit
|
| 16 |
# and version starting with 3., replacing the version with 3.x
|
| 17 |
# junit junit jar s/3\\..*/3.x/
|
| 18 |
|
| 19 |
junit junit jar s/4\..*/4.x/ * *
|
| 20 |
log4j log4j jar s/1\.2\..*/1.2.x/ * *
|
| 21 |
commons-logging s/commons-logging-api/commons-logging/ * s/.*/debian/ * *
|