You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Geoffrey (JIRA)" <ji...@codehaus.org> on 2005/04/21 16:40:01 UTC

[jira] Created: (MPIDEA-27) Add depencies on ejb or war modules (quick fix)

Add depencies on ejb or war modules (quick fix)
-----------------------------------------------

         Key: MPIDEA-27
         URL: http://jira.codehaus.org/browse/MPIDEA-27
     Project: maven-idea-plugin
        Type: Bug
    Versions: 1.5    
    Reporter: Geoffrey
    Priority: Minor
     Fix For: 1.6


When the current project A depends on an ejb project B, the dependency isn't configured in IDEA because only jar dependencies are added in the module (iml) configuration file.

By simply removing 2 lines it's fixed.


      <j:forEach var="lib" items="${pom.artifacts}">
        <j:set var="dep" value="${lib.dependency}"/>
        <j:if test="${dep.type=='jar'}"><!-- Remove this line -->
          <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><!-- Remove this line -->
      </j:forEach>
      </j:forEach>

-- 
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
-
For more information on JIRA, 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


[jira] Closed: (MPIDEA-27) Add depencies on ejb or war modules (quick fix)

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPIDEA-27?page=all ]
     
Brett Porter closed MPIDEA-27:
------------------------------

    Resolution: Fixed

> Add depencies on ejb or war modules (quick fix)
> -----------------------------------------------
>
>          Key: MPIDEA-27
>          URL: http://jira.codehaus.org/browse/MPIDEA-27
>      Project: maven-idea-plugin
>         Type: Bug
>     Versions: 1.5
>     Reporter: Geoffrey
>     Priority: Minor
>      Fix For: 1.6

>
>
> When the current project A depends on an ejb project B, the dependency isn't configured in IDEA because only jar dependencies are added in the module (iml) configuration file.
> By simply removing 2 lines it's fixed.
>       <j:forEach var="lib" items="${pom.artifacts}">
>         <j:set var="dep" value="${lib.dependency}"/>
>         <j:if test="${dep.type=='jar'}"><!-- Remove this line -->
>           <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><!-- Remove this line -->
>       </j:forEach>
>       </j:forEach>

-- 
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
-
For more information on JIRA, 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