Details
-
Bug
-
Resolution: Done
-
Major
-
3.3.1.Final
-
None
-
Workaround Exists
-
Description
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.