From cf267b6c71e0c040f3efa922c6cf999c26d98f10 Mon Sep 17 00:00:00 2001 From: michal Date: Thu, 3 Jul 2003 20:41:36 +0000 Subject: [PATCH] Added multiproject 'install', 'install-snapshot', 'deploy' and 'deploy-snapshot' facility git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113577 13f79535-47bb-0310-9956-ffa450edef68 --- multiproject/plugin.jelly | 104 ++++++++++++++++++++++++++++++ multiproject/plugin.properties | 4 +- multiproject/project.xml | 9 +++ multiproject/xdocs/changes.xml | 4 ++ multiproject/xdocs/goals.xml | 61 ++++++++++++++++-- multiproject/xdocs/properties.xml | 24 +++++++ 6 files changed, 198 insertions(+), 8 deletions(-) diff --git a/multiproject/plugin.jelly b/multiproject/plugin.jelly index 2228f7d5..b34404a0 100644 --- a/multiproject/plugin.jelly +++ b/multiproject/plugin.jelly @@ -41,5 +41,109 @@ maven -Dgoal=clean multiproject:goal ignoreFailures="${maven.multiproject.ignoreFailures}" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/multiproject/plugin.properties b/multiproject/plugin.properties index bff153cc..5c5fa285 100644 --- a/multiproject/plugin.properties +++ b/multiproject/plugin.properties @@ -6,4 +6,6 @@ maven.multiproject.basedir=${basedir} maven.multiproject.includes=*/project.xml maven.multiproject.excludes= -maven.multiproject.ignoreFailures=false \ No newline at end of file +maven.multiproject.ignoreFailures=false + +maven.multiproject.type=jar \ No newline at end of file diff --git a/multiproject/project.xml b/multiproject/project.xml index 13270692..d3a0956a 100644 --- a/multiproject/project.xml +++ b/multiproject/project.xml @@ -23,5 +23,14 @@ Java Developer + + Michal Maczka + dion + michal.maczka@dimatics.com + Dimatics + + Java Developer + + diff --git a/multiproject/xdocs/changes.xml b/multiproject/xdocs/changes.xml index d2159032..d1b079f5 100644 --- a/multiproject/xdocs/changes.xml +++ b/multiproject/xdocs/changes.xml @@ -7,6 +7,10 @@ + + Added multiproject 'install', 'install-snapshot', 'deploy' and 'deploy-snapshot' + facility + Rename plugin from reactor to multiproject to reduce confusion diff --git a/multiproject/xdocs/goals.xml b/multiproject/xdocs/goals.xml index 8efafdaf..969298fe 100644 --- a/multiproject/xdocs/goals.xml +++ b/multiproject/xdocs/goals.xml @@ -4,6 +4,7 @@ Maven Multi-Project Plug-in Goals dIon Gillard + Michal Maczka @@ -12,12 +13,58 @@ Run the site goal of all projects - multiproject:site - Run the site goal of all projects + multiproject:install + + Run 'artifact':install goal for all project. +
+ 'artifact' is replaced by the value of property + maven.multiproject.type which should be set + individualy for each project. +
+ E.g. if we have projects A, B and C + with following settiing: +
    +
  1. A: maven.multiproject.type=war
  2. +
  3. B: maven.multiproject.type=ejb
  4. +
  5. C: maven.multiproject.type=jar
  6. +
+
+ Following goals will be run: +
    +
  1. A: war:install
  2. +
  3. B: ejb:install
  4. +
  5. C: jar:install
  6. +
+
- - multiproject:goal - + + multiproject:install-snapshot + + Run 'artifact':install-snapshot goal for all projects. + + + + multiproject:deploy + + Run 'artifact':install-snapshot goal for all projects. + + + + multiproject:deploy-snapshot + + Run 'artifact':install-snapshot goal for all projects. + + + + multiproject:artifact + + Run 'artifact':'artifact' goal for all projects. + + + multiproject:goal + Run the comma separated list of goals provided by the variable goal for all projects e.g. @@ -27,8 +74,8 @@ maven -Dgoal=clean,java:compile,test multiproject:goal - - + +
\ No newline at end of file diff --git a/multiproject/xdocs/properties.xml b/multiproject/xdocs/properties.xml index b9d8c587..97510b8c 100644 --- a/multiproject/xdocs/properties.xml +++ b/multiproject/xdocs/properties.xml @@ -65,6 +65,30 @@

+ + + maven.multiproject.type + No + +

+ This property should be set for + each subproject separately. + It allows to control the type of + artifact (deliverable) which will + be built, installed or deployed by the reactor. +
+ E.g. this property is set to war + when multiproject will build the project + it will try to create artifact to attain a goal: + war:war. If it is set to ear + the goal which will deliver an artifact will be + ear:ear +

+

+ Default value is jar. +

+ +