Adding ejb-client dependencies as <module><jarModule> gives error
-----------------------------------------------------------------

                 Key: MEAR-55
                 URL: http://jira.codehaus.org/browse/MEAR-55
             Project: Maven 2.x Ear Plugin
          Issue Type: Bug
    Affects Versions: 2.3
            Reporter: Stefan Seidel
            Priority: Minor


The plugin complains that the artifacts which are of type ejb-client are no 
dependencies of this project.

{code}[INFO] Artifact[jar:de.xpm:lucenesearch-ejb] is not a dependency of the 
project.{code}

The dependency looks like
{code}
    <dependency>
      <groupId>de.xpm</groupId>
      <artifactId>lucenesearch-ejb</artifactId>
      <version>[1.2.1,2.0)</version>
      <type>ejb-client</type>
    </dependency>
{code}

The plugin configuration looks like
{code}
        <configuration>
          <modules>
            <jarModule>
              <groupId>de.xpm</groupId>
              <artifactId>lucenesearch-ejb</artifactId>
              <includeInApplicationXml>true</includeInApplicationXml>
            </jarModule>
          </modules>
        </configuration>
{code}

The workaround is to include
{code}
          <artifactTypeMappings>
            <artifactTypeMapping type="ejb-client" mapping="jar" />
          </artifactTypeMappings>
{code}
in the plugin configuration.

-- 
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

        

Reply via email to