You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2010/08/12 09:06:32 UTC
[jira] Updated: (MWAR-25) war:inplace ignores web.xml if defined in
an alwaysactive profile
[ http://jira.codehaus.org/browse/MWAR-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MWAR-25:
--------------------------------
Description:
Problem:
the war:inplace generates the dir structure without the web.xml
Context:
simple web application defined,
src/main/webapp/WEB-INF exists and contains configuration files, but not web.xml
web.xml is defined in 3 profiles, one is like this
{code:xml}
<profiles>
<profile>
<id>localdev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
...
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<configuration>
<webXml>src/localdev/WEB-INF/web.xml</webXml>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<classifier>localdev</classifier>
</properties>
</profile>
{code}
when running mvn war:inplace no web.xml is put in WEB-INF
was:
Problem:
the war:inplace generates the dir structure without the web.xml
Context:
simple web application defined,
src/main/webapp/WEB-INF exists and contains configuration files, but not web.xml
web.xml is defiened in 3 profiles, one is like this
<profiles>
<profile>
<id>localdev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
...
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<configuration>
<webXml>src/localdev/WEB-INF/web.xml</webXml>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<classifier>localdev</classifier>
</properties>
</profile>
when runing mvn war:inplace no web.xml is put in WEB-INF
> war:inplace ignores web.xml if defined in an alwaysactive profile
> -----------------------------------------------------------------
>
> Key: MWAR-25
> URL: http://jira.codehaus.org/browse/MWAR-25
> Project: Maven 2.x WAR Plugin
> Issue Type: Bug
> Reporter: Miguel Griffa
>
> Problem:
> the war:inplace generates the dir structure without the web.xml
> Context:
> simple web application defined,
> src/main/webapp/WEB-INF exists and contains configuration files, but not web.xml
> web.xml is defined in 3 profiles, one is like this
> {code:xml}
> <profiles>
> <profile>
> <id>localdev</id>
> <activation>
> <activeByDefault>true</activeByDefault>
> </activation>
> <dependencies>
> ...
> </dependencies>
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-war-plugin</artifactId>
> <groupId>org.apache.maven.plugins</groupId>
> <configuration>
> <webXml>src/localdev/WEB-INF/web.xml</webXml>
> </configuration>
> </plugin>
> </plugins>
> </build>
> <properties>
> <classifier>localdev</classifier>
> </properties>
> </profile>
> {code}
> when running mvn war:inplace no web.xml is put in WEB-INF
--
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