[ http://jira.codehaus.org/browse/MECLIPSE-448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134408#action_134408 ]
Gabriele Contini commented on MECLIPSE-448: ------------------------------------------- I'm sorry the indentation in my previous post was incorrect. Here is the EAR structure as packaged by maven {noformat} myapp.ear |- myapp-ejb.ejb |- myapp-jcr-connector.rar |- myapp-web.war |- META-INF | |- application.xml | |- ... |- WEB-INF |- ... {noformat} > 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 > Affects Versions: 2.5.1 > Reporter: Gabriele Contini > > 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