You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Arnaud Heritier (JIRA)" <ji...@codehaus.org> on 2008/10/29 00:35:52 UTC

[jira] Updated: (MECLIPSE-448) connector projects (RAR) are not added to .components in EAR projects

     [ http://jira.codehaus.org/browse/MECLIPSE-448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arnaud Heritier updated MECLIPSE-448:
-------------------------------------

    Component/s: WTP support

> connector projects (RAR) are not added to .components in EAR projects
> ---------------------------------------------------------------------
>
>                 Key: MECLIPSE-448
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-448
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: WTP support
>    Affects Versions: 2.5.1
>            Reporter: Gabriele Contini
>         Attachments: MECLIPSE-448-maven-eclipse-plugin.patch
>
>
> There is an issue generating wtp configuration for multi-module j2ee applications that use connectors. 
> Suppose you have a "connector project" to access an external data source packaged as a RAR (Resource Archive) and an Eclipse "enterprise application project" with packaging EAR.
> The EAR includes the RAR between its dependencies. Below you can see the correct EAR structure as deployed by maven:
> myapp.ear
>    |- myapp-ejb.ejb
>    |- myapp-jcr-connector.rar
>    |- myapp-web.war
>    |- META-INF
>    |     |- application.xml
>    |     |- ...
>    |- WEB-INF
>    |- ...
> here is a snippet from: myapp/jcr-connector/pom.xml
>    <project>
> 	<artifactId>myapp-jcr-connector</artifactId>
> 	<packaging>rar</packaging>
>         ...
> here is a snippet from: myapp/ear/pom.xml
> 		<dependency>
> 			<groupId>${pom.groupId}</groupId>
> 			<artifactId>myapp-jcr-connector</artifactId>
> 			<version>${pom.version}</version>
> 			<type>rar</type>
> 		</dependency>
> When the wtp configuration of the "Enterprise Application Project" is generated the "Connector Project" is not referenced in the org.eclipse.wst.common.component (of the Enterprise project) file thus making the deployment of the connector artifact fail. 
> By the way the connector it's not included in the generated application.xml too, but this file can be easily overridden.
> Here is how the rar should be referenced in the application.xml:
> 	<module id="ConnectorModule_1203933609087">
> 		<connector>myapp-jcr-connector.jar</connector>
> 	</module>
> ...

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