You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Fabrice Daugan (JIRA)" <ji...@codehaus.org> on 2009/07/15 16:09:23 UTC
[jira] Created: (MWAR-202) "directory" parameter should be declared
as required in webResources/resource or correctly checked
"directory" parameter should be declared as required in webResources/resource or correctly checked
--------------------------------------------------------------------------------------------------
Key: MWAR-202
URL: http://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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MWAR-202) "directory" parameter should be declared as
required in webResources/resource or correctly checked
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Commented: (MWAR-202) "directory" parameter should be
declared as required in webResources/resource or correctly checked
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MWAR-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=183769#action_183769 ]
Stephane Nicoll commented on MWAR-202:
--------------------------------------
Ah good catch.
> "directory" parameter should be declared as required in webResources/resource or correctly checked
> --------------------------------------------------------------------------------------------------
>
> Key: MWAR-202
> URL: http://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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira