You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jochen Wiedmann (JIRA)" <ji...@apache.org> on 2015/04/16 13:07:00 UTC
[jira] [Updated] (MNG-5801) Unable to set webappDirectory
[ https://issues.apache.org/jira/browse/MNG-5801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jochen Wiedmann updated MNG-5801:
---------------------------------
Attachment: demoCleanInstall.log
demo.tar.gz
The attached file demo.tar.gz contains the project, that reproduces the problem for me.
The attached log file demonstrates, that the problem is not within the maven-war-fille, because it is invoked with the wrong default value for webappDirectory, and my configured value is ignored:
[DEBUG] Goal: org.apache.maven.plugins:maven-war-plugin:2.2:war (defaul
t-war)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
</configuration>
...
<webappDirectory default-value="${project.build.directory}/${project.build.finalName}"/>
<workDirectory default-value="${project.build.directory}/war/work"/>
</configuration>
> Unable to set webappDirectory
> -----------------------------
>
> Key: MNG-5801
> URL: https://issues.apache.org/jira/browse/MNG-5801
> Project: Maven
> Issue Type: Bug
> Components: Inheritance and Interpolation
> Affects Versions: 3.3.1
> Environment: Windows 7, Java 1.7.0_76
> Reporter: Jochen Wiedmann
> Attachments: demo.tar.gz, demoCleanInstall.log
>
>
> I've got a war project (see attached zip file), which contains the configuration snippet below. As a consequence, I'd expect the assembled webapp to be in target/my-webapp. However, it is in target/demo-0.0.1-SNAPSHOT.
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugin</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.2</version>
> <configuration>
> <webappDirectory>${project.build.directory}/my-webapp</webappDirectory>
> </configuration>
> </plugin>
> </plugins>
> </build>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)