You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Anders Romin (JIRA)" <ji...@codehaus.org> on 2007/05/02 16:14:26 UTC
[jira] Created: (MWAR-100) War overlay with merged web.xml
War overlay with merged web.xml
-------------------------------
Key: MWAR-100
URL: http://jira.codehaus.org/browse/MWAR-100
Project: Maven 2.x War Plugin
Issue Type: Wish
Affects Versions: 2.0
Reporter: Anders Romin
I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
Any ideas how this could be accomplished?
--
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: (MWAR-100) War overlay with merged web.xml
Posted by "Gabriele Columbro (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MWAR-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=169057#action_169057 ]
Gabriele Columbro commented on MWAR-100:
----------------------------------------
An Xpatch kind of thing is not applicable?
http://cocoon.apache.org/2.2/maven-plugins/maven-plugin/1.0/1360_1_1.html
> War overlay with merged web.xml
> -------------------------------
>
> Key: MWAR-100
> URL: http://jira.codehaus.org/browse/MWAR-100
> Project: Maven 2.x War Plugin
> Issue Type: Wish
> Affects Versions: 2.0
> Reporter: Anders Romin
>
> I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
> For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
> Any ideas how this could be accomplished?
--
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: (MWAR-100) War overlay with merged web.xml
Posted by "Anders Romin (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MWAR-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_94941 ]
Anders Romin commented on MWAR-100:
-----------------------------------
That's ok for me. Thanks for a fast reply!
I'm also looking forward to the refactored overlay implementation...
> War overlay with merged web.xml
> -------------------------------
>
> Key: MWAR-100
> URL: http://jira.codehaus.org/browse/MWAR-100
> Project: Maven 2.x War Plugin
> Issue Type: Wish
> Affects Versions: 2.0
> Reporter: Anders Romin
>
> I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
> For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
> Any ideas how this could be accomplished?
--
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] (MWAR-100) War overlay with merged web.xml
Posted by "Michael Osipov (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MWAR-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291916#comment-291916 ]
Michael Osipov edited comment on MWAR-100 at 2/16/12 8:25 AM:
--------------------------------------------------------------
Cargo's Maven Plugin is, unfortunately, unusable. I was wondering why neither of my .xweb files from my project were applied. I checked the source: https://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.2/cocoon-maven-plugin/cocoon-maven-plugin-1.0.0-M2/src/main/java/org/apache/cocoon/maven/deployer/AbstractDeployMojo.java and the only call to the method xpatch passes new File[0], so nothing is applied. Only xweb files for dependencies are applied.
See https://issues.apache.org/jira/browse/COCOON-2084
was (Author: michael-o):
Cargo's Maven Plugin is, unfortunately, unusable. I was wondering why neither of my .xweb files from my project were applied. I checked the source: https://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.2/cocoon-maven-plugin/cocoon-maven-plugin-1.0.0-M2/src/main/java/org/apache/cocoon/maven/deployer/AbstractDeployMojo.java and the only call to the method xpatch passes new File[0], so nothing is applied. Only xweb files for dependencies are applied.
> War overlay with merged web.xml
> -------------------------------
>
> Key: MWAR-100
> URL: https://jira.codehaus.org/browse/MWAR-100
> Project: Maven 2.x WAR Plugin
> Issue Type: Wish
> Components: overlay
> Affects Versions: 2.0
> Reporter: Anders Romin
> Attachments: merge-web.xml.xslt
>
>
> I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
> For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
> Any ideas how this could be accomplished?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MWAR-100) War overlay with merged web.xml
Posted by "Michael Osipov (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MWAR-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291916#comment-291916 ]
Michael Osipov edited comment on MWAR-100 at 2/16/12 3:06 PM:
--------------------------------------------------------------
Cocoon's Maven Plugin is, unfortunately, unusable. I was wondering why neither of my .xweb files from my project were applied. I checked the source: https://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.2/cocoon-maven-plugin/cocoon-maven-plugin-1.0.0-M2/src/main/java/org/apache/cocoon/maven/deployer/AbstractDeployMojo.java and the only call to the method xpatch passes new File[0], so nothing is applied. Only xweb files for dependencies are applied.
See https://issues.apache.org/jira/browse/COCOON-2084
was (Author: michael-o):
Cargo's Maven Plugin is, unfortunately, unusable. I was wondering why neither of my .xweb files from my project were applied. I checked the source: https://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.2/cocoon-maven-plugin/cocoon-maven-plugin-1.0.0-M2/src/main/java/org/apache/cocoon/maven/deployer/AbstractDeployMojo.java and the only call to the method xpatch passes new File[0], so nothing is applied. Only xweb files for dependencies are applied.
See https://issues.apache.org/jira/browse/COCOON-2084
> War overlay with merged web.xml
> -------------------------------
>
> Key: MWAR-100
> URL: https://jira.codehaus.org/browse/MWAR-100
> Project: Maven 2.x WAR Plugin
> Issue Type: Wish
> Components: overlay
> Affects Versions: 2.0
> Reporter: Anders Romin
> Attachments: merge-web.xml.xslt
>
>
> I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
> For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
> Any ideas how this could be accomplished?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MWAR-100) War overlay with merged web.xml
Posted by "Knut Vidar Siem (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MWAR-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=277450#comment-277450 ]
Knut Vidar Siem commented on MWAR-100:
--------------------------------------
>From the [Cactus project page|http://jakarta.apache.org/cactus/]:
{quote}
2011/08/05 - Jakarta Cactus has been retired.
{quote}
I would like to see this issue resolved as well. Meanwhile, alternatives include:
* [Cargo Maven2 Plugin|http://cargo.codehaus.org/Maven2+plugin] - [Merging WAR files|http://cargo.codehaus.org/Merging+WAR+files]
* [XML Maven Plugin|http://mojo.codehaus.org/xml-maven-plugin/] - [XSL Transformation|http://mojo.codehaus.org/xml-maven-plugin/examples/transform-basic.html]
This thread from StackOverflow.com could also be of interest: [Maven: Customize web.xml of web-app project|http://stackoverflow.com/questions/3298763/maven-customize-web-xml-of-web-app-project]
> War overlay with merged web.xml
> -------------------------------
>
> Key: MWAR-100
> URL: https://jira.codehaus.org/browse/MWAR-100
> Project: Maven 2.x WAR Plugin
> Issue Type: Wish
> Components: overlay
> Affects Versions: 2.0
> Reporter: Anders Romin
> Attachments: merge-web.xml.xslt
>
>
> I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
> For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
> Any ideas how this could be accomplished?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MWAR-100) War overlay with merged web.xml
Posted by "Richard C. L. Li (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MWAR-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_109149 ]
Richard C. L. Li commented on MWAR-100:
---------------------------------------
I am in need of this feature, any progress? I can help to implement this feature if you permitted, this should be easy though.
> War overlay with merged web.xml
> -------------------------------
>
> Key: MWAR-100
> URL: http://jira.codehaus.org/browse/MWAR-100
> Project: Maven 2.x War Plugin
> Issue Type: Wish
> Affects Versions: 2.0
> Reporter: Anders Romin
>
> I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
> For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
> Any ideas how this could be accomplished?
--
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] (MWAR-100) War overlay with merged web.xml
Posted by "Michael Osipov (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MWAR-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291916#comment-291916 ]
Michael Osipov commented on MWAR-100:
-------------------------------------
Cargo's Maven Plugin is, unfortunately, unusable. I was wondering why neither of my .xweb files from my project were applied. I checked the [source|https://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.2/cocoon-maven-plugin/cocoon-maven-plugin-1.0.0-M2/src/main/java/org/apache/cocoon/maven/deployer/AbstractDeployMojo.java] and the only call to the method xpatch passes new File[0], so nothing is applied. Only xweb files for dependencies are applied.
> War overlay with merged web.xml
> -------------------------------
>
> Key: MWAR-100
> URL: https://jira.codehaus.org/browse/MWAR-100
> Project: Maven 2.x WAR Plugin
> Issue Type: Wish
> Components: overlay
> Affects Versions: 2.0
> Reporter: Anders Romin
> Attachments: merge-web.xml.xslt
>
>
> I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
> For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
> Any ideas how this could be accomplished?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MWAR-100) War overlay with merged web.xml
Posted by "Michael Osipov (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MWAR-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291916#comment-291916 ]
Michael Osipov edited comment on MWAR-100 at 2/16/12 8:22 AM:
--------------------------------------------------------------
Cargo's Maven Plugin is, unfortunately, unusable. I was wondering why neither of my .xweb files from my project were applied. I checked the source: https://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.2/cocoon-maven-plugin/cocoon-maven-plugin-1.0.0-M2/src/main/java/org/apache/cocoon/maven/deployer/AbstractDeployMojo.java and the only call to the method xpatch passes new File[0], so nothing is applied. Only xweb files for dependencies are applied.
was (Author: michael-o):
Cargo's Maven Plugin is, unfortunately, unusable. I was wondering why neither of my .xweb files from my project were applied. I checked the [source|https://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.2/cocoon-maven-plugin/cocoon-maven-plugin-1.0.0-M2/src/main/java/org/apache/cocoon/maven/deployer/AbstractDeployMojo.java] and the only call to the method xpatch passes new File[0], so nothing is applied. Only xweb files for dependencies are applied.
> War overlay with merged web.xml
> -------------------------------
>
> Key: MWAR-100
> URL: https://jira.codehaus.org/browse/MWAR-100
> Project: Maven 2.x WAR Plugin
> Issue Type: Wish
> Components: overlay
> Affects Versions: 2.0
> Reporter: Anders Romin
> Attachments: merge-web.xml.xslt
>
>
> I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
> For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
> Any ideas how this could be accomplished?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MWAR-100) War overlay with merged web.xml
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MWAR-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_111728 ]
Stephane Nicoll commented on MWAR-100:
--------------------------------------
Howdy,
You can certainly help if you think it's easy :)
I guess we should rely on the cargo api and provide the bridge to this system + tests + documentation. I've investigated the solution provided with cargo and found it very complete but also a bit complex to use.
> War overlay with merged web.xml
> -------------------------------
>
> Key: MWAR-100
> URL: http://jira.codehaus.org/browse/MWAR-100
> Project: Maven 2.x War Plugin
> Issue Type: Wish
> Affects Versions: 2.0
> Reporter: Anders Romin
>
> I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
> For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
> Any ideas how this could be accomplished?
--
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: (MWAR-100) War overlay with merged web.xml
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MWAR-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_94931 ]
Stephane Nicoll commented on MWAR-100:
--------------------------------------
We have that in mind. I can't provide any schedule though.
The idea would be to integrate the merge functionnality from the Cargo project. FYI we are currently refactoring the overlay mechansim.
> War overlay with merged web.xml
> -------------------------------
>
> Key: MWAR-100
> URL: http://jira.codehaus.org/browse/MWAR-100
> Project: Maven 2.x War Plugin
> Issue Type: Wish
> Affects Versions: 2.0
> Reporter: Anders Romin
>
> I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
> For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
> Any ideas how this could be accomplished?
--
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: (MWAR-100) War overlay with merged web.xml
Posted by "Michiel Meeuwissen (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MWAR-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michiel Meeuwissen updated MWAR-100:
------------------------------------
Attachment: merge-web.xml.xslt
In an ant-build I used to simply merge 2 web.xml's using an XSLT. This may not be flexible enough in every situation, but at least it would be simple to implement.
> War overlay with merged web.xml
> -------------------------------
>
> Key: MWAR-100
> URL: http://jira.codehaus.org/browse/MWAR-100
> Project: Maven 2.x WAR Plugin
> Issue Type: Wish
> Components: overlay
> Affects Versions: 2.0
> Reporter: Anders Romin
> Attachments: merge-web.xml.xslt
>
>
> I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
> For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
> Any ideas how this could be accomplished?
--
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: (MWAR-100) War overlay with merged web.xml
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MWAR-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=232095#action_232095 ]
Stephane Nicoll commented on MWAR-100:
--------------------------------------
The cactus project has a merge web.xml feature that we might consider integrating here in one way or the other.
> War overlay with merged web.xml
> -------------------------------
>
> Key: MWAR-100
> URL: http://jira.codehaus.org/browse/MWAR-100
> Project: Maven 2.x WAR Plugin
> Issue Type: Wish
> Components: overlay
> Affects Versions: 2.0
> Reporter: Anders Romin
> Attachments: merge-web.xml.xslt
>
>
> I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
> For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
> Any ideas how this could be accomplished?
--
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: (MWAR-100) War overlay with merged web.xml
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MWAR-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephane Nicoll updated MWAR-100:
---------------------------------
Component/s: overlay
> War overlay with merged web.xml
> -------------------------------
>
> Key: MWAR-100
> URL: http://jira.codehaus.org/browse/MWAR-100
> Project: Maven 2.x WAR Plugin
> Issue Type: Wish
> Components: overlay
> Affects Versions: 2.0
> Reporter: Anders Romin
>
> I'm looking for a way to use the war overlay feature and have the web.xml merged with the content of both the parent war and the child war.
> For example, we have two wars A and B, and B is depending on A using the overlay feature. Now, I'd like all filters, servlets etc that are configured in A to be available in the resulting war, as well as all filters, servlets etc from B. If the id attributes clash, then the objects from B should be used.
> Any ideas how this could be accomplished?
--
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