From c4b207628ac34d5662303245fdffbf8f2e8d71ef Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Sun, 29 Sep 2013 17:20:29 +0000 Subject: QPID-5192, QPID-5048: update the maven build in line with previous QPID-5192 commit, generate into the src tree but only when -Dgenerate=true is used Moves the JavaCC invocation in common and the antrun-plugin invocation in broker-core to their own profile so they dont run unless requested. The antrun-plugin in common to be similarly moved when other changes to what its doing later become possible. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1527355 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/java/broker-core/pom.xml | 115 ++++++++++++++++++++---------------------- qpid/java/common/pom.xml | 88 +++++++++++++++----------------- qpid/java/pom.xml | 4 ++ 3 files changed, 99 insertions(+), 108 deletions(-) (limited to 'qpid/java') diff --git a/qpid/java/broker-core/pom.xml b/qpid/java/broker-core/pom.xml index df5b9de121..0e5f486803 100644 --- a/qpid/java/broker-core/pom.xml +++ b/qpid/java/broker-core/pom.xml @@ -27,7 +27,7 @@ qpid-broker-core - ${project.build.directory}/generated-sources/generated-logmessages + ${basedir}/src/main/java @@ -210,65 +210,6 @@ - - org.apache.maven.plugins - maven-antrun-plugin - - - - logmessages-generated - generate-sources - - run - - - - - - - - - - - - - - - - - - velocity - velocity - 1.4 - - - velocity - velocity-dep - 1.4 - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.8 - - - add-source - generate-sources - - add-source - - - - ${generated-logmessages-dir} - - - - - - org.apache.maven.plugins maven-surefire-plugin @@ -280,4 +221,58 @@ + + + generate-sources-broker-core + + + generate + true + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + + generate-sources-broker-core + generate-sources + + run + + + + + + + + + + + + + + + + + + velocity + velocity + 1.4 + + + velocity + velocity-dep + 1.4 + + + + + + + + diff --git a/qpid/java/common/pom.xml b/qpid/java/common/pom.xml index a5ab0cae05..bf944df901 100644 --- a/qpid/java/common/pom.xml +++ b/qpid/java/common/pom.xml @@ -28,9 +28,9 @@ - ${project.build.directory}/generated-sources/generated-amqp-0-8 - ${project.build.directory}/generated-sources/generated-amqp-0-10 - ${project.build.directory}/generated-sources/generated-jms-selector/org/apache/qpid/filter/selector + ${basedir}/src/main/java + ${basedir}/src/main/java + ${basedir}/src/main/java/org/apache/qpid/filter/selector ${project.build.directory}/classes/qpidversion.properties @@ -85,28 +85,6 @@ - - org.codehaus.mojo - javacc-maven-plugin - 2.6 - - - jms-selector-generated - generate-sources - - javacc - - - ${selector.output.dir} - src/main/grammar - - SelectorParser.jj - - - - - - org.apache.maven.plugins maven-antrun-plugin @@ -147,30 +125,44 @@ - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.8 - - - add-source - generate-sources - - add-source - - - - ${generated-amqp-0-8-dir} - ${generated-amqp-0-10-dir} - - - - - - + + + generate-sources-common + + + generate + true + + + + + + org.codehaus.mojo + javacc-maven-plugin + 2.6 + + + jms-selector-generated + generate-sources + + javacc + + + ${selector.output.dir} + src/main/grammar + + SelectorParser.jj + + + + + + + + + + diff --git a/qpid/java/pom.xml b/qpid/java/pom.xml index fb1713bbc7..d3328804ba 100644 --- a/qpid/java/pom.xml +++ b/qpid/java/pom.xml @@ -51,6 +51,10 @@ === Once the Ant build is removed === - Move all the resources to be in the /src/foo/resources folders. + - Make qpidversion.properties in common be a filtered resource instead of generated. + - Get rid of the antrun-plugin execution in common, directly invoke the required java elements. + - Do the above in the generate-sources-common profile instead of current default config. + - Get rid of the antrun-plugin execution in broker-core, directly invoke the required java elements. - Fix the tests not to be dependant on the working dir being the java dir. - Fix the tests not to be dependant on the test config/output dirs being children of qpid.home. - Remove the QBTC output file mechanics, rely on Surefire to do it? -- cgit v1.2.1