make sure compile time dependencies (the default) are bundled too

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163719 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-03-30 08:22:24 +00:00
parent e190b0b2f5
commit 9209aaf3b6
1 changed files with 3 additions and 1 deletions

View File

@ -205,7 +205,9 @@ public class WarMojo
{
Artifact artifact = (Artifact) iter.next();
if ( "jar".equals( artifact.getType() ) && Artifact.SCOPE_RUNTIME.equals( artifact.getScope() ) )
// TODO: scope handler
// Include runtime and compile time libraries
if ( "jar".equals( artifact.getType() ) && !Artifact.SCOPE_TEST.equals( artifact.getScope() ) )
{
FileUtils.copyFileToDirectory( artifact.getFile(), libDirectory );
}