[ 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