public ImportPackageBuilder withDependenciesFromProject()

in src/main/java/org/apache/jackrabbit/filevault/maven/packaging/impl/ImportPackageBuilder.java [148:165]


    public ImportPackageBuilder withDependenciesFromProject(@NotNull MavenProject project) {
        artifacts = new ArrayList<Artifact>();
        for (Artifact a : project.getDependencyArtifacts()) {
            if (!filter.include(a)) {
                continue;
            }
            // skip all test dependencies (all other scopes are potentially relevant)
            if (Artifact.SCOPE_TEST.equals(a.getScope())) {
                continue;
            }
            // type of the considered dependencies must be either "jar" or "bundle"
            if (!"jar".equals(a.getType()) && (!"bundle".equals(a.getType()))) {
                continue;
            }
            artifacts.add(a);
        }
        return this;
    }