code: private List<Resource> getResources( final MavenProject project, final String scope )
      {
          if ( SCOPE_COMPILE.equals( scope ) || SCOPE_RUNTIME.equals( scope ) )
          {
              return project.getResources();
          }
          else if ( SCOPE_TEST.equals( scope ) )
          {
              List<Resource> resources = new ArrayList<Resource>();
              resources.addAll( project.getTestResources() );
              resources.addAll( project.getResources() );
              return resources;
          }
          else
          {
              throw new RuntimeException( "Not allowed scope " + scope );
          }
      }
docs: Get resources for specific scope.
  
  @param project
  @param scope
  @return