Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-111

Additional webResources are not added to the component list when using WTP projects generation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.6
    • WTP support
    • None

    Description

      I have a war project, with the standard layout :
      + project
      + src
      + main
      + java
      + resources
      + webapp
      But my project is also relying on a common web application framework, containing web resources I must add to my project.
      So in the pom.xml, for the maven-war-plugin configuration, I have additional webResources declared :
      <plugin>
      <artifactId>maven-war-plugin</artifactId>
      <configuration>
      <webResources>
      <webResource>
      <directory>${project.build.directory}/fwk</directory>
      <webResource>
      </webResources>
      </configuration>
      </plugin>

      When I generate the eclipse project, with WTP activated, the .component generated does not include the wb-resource element corresponding to my webResource. It should contain :
      <wb-resource deploy-path="/" source-path="target/fwk"/>

      Attachments

        1. MECLIPSE-111-patch.txt
          5 kB
          Alexandre Poitras
        2. eclipse_dot_component_web_resources.patch
          2 kB
          Steve Baker

        Activity

          People

            rahul Rahul Akolkar
            renaud_julienne renaud_julienne
            Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: