You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Renaud Julienne (JIRA)" <ji...@codehaus.org> on 2006/05/29 14:06:43 UTC

[jira] Created: (MECLIPSE-111) Additional webResources are not added to the component list when using WTP projects generation

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

         Key: MECLIPSE-111
         URL: http://jira.codehaus.org/browse/MECLIPSE-111
     Project: Maven 2.x Eclipse Plugin
        Type: Bug

    Versions: 2.2    
    Reporter: Renaud Julienne


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"/>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Work started: (MECLIPSE-111) Additional webResources are not added to the component list when using WTP projects generation

Posted by "Rahul Thakur (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MECLIPSE-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on MECLIPSE-111 started by Rahul Thakur.

> Additional webResources are not added to the component list when using WTP projects generation
> ----------------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-111
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-111
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: WTP support
>    Affects Versions: 2.2
>            Reporter: Renaud Julienne
>            Assignee: Rahul Thakur
>         Attachments: eclipse_dot_component_web_resources.patch, MECLIPSE-111-patch.txt
>
>
> 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"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MECLIPSE-111) Additional webResources are not added to the component list when using WTP projects generation

Posted by "Mike Youngstrom (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107675 ] 

Mike Youngstrom commented on MECLIPSE-111:
------------------------------------------

Count me in with another plea to fix this.

> Additional webResources are not added to the component list when using WTP projects generation
> ----------------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-111
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-111
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: WTP support
>    Affects Versions: 2.2
>            Reporter: Renaud Julienne
>         Attachments: MECLIPSE-111-patch.txt
>
>
> 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"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MECLIPSE-111) Additional webResources are not added to the component list when using WTP projects generation

Posted by "Steve Baker (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=155334#action_155334 ] 

Steve Baker commented on MECLIPSE-111:
--------------------------------------

Much appreciated, thanks.

> Additional webResources are not added to the component list when using WTP projects generation
> ----------------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-111
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-111
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: WTP support
>    Affects Versions: 2.2
>            Reporter: Renaud Julienne
>            Assignee: Rahul Thakur
>             Fix For: 2.6
>
>         Attachments: eclipse_dot_component_web_resources.patch, MECLIPSE-111-patch.txt
>
>
> 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"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MECLIPSE-111) Additional webResources are not added to the component list when using WTP projects generation

Posted by "chuchi (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_100800 ] 

chuchi commented on MECLIPSE-111:
---------------------------------

Please, please, please.... 

Can someone fix this, please?

Is very simple to add an xml tag like "webappDirectory" or simply apply the patch to maven repository!!

> Additional webResources are not added to the component list when using WTP projects generation
> ----------------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-111
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-111
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: WTP support
>    Affects Versions: 2.2
>            Reporter: Renaud Julienne
>         Attachments: MECLIPSE-111-patch.txt
>
>
> 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"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MECLIPSE-111) Additional webResources are not added to the component list when using WTP projects generation

Posted by "Steve Baker (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MECLIPSE-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Baker updated MECLIPSE-111:
---------------------------------

    Attachment: eclipse_dot_component_web_resources.patch

Here is a rewritten patch based on the original written by Alexandre Poitras.
It is based off svn tag maven-eclipse-plugin-2.5.1.

It only modifies one method in one file and as far as I can tell uses current code conventions.

Could someone please take a look at it?

> Additional webResources are not added to the component list when using WTP projects generation
> ----------------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-111
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-111
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: WTP support
>    Affects Versions: 2.2
>            Reporter: Renaud Julienne
>         Attachments: eclipse_dot_component_web_resources.patch, MECLIPSE-111-patch.txt
>
>
> 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"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MECLIPSE-111) Additional webResources are not added to the component list when using WTP projects generation

Posted by "Alexandre Poitras (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-111?page=comments#action_68459 ] 

Alexandre Poitras commented on MECLIPSE-111:
--------------------------------------------

One problem with this approach is that it doesn't care about settings coming from the parent. I think it is just an example of a broader problem : sharing properties between plugins.

> Additional webResources are not added to the component list when using WTP projects generation
> ----------------------------------------------------------------------------------------------
>
>          Key: MECLIPSE-111
>          URL: http://jira.codehaus.org/browse/MECLIPSE-111
>      Project: Maven 2.x Eclipse Plugin
>         Type: Bug

>     Versions: 2.2
>     Reporter: Renaud Julienne
>  Attachments: MECLIPSE-111-patch.txt
>
>
> 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"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (MECLIPSE-111) Additional webResources are not added to the component list when using WTP projects generation

Posted by "Rahul Thakur (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MECLIPSE-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rahul Thakur closed MECLIPSE-111.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.6

Applied, thanks.

> Additional webResources are not added to the component list when using WTP projects generation
> ----------------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-111
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-111
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: WTP support
>    Affects Versions: 2.2
>            Reporter: Renaud Julienne
>            Assignee: Rahul Thakur
>             Fix For: 2.6
>
>         Attachments: eclipse_dot_component_web_resources.patch, MECLIPSE-111-patch.txt
>
>
> 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"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MECLIPSE-111) Additional webResources are not added to the component list when using WTP projects generation

Posted by "Steve Baker (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MECLIPSE-111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143409#action_143409 ] 

Steve Baker commented on MECLIPSE-111:
--------------------------------------

We too have a great need for this feature.  Our web projects have different overlay directories for different local development configurations.

At the very least could someone review the current patch and provide feedback on what the next step might be?

To get overlays working within WTP we've had to resort to writing ant tasklets to patch .component as per the following snippet:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>patch_dot_component</id>
            <phase>initialize</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <echo message="Patching .settings/.component" />
                <touch file=".settings/.component" mkdirs="true" />
                <replace file=".settings/.component">
                  <replacetoken>source-path="src/webapp/www"</replacetoken>
                  <replacevalue>source-path="src/webapp/www"/> &lt;wb-resource deploy-path="/" source-path="target/weboverlay"</replacevalue>
                </replace>
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>

> Additional webResources are not added to the component list when using WTP projects generation
> ----------------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-111
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-111
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: WTP support
>    Affects Versions: 2.2
>            Reporter: Renaud Julienne
>         Attachments: MECLIPSE-111-patch.txt
>
>
> 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"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MECLIPSE-111) Additional webResources are not added to the component list when using WTP projects generation

Posted by "Alexandre Poitras (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MECLIPSE-111?page=all ]

Alexandre Poitras updated MECLIPSE-111:
---------------------------------------

    Attachment: MECLIPSE-111-patch.txt

> Additional webResources are not added to the component list when using WTP projects generation
> ----------------------------------------------------------------------------------------------
>
>          Key: MECLIPSE-111
>          URL: http://jira.codehaus.org/browse/MECLIPSE-111
>      Project: Maven 2.x Eclipse Plugin
>         Type: Bug

>     Versions: 2.2
>     Reporter: Renaud Julienne
>  Attachments: MECLIPSE-111-patch.txt
>
>
> 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"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira