You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/06/07 14:18:08 UTC
[jira] Closed: (MPIDEA-5) idea module dependencies and module types
Message:
The following issue has been closed.
Resolver: Brett Porter
Date: Mon, 7 Jun 2004 8:17 AM
needed a few changes, but done. Prefer cvs diff -u patch in future
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPIDEA-5
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPIDEA-5
Summary: idea module dependencies and module types
Type: Improvement
Status: Closed
Priority: Minor
Resolution: FIXED
Original Estimate: 1 day
Time Spent: Unknown
Remaining: 1 day
Project: maven-idea-plugin
Assignee: Brett Porter
Reporter: Séverin Voisin
Created: Thu, 27 May 2004 5:15 AM
Updated: Mon, 7 Jun 2004 8:17 AM
Environment: Idea 4, Windows and RedHat9
Description:
I have done a small enhancement to the maven-idea-plugin, that does two things:
- create the good module type in Idea (jar, web or ejb) according to the maven.multiproject.type properties
- add dependencies between the modules of the multi-module project.
(if the dependency is in the same group id)
The only modified file is maven-idea-plugin-1.4\plugin-resources\templates\v4\modules.jelly my version is accessible at the url
http://www.directaccess.ch/dapResources/module.jelly.txt
for the dependencies, the changed part is here :
<j:forEach var="lib" items="${pom.artifacts}">
<j:set var="dep" value="${lib.dependency}"/>
<j:if test="${dep.type=='jar'}">
<j:choose>
<j:when test="${dep.groupId == pom.groupId }" >
<orderEntry type="module" module-name="${dep.artifactId}" />
</j:when>
<j:otherwise>
<orderEntry type="module-library">
<library name="${dep.artifactId}">
<CLASSES>
<root url="jar://${lib.path}!/"/>
</CLASSES>
<JAVADOC/>
<SOURCES/>
</library>
</orderEntry>
</j:otherwise>
</j:choose>
</j:if>
</j:forEach>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org