[
https://issues.jboss.org/browse/JBIDE-12732?page=com.atlassian.jira.plugi...
]
Manosh C updated JBIDE-12732:
-----------------------------
Attachment: test-maven-sar.zip
Test project to reproduce the issue.
jboss-packaging-maven-plugin jboss-sar + m2e + JBT = NPE
--------------------------------------------------------
Key: JBIDE-12732
URL:
https://issues.jboss.org/browse/JBIDE-12732
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: maven
Environment: Eclipse Helios, indigo and Juno
Reporter: Manosh C
Assignee: Fred Bricon
Attachments: test-maven-sar.zip
Not able to use maven SAR project inside eclipse (Tried Helios, indigo and even Juno with
latest jboss tools dev build). In fact I have to close SAR project in order to add any
other web/esb projects to JBoss EAP/ESB.
I am also attaching the maven code to recreate the issue. One thing I observed is maven
jboss packaging m2e plugin is not generating the eclipse files correctly for SAR. Contents
of the "org.eclipse.wst.common.component", in .setting folder, is missing an
attribute 'handle'(in this case it should be
handle="module:/resource/test-common/test-common"). With out the
"handle" attribute, i could not open "deployment Assembly" page in
properties (right click on sar project -> properties -> Deployment Assembly). Once I
have the handle defined i could open Deployment Assembly page and SAR project shows up in
the list to add to the server.
Here is the .settings/"org.eclipse.wst.common.component" file contents
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="test-sar">
<wb-resource deploy-path="/"
source-path="/src/main/resources"/>
<wb-resource deploy-path="/"
source-path="/src/main/java"/>
<wb-resource deploy-path="/"
source-path="/src/test/java"/>
<dependent-module archiveName="test-common-1.0-SNAPSHOT.jar"
deploy-path="/lib">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="java-output-path"
value="target/classes"/>
</wb-module>
</project-modules>
Please let me know if you need any more details.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira