PR: MPIDEA-27, MPIDEA-11, MPIDEA-26, MPIDEA-28, MPIDEA-15

Submitted by: Geoffrey De Smet
Reviewed by:  Brett Porter

plugin fixes roll up


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@189898 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett
2005-06-10 05:10:32 +00:00
parent 829b9df613
commit 462713080f
4 changed files with 73 additions and 9 deletions

View File

@@ -92,8 +92,11 @@
<ant:fail>ERROR: This goal should be used only with IDEA 4 and above.</ant:fail>
</j:if>
<attainGoal name="idea:workspace"/>
<!-- MPIDEA-26 -->
<util:file var="workspaceFile" name="${basedir}/${pom.artifactId}.iws" />
<j:if test="${!workspaceFile.exists()}">
<attainGoal name="idea:workspace"/>
</j:if>
<!-- Finding modules -->
<!-- we use plugin's own settings in first order. -->
@@ -123,6 +126,10 @@
goals="idea:module"
ignoreFailures="true"/>
<!-- MPIDEA-28 -->
<attainGoal name="idea:module"/>
<!-- FIXME: just do attainGoal name="idea:project" -->
<ant:echo>Creating ${basedir}/${pom.artifactId}.ipr ...</ant:echo>
<j:file name="${basedir}/${pom.artifactId}.ipr" prettyPrint="true" xmlns="dummy">
<j:import file="${template.dir}/multiproject.jelly" inherit="true"/>

View File

@@ -38,7 +38,9 @@
<setting name="JAR_ENABLED" value="true" />
</component>
<component name="EjbModuleProperties">
<deploymentDescriptor name="ejb-jar.xml" url="file://$MODULE_DIR$/src/ejb/META-INF/ejb-jar.xml" version="2.x" />
<!-- MPIDEA-15 -->
<deploymentDescriptor name="ejb-jar.xml" url="file://$$MODULE_DIR$$/src/ejb/META-INF/ejb-jar.xml" version="2.x" />
<orderEntriesWatcher>
<pairs>
<key>
@@ -80,7 +82,9 @@
<maven:get var="warSrc" plugin="maven-war-plugin" property="maven.war.src" />
<maven:makeRelativePath var="value" basedir="${basedir}" path="${warSrc}" separator="/" />
<webroots>
<root url="file://$MODULE_DIR$/${value}" relative="/" />
<!-- MPIDEA-15 -->
<root url="file://$$MODULE_DIR$$/${value}" relative="/" />
</webroots>
<orderEntriesWatcher>
<pairs>
@@ -123,17 +127,60 @@
</j:if>
<j:if test="${maven.idea.target.exclude}">
<maven:makeRelativePath var="value" basedir="${basedir}" path="${maven.build.dir}" separator="/" />
<excludeFolder url="file://$$MODULE_DIR$$/${value}"/>
</j:if>
<excludeFolder url="file://$$MODULE_DIR$$/${value}"/>
</j:if>
<!-- MPIDEA-28: Exclude the subprojects of a multiproject -->
<j:if test="${type == 'multiproject'}">
<j:forEach var="project" items="${reactorProjects}">
<maven:makeRelativePath var="value" basedir="${basedir}"
path="${project.file.parentFile.canonicalFile}" separator="/" />
<excludeFolder url="file://$$MODULE_DIR$$/${value}"/>
</j:forEach>
</j:if>
</content>
<orderEntry type="jdk" jdkName="java version &quot;${java.version}&quot;"/>
<!-- MPIDEA-11 (duplicates MPIDEA-22): Reference resources directory -->
<j:forEach var="res" items="${pom.build.resources}">
<orderEntry type="module-library">
<library>
<CLASSES>
<maven:makeRelativePath var="value" basedir="${basedir}" path="${res.directory}" separator="/"/>
<root url="file://$$MODULE_DIR$$/${value}"/>
</CLASSES>
<JAVADOC/>
<SOURCES/>
</library>
</orderEntry>
</j:forEach>
<j:if test="${unitTestSourcesPresent == 'true'}"><!-- TODO should use a unitTestResourcesPresent -->
<j:if test="${pom.build.unitTest != null}">
<j:forEach var="res" items="${pom.build.unitTest.resources}">
<orderEntry type="module-library">
<library>
<CLASSES>
<maven:makeRelativePath var="value" basedir="${basedir}" path="${res.directory}" separator="/"/>
<root url="file://$$MODULE_DIR$$/${value}"/>
</CLASSES>
<JAVADOC/>
<SOURCES/>
</library>
</orderEntry>
</j:forEach>
</j:if>
</j:if>
<orderEntry type="sourceFolder" forTests="false"/>
<j:forEach var="lib" items="${pom.artifacts}">
<j:set var="dep" value="${lib.dependency}"/>
<j:if test="${dep.type=='jar'}">
<!-- MPIDEA-27: Depdencies of wars en ejb's should also be reffed -->
<j:choose>
<j:when test="${dep.groupId == pom.groupId}" >
<!-- MPIDEA-7 -->
<orderEntry type="module" module-name="${dep.artifactId}" />
</j:when>
<j:otherwise>
<orderEntry type="module-library">
@@ -147,7 +194,8 @@
</orderEntry>
</j:otherwise>
</j:choose>
</j:if>
<!-- MPIDEA-27: Depdencies of wars en ejb's should also be reffed -->
</j:forEach>
</component>
<component name="ModuleRootManager"/>

View File

@@ -127,6 +127,10 @@
</component>
<component name="ProjectModuleManager">
<modules>
<!-- Include the mutiproject's module -->
<j:set var="file" value="file://${pom.file.parentFile.canonicalFile}/${pom.artifactId}.iml" />
<module fileurl="${file}" filepath="${file}"/>
<j:forEach var="project" items="${reactorProjects}">
<j:set var="file" value="file://${project.file.parentFile.canonicalFile}/${project.artifactId}.iml" />
<module fileurl="${file}" filepath="${file}"/>

View File

@@ -25,7 +25,12 @@
</properties>
<body>
<release version="1.6-SNAPSHOT" date="in SVN">
<action dev="brett" type="fix" issue="MPIDEA-12" due-to="Matthew McGowan">exclude build output directory in module</action>
<action dev="brett" type="fix" issue="MPIDEA-15" due-to="Geoffrey De Smet">v4/module.jelly generates incorrect references to $MODULE_DIR$</action>
<action dev="brett" type="add" issue="MPIDEA-28" due-to="Geoffrey De Smet">Generate a module for the multiproject itself</action>
<action dev="brett" type="update" issue="MPIDEA-26" due-to="Geoffrey De Smet">idea:multiproject without idea:workspace so a local workspaces aren't lost</action>
<action dev="brett" type="add" issue="MPIDEA-11" due-to="Geoffrey De Smet">include maven project resources in module library</action>
<action dev="brett" type="update" issue="MPIDEA-27" due-to="Geoffrey De Smet">Add depencies on ejb or war modules</action>
<action dev="brett" type="update" issue="MPIDEA-12" due-to="Matthew McGowan">exclude build output directory in module</action>
<action dev="brett" type="fix" issue="MPIDEA-17">set module to JAVA_MODULE for compatibility with both 4.5 and Irida.</action>
</release>
<release version="1.5" date="2004-06-25">