From 4b4af10106a30bff5dcd0fff5dc8d3fcac816feb Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Mon, 11 Mar 2013 23:32:23 +0000 Subject: 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 --- java/bdbstore/build.xml | 1 + java/broker/build.xml | 5 +++++ java/genpom | 10 +++++++++- java/module.xml | 3 ++- 4 files changed, 17 insertions(+), 2 deletions(-) (limited to 'java') diff --git a/java/bdbstore/build.xml b/java/bdbstore/build.xml index 46809f6a90..1a749fab39 100644 --- a/java/bdbstore/build.xml +++ b/java/bdbstore/build.xml @@ -20,6 +20,7 @@ + diff --git a/java/broker/build.xml b/java/broker/build.xml index 8581b7c639..594c55a578 100644 --- a/java/broker/build.xml +++ b/java/broker/build.xml @@ -24,6 +24,11 @@ + + + + + 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: %s %s %s - """ % (opts.group, artifactId, opts.version, scopes.get(artifactId, "compile"))) + if artifactId in opts.optional: + deps.append(""" true +""") + + deps.append(""" +""") + for jar in jars: base, ext = os.path.splitext(os.path.basename(jar)) diff --git a/java/module.xml b/java/module.xml index 1ff0be4621..ce54e108c5 100644 --- a/java/module.xml +++ b/java/module.xml @@ -72,6 +72,7 @@ + @@ -264,7 +265,7 @@ - + -- cgit v1.2.1