The following issue has been updated:

    Updater: S�verin Voisin (mailto:[EMAIL PROTECTED])
       Date: Thu, 27 May 2004 5:16 AM
    Comment:
modified file. 
    Changes:
             Attachment changed to module.jelly.txt
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/browse/MPIDEA-5?page=history

---------------------------------------------------------------------
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: Open
   Priority: Minor

 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: Thu, 27 May 2004 5:16 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to