You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matteo Turra (JIRA)" <ji...@codehaus.org> on 2010/04/21 17:57:12 UTC
[jira] Created: (MWAR-222) War overlay copy warSourceDirectory of
the source in the dependent WEB-INF/classes
War overlay copy warSourceDirectory of the source in the dependent WEB-INF/classes
-----------------------------------------------------------------------------------
Key: MWAR-222
URL: http://jira.codehaus.org/browse/MWAR-222
Project: Maven 2.x WAR Plugin
Issue Type: Bug
Affects Versions: 2.1-beta-1
Reporter: Matteo Turra
I have a webCommon project sharing its content with webA, webB project via overlay mechanism.
The resulting war in webA and webB project have webCommon webapps (web is my warSourceDirectory) content in the root and in WEB-INF/classes too!
Why? Is this the right behavior? How to avoid it?
webCommon pom.xml is like that:
<packaging>war</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-1</version>
<configuration>
<warName>esse3</warName>
<warSourceDirectory>web</warSourceDirectory>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
webX pom is like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-1</version>
<configuration>
<warName>esse3</warName>
<failOnMissingWebXml>true</failOnMissingWebXml>
<warSourceDirectory>web</warSourceDirectory>
<overlays>
<overlay>
<groupId>it.kion.esse3</groupId>
<artifactId>webCommon</artifactId>
</overlay>
</overlays>
</configuration>
</plugin>
--
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: (MWAR-222) War overlay copy warSourceDirectory of
the source in the dependent WEB-INF/classes
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MWAR-222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed MWAR-222.
--------------------------------
Resolution: Cannot Reproduce
> War overlay copy warSourceDirectory of the source in the dependent WEB-INF/classes
> -----------------------------------------------------------------------------------
>
> Key: MWAR-222
> URL: https://jira.codehaus.org/browse/MWAR-222
> Project: Maven 2.x WAR Plugin
> Issue Type: Bug
> Components: overlay
> Affects Versions: 2.1-beta-1
> Reporter: Matteo Turra
> Attachments: MWAR-222.ZIP
>
>
> I have a webCommon project sharing its content with webA, webB project via overlay mechanism.
> The resulting war in webA and webB project have webCommon webapps (web is my warSourceDirectory) content in the root and in WEB-INF/classes too!
> Why? Is this the right behavior? How to avoid it?
> webCommon pom.xml is like that:
> {code:xml}
> <packaging>war</packaging>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.1-beta-1</version>
> <configuration>
> <warName>esse3</warName>
> <warSourceDirectory>web</warSourceDirectory>
> <failOnMissingWebXml>false</failOnMissingWebXml>
> </configuration>
> </plugin>
> </plugins>
> </build>
> {code}
> webX pom is like this:
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.1-beta-1</version>
> <configuration>
> <warName>esse3</warName>
> <failOnMissingWebXml>true</failOnMissingWebXml>
> <warSourceDirectory>web</warSourceDirectory>
> <overlays>
> <overlay>
> <groupId>it.kion.esse3</groupId>
> <artifactId>webCommon</artifactId>
> </overlay>
> </overlays>
> </configuration>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MWAR-222) War overlay copy warSourceDirectory of
the source in the dependent WEB-INF/classes
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MWAR-222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MWAR-222:
---------------------------------
Component/s: overlay
Description:
I have a webCommon project sharing its content with webA, webB project via overlay mechanism.
The resulting war in webA and webB project have webCommon webapps (web is my warSourceDirectory) content in the root and in WEB-INF/classes too!
Why? Is this the right behavior? How to avoid it?
webCommon pom.xml is like that:
{code:xml}
<packaging>war</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-1</version>
<configuration>
<warName>esse3</warName>
<warSourceDirectory>web</warSourceDirectory>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
{code}
webX pom is like this:
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-1</version>
<configuration>
<warName>esse3</warName>
<failOnMissingWebXml>true</failOnMissingWebXml>
<warSourceDirectory>web</warSourceDirectory>
<overlays>
<overlay>
<groupId>it.kion.esse3</groupId>
<artifactId>webCommon</artifactId>
</overlay>
</overlays>
</configuration>
</plugin>
{code}
was:
I have a webCommon project sharing its content with webA, webB project via overlay mechanism.
The resulting war in webA and webB project have webCommon webapps (web is my warSourceDirectory) content in the root and in WEB-INF/classes too!
Why? Is this the right behavior? How to avoid it?
webCommon pom.xml is like that:
<packaging>war</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-1</version>
<configuration>
<warName>esse3</warName>
<warSourceDirectory>web</warSourceDirectory>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
webX pom is like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-1</version>
<configuration>
<warName>esse3</warName>
<failOnMissingWebXml>true</failOnMissingWebXml>
<warSourceDirectory>web</warSourceDirectory>
<overlays>
<overlay>
<groupId>it.kion.esse3</groupId>
<artifactId>webCommon</artifactId>
</overlay>
</overlays>
</configuration>
</plugin>
> War overlay copy warSourceDirectory of the source in the dependent WEB-INF/classes
> -----------------------------------------------------------------------------------
>
> Key: MWAR-222
> URL: https://jira.codehaus.org/browse/MWAR-222
> Project: Maven 2.x WAR Plugin
> Issue Type: Bug
> Components: overlay
> Affects Versions: 2.1-beta-1
> Reporter: Matteo Turra
>
> I have a webCommon project sharing its content with webA, webB project via overlay mechanism.
> The resulting war in webA and webB project have webCommon webapps (web is my warSourceDirectory) content in the root and in WEB-INF/classes too!
> Why? Is this the right behavior? How to avoid it?
> webCommon pom.xml is like that:
> {code:xml}
> <packaging>war</packaging>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.1-beta-1</version>
> <configuration>
> <warName>esse3</warName>
> <warSourceDirectory>web</warSourceDirectory>
> <failOnMissingWebXml>false</failOnMissingWebXml>
> </configuration>
> </plugin>
> </plugins>
> </build>
> {code}
> webX pom is like this:
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.1-beta-1</version>
> <configuration>
> <warName>esse3</warName>
> <failOnMissingWebXml>true</failOnMissingWebXml>
> <warSourceDirectory>web</warSourceDirectory>
> <overlays>
> <overlay>
> <groupId>it.kion.esse3</groupId>
> <artifactId>webCommon</artifactId>
> </overlay>
> </overlays>
> </configuration>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MWAR-222) War overlay copy warSourceDirectory of
the source in the dependent WEB-INF/classes
Posted by "Matteo Turra (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MWAR-222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=283427#comment-283427 ]
Matteo Turra commented on MWAR-222:
-----------------------------------
Sorry. I can't reproduce this issue.
> War overlay copy warSourceDirectory of the source in the dependent WEB-INF/classes
> -----------------------------------------------------------------------------------
>
> Key: MWAR-222
> URL: https://jira.codehaus.org/browse/MWAR-222
> Project: Maven 2.x WAR Plugin
> Issue Type: Bug
> Components: overlay
> Affects Versions: 2.1-beta-1
> Reporter: Matteo Turra
> Attachments: MWAR-222.ZIP
>
>
> I have a webCommon project sharing its content with webA, webB project via overlay mechanism.
> The resulting war in webA and webB project have webCommon webapps (web is my warSourceDirectory) content in the root and in WEB-INF/classes too!
> Why? Is this the right behavior? How to avoid it?
> webCommon pom.xml is like that:
> {code:xml}
> <packaging>war</packaging>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.1-beta-1</version>
> <configuration>
> <warName>esse3</warName>
> <warSourceDirectory>web</warSourceDirectory>
> <failOnMissingWebXml>false</failOnMissingWebXml>
> </configuration>
> </plugin>
> </plugins>
> </build>
> {code}
> webX pom is like this:
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.1-beta-1</version>
> <configuration>
> <warName>esse3</warName>
> <failOnMissingWebXml>true</failOnMissingWebXml>
> <warSourceDirectory>web</warSourceDirectory>
> <overlays>
> <overlay>
> <groupId>it.kion.esse3</groupId>
> <artifactId>webCommon</artifactId>
> </overlay>
> </overlays>
> </configuration>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MWAR-222) War overlay copy warSourceDirectory of
the source in the dependent WEB-INF/classes
Posted by "Matteo Turra (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MWAR-222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matteo Turra updated MWAR-222:
------------------------------
Attachment: MWAR-222.ZIP
Use case
> War overlay copy warSourceDirectory of the source in the dependent WEB-INF/classes
> -----------------------------------------------------------------------------------
>
> Key: MWAR-222
> URL: https://jira.codehaus.org/browse/MWAR-222
> Project: Maven 2.x WAR Plugin
> Issue Type: Bug
> Components: overlay
> Affects Versions: 2.1-beta-1
> Reporter: Matteo Turra
> Attachments: MWAR-222.ZIP
>
>
> I have a webCommon project sharing its content with webA, webB project via overlay mechanism.
> The resulting war in webA and webB project have webCommon webapps (web is my warSourceDirectory) content in the root and in WEB-INF/classes too!
> Why? Is this the right behavior? How to avoid it?
> webCommon pom.xml is like that:
> {code:xml}
> <packaging>war</packaging>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.1-beta-1</version>
> <configuration>
> <warName>esse3</warName>
> <warSourceDirectory>web</warSourceDirectory>
> <failOnMissingWebXml>false</failOnMissingWebXml>
> </configuration>
> </plugin>
> </plugins>
> </build>
> {code}
> webX pom is like this:
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.1-beta-1</version>
> <configuration>
> <warName>esse3</warName>
> <failOnMissingWebXml>true</failOnMissingWebXml>
> <warSourceDirectory>web</warSourceDirectory>
> <overlays>
> <overlay>
> <groupId>it.kion.esse3</groupId>
> <artifactId>webCommon</artifactId>
> </overlay>
> </overlays>
> </configuration>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MWAR-222) War overlay copy warSourceDirectory of
the source in the dependent WEB-INF/classes
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MWAR-222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231772#action_231772 ]
Dennis Lundberg commented on MWAR-222:
--------------------------------------
Can you please add a sample project that we can use to test this issue?
> War overlay copy warSourceDirectory of the source in the dependent WEB-INF/classes
> -----------------------------------------------------------------------------------
>
> Key: MWAR-222
> URL: http://jira.codehaus.org/browse/MWAR-222
> Project: Maven 2.x WAR Plugin
> Issue Type: Bug
> Affects Versions: 2.1-beta-1
> Reporter: Matteo Turra
>
> I have a webCommon project sharing its content with webA, webB project via overlay mechanism.
> The resulting war in webA and webB project have webCommon webapps (web is my warSourceDirectory) content in the root and in WEB-INF/classes too!
> Why? Is this the right behavior? How to avoid it?
> webCommon pom.xml is like that:
> <packaging>war</packaging>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.1-beta-1</version>
> <configuration>
> <warName>esse3</warName>
> <warSourceDirectory>web</warSourceDirectory>
> <failOnMissingWebXml>false</failOnMissingWebXml>
> </configuration>
> </plugin>
> </plugins>
> </build>
> webX pom is like this:
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.1-beta-1</version>
> <configuration>
> <warName>esse3</warName>
> <failOnMissingWebXml>true</failOnMissingWebXml>
> <warSourceDirectory>web</warSourceDirectory>
> <overlays>
> <overlay>
> <groupId>it.kion.esse3</groupId>
> <artifactId>webCommon</artifactId>
> </overlay>
> </overlays>
> </configuration>
> </plugin>
--
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