[jboss-user] [JBoss Tools] - Re: jboss-packaging-maven-plugin jboss-sar + m2e + JBT = NPE

chmanosh do-not-reply at jboss.com
Tue Sep 25 14:44:30 EDT 2012

chmanosh [https://community.jboss.org/people/chmanosh] created the discussion

"Re: jboss-packaging-maven-plugin jboss-sar + m2e + JBT = NPE"

To view the discussion, visit: https://community.jboss.org/message/761482#761482


I also have the same issue, I could not use maven SAR project inside eclipse (Tried Helios, indigo and even Juno with latest jboss tools dev build). Infact I have to close SAR project in order to add any other web/esb projects to JBoss EAP. Has this ever been resolved? 

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 can add SAR project shows up in the list to add to the server.

Here is the         
<?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">
        <property name="java-output-path" value="target/classes"/>

Can someone please take a look into it. Please let me know if you need any more details.

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120925/a0f3e420/attachment.html 

More information about the jboss-user mailing list