maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Wiedmann (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MNG-5801) Unable to set webappDirectory
Date Thu, 16 Apr 2015 11:07:00 GMT

     [ 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)

Mime
View raw message