[jbosstools-issues] [JBoss JIRA] (JBIDE-12732) jboss-packaging-maven-plugin jboss-sar + m2e + JBT = NPE

Rastislav Wagner (JIRA) jira-events at lists.jboss.org
Thu Nov 22 07:13:21 EST 2012


     [ https://issues.jboss.org/browse/JBIDE-12732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rastislav Wagner closed JBIDE-12732.
------------------------------------



verified in JBDS 6.0.0.CR1-v20121118-2035-B111
                
> 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: Bug
>          Components: maven
>    Affects Versions: 3.3.1
>         Environment: Eclipse Helios, indigo and Juno
>            Reporter: Manosh C
>            Assignee: Fred Bricon
>             Fix For: 4.0.0.Beta1
>
>         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


More information about the jbosstools-issues mailing list