summaryrefslogtreecommitdiff
path: root/java/genpom
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2013-03-11 23:32:23 +0000
committerRobert Gemmell <robbie@apache.org>2013-03-11 23:32:23 +0000
commit4b4af10106a30bff5dcd0fff5dc8d3fcac816feb (patch)
tree9390f7ad4c1f963d60c4ad2535a10d3a5fe1acff /java/genpom
parent3e9be40c3517d8b3fee8d8073052428d3fbe705a (diff)
downloadqpid-python-4b4af10106a30bff5dcd0fff5dc8d3fcac816feb.tar.gz
QPID-4645: add the broker-plugins and bdbstore moudles as optional dependencies in the broker pom to simplify their use, make the bdbstore plugin match the others by using provided scope for the brokers modules (and the JE dep)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1455361 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/genpom')
-rwxr-xr-xjava/genpom10
1 files changed, 9 insertions, 1 deletions
diff --git a/java/genpom b/java/genpom
index d18b16cefc..43c0132ecf 100755
--- a/java/genpom
+++ b/java/genpom
@@ -40,6 +40,8 @@ parser.add_option("-s", "--search-path", action="append",
parser.add_option("-S", "--scope", metavar="ARTIFACT=SCOPE", action="append",
default=[],
help="specify scope for an artifact")
+parser.add_option("-O", "--optional", action="append", default=[],
+ help="specify dependencies that are optional")
parser.add_option("-o", "--output")
parser.add_option("-t", "--type", default="jar", help="packaging type")
@@ -113,9 +115,15 @@ for module in module_depends:
<artifactId>%s</artifactId>
<version>%s</version>
<scope>%s</scope>
- </dependency>
""" % (opts.group, artifactId, opts.version,
scopes.get(artifactId, "compile")))
+ if artifactId in opts.optional:
+ deps.append(""" <optional>true</optional>
+""")
+
+ deps.append(""" </dependency>
+""")
+
for jar in jars:
base, ext = os.path.splitext(os.path.basename(jar))