From 9f73daab0efb5d4bc375d9ab03fe97485a1ef8ac Mon Sep 17 00:00:00 2001 From: michal Date: Sat, 10 Jan 2004 14:32:59 +0000 Subject: [PATCH] Added "idea:multiproject" goal. (IDEA 4 only). It creates the idea module files (.iml) via reactor and main project which aggregates this modules. Each module has it's own classpath, src and test, traget dir setting etc. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114582 13f79535-47bb-0310-9956-ffa450edef68 --- idea/.cvsignore | 1 + idea/plugin.jelly | 125 ++++++++++++++---- idea/project.xml | 11 +- .../templates/v4/multiproject.jelly | 120 +++++++++++++++++ idea/xdocs/changes.xml | 18 +++ idea/xdocs/goals.xml | 26 +++- idea/xdocs/properties.xml | 44 +++++- 7 files changed, 314 insertions(+), 31 deletions(-) create mode 100644 idea/src/plugin-resources/templates/v4/multiproject.jelly create mode 100644 idea/xdocs/changes.xml diff --git a/idea/.cvsignore b/idea/.cvsignore index e5e33942..f3c0630f 100644 --- a/idea/.cvsignore +++ b/idea/.cvsignore @@ -1,3 +1,4 @@ target velocity.log maven.log +*.iml diff --git a/idea/plugin.jelly b/idea/plugin.jelly index e9af47fd..9f895836 100644 --- a/idea/plugin.jelly +++ b/idea/plugin.jelly @@ -1,39 +1,114 @@ - + - - - - + + + + - + + + - - Creating ${basedir}/${pom.artifactId}.ipr ... + + Creating ${basedir}/${pom.artifactId}.ipr ... - - - + + + - Creating ${basedir}/${pom.artifactId}.iws ... + - - - - - Creating ${basedir}/${pom.artifactId}.iml ... + + Creating ${basedir}/${pom.artifactId}.iws ... - - - - + + + + - + + + + + + + + + + Creating ${basedir}/${pom.artifactId}.iml ... + + + + + + + + + + + + + WARNING: This goal should be used only with IDEA 4. + Property 'maven.idea.project.version' is set to '3' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Creating ${basedir}/${pom.artifactId}.ipr ... + + + + + diff --git a/idea/project.xml b/idea/project.xml index 2108b404..e2e0e508 100644 --- a/idea/project.xml +++ b/idea/project.xml @@ -5,7 +5,7 @@ 3 maven-idea-plugin Maven IDEA Plug-in - 1.2 + 1.3-SNAPSHOT IDEA Plugin for Maven http://maven.apache.org/reference/plugins/idea/ /www/maven.apache.org/reference/plugins/idea/ @@ -42,5 +42,14 @@ Java Developer + + Michal Maczka + michal + michal.maczka@dimatics.com + Dimatics + + Java Developer + + diff --git a/idea/src/plugin-resources/templates/v4/multiproject.jelly b/idea/src/plugin-resources/templates/v4/multiproject.jelly new file mode 100644 index 00000000..bc4032b4 --- /dev/null +++ b/idea/src/plugin-resources/templates/v4/multiproject.jelly @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/idea/xdocs/changes.xml b/idea/xdocs/changes.xml new file mode 100644 index 00000000..3c7afaa9 --- /dev/null +++ b/idea/xdocs/changes.xml @@ -0,0 +1,18 @@ + + + + Changes + Michal Maczka + + + + + + + Added idea:multiproject goal. Other goals were decomposed. + + + + + + diff --git a/idea/xdocs/goals.xml b/idea/xdocs/goals.xml index 709a9bb9..e6e496d9 100644 --- a/idea/xdocs/goals.xml +++ b/idea/xdocs/goals.xml @@ -15,9 +15,31 @@ - idea:generate-project + idea:project - Generate IDEA .ipr and .iws project files from the POM + Generate IDEA .ipr project files + + + + idea:workspace + + Generate IDEA .ipw project files + + + + idea:workspace + + Generate IDEA .ipw project files + (IDEA 4 only) + + + + + + idea:multiproject + + Generate IDEA .ipr and .iws project files and appends module which are created via reactor. + (IDEA 4 only). diff --git a/idea/xdocs/properties.xml b/idea/xdocs/properties.xml index 905a680a..d889c461 100644 --- a/idea/xdocs/properties.xml +++ b/idea/xdocs/properties.xml @@ -5,11 +5,16 @@ IDEA Properties Kurt Schrader Emmanuel Venisse + Michal Maczka - -
+
+ + + + + @@ -17,7 +22,40 @@ Specifies the cvs path. -
Property nameOptional?Description
maven.cvs.client.exe Yes
+ + maven.idea.project.multiproject.includes + Yet + + This is the list of file specifications to be + included when searching for projects to be processed + by the plugin. +
+ Default value is ${maven.multiproject.includes} + (see multiproject) + It means that mutiproject setup is used when no value is provided. + + + + + maven.idea.project.multiproject.excludes + Yet + + This is the list of file specifications to be excluded + when idea:multiproject goal is executed +
+ Default value is ${maven.multiproject.excludes} + + + + maven.idea.project.multiproject.basdir + No + + This is the base directory that the plugin will use for idea:multiproject goal is executed +
+ Default value is ${maven.multiproject.basdir} + + +