private Dependency createSystemScopeDependency(Artifact artifact, File location, String suffix) { String artifactId = artifact.getArtifactId(); if (suffix != null) { artifactId = "_" + suffix; } final Dependency dependency = new Dependency(); dependency.setGroupId(artifact.getGroupId()); dependency.setArtifactId(artifactId); dependency.setVersion(artifact.getVersion()); dependency.setScope(Artifact.SCOPE_SYSTEM); dependency.setSystemPath(location.getAbsolutePath()); return dependency; }