[
http://jira.codehaus.org/browse/MECLIPSE-448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gabriele Contini updated MECLIPSE-448:
--------------------------------------
Attachment: MECLIPSE-448-maven-eclipse-plugin.patch
Here is a trivial patch for this problem. It adds a constant RAR_PACKAGING in
org.apache.maven.plugin.Constants and in AbstractWtpResourceWriter check for
packaging "rar" and output dependency when found a rar artifact.
This patch doesn't address the problem of application.xml because it is
complicated, there is a workaround, and in my opinion it's worth to be
addressed by another bug, with lower priority.
Whereas I have no workaround for the .components problem, except MANUALLY add
the connector project every time i generate eclipse files (until this patch
will be applied).
Any comments are appreciated.
Gabriele
> 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
> 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