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 2012/09/26 00:51:36 UTC
[jira] (MWAR-202) "directory" parameter should be declared as
required in webResources/resource or correctly checked
[ https://jira.codehaus.org/browse/MWAR-202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed MWAR-202.
--------------------------------
Resolution: Duplicate
> "directory" parameter should be declared as required in webResources/resource or correctly checked
> --------------------------------------------------------------------------------------------------
>
> Key: MWAR-202
> URL: https://jira.codehaus.org/browse/MWAR-202
> Project: Maven 2.x WAR Plugin
> Issue Type: Improvement
> Affects Versions: 2.1-beta-1
> Environment: Maven 2.x
> Reporter: Fabrice Daugan
> Priority: Trivial
> Attachments: stacktrace.txt
>
>
> In "org.apache.maven.plugin.war.packaging.WarProjectPackagingTask" class the "directory" parameter value is not checked during the war goal.
> With the below plugin configuration I obtain the attached stacktrace :
> {code:xml}
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <webResources>
> <resource>
> <!--
> <directory>.gwt-hosted</directory>
> -->
> </resource>
> </webResources>
> </configuration>
> </plugin>
> {code}
> So, "directory" parameter should be checked before :
> {noformat}
> 120 : new File( resource.getDirectory() )
> {noformat}
> is executed.
--
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