Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12732

jboss-packaging-maven-plugin jboss-sar + m2e + JBT = NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.0.0.Beta1
    • 3.3.1.Final
    • maven
    • None
    • Workaround Exists
    • Hide
      • right click on test-common
      • click on Project Facets, convert to Faceted form
      • add the Utility Facet.
      • in the navigator view, open test-sar/.settings/org.eclipse.wst.common.component and remove the test-common dependent-module
      • update the maven configuration of test-sar
      Show
      right click on test-common click on Project Facets, convert to Faceted form add the Utility Facet. in the navigator view, open test-sar/.settings/org.eclipse.wst.common.component and remove the test-common dependent-module update the maven configuration of test-sar

    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.

      Attachments

        Activity

          People

            fbricon@redhat.com Fred Bricon
            chmanosh_jira Manosh C (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: