예제 #1
0
 Artifact createArtifact(
     File file,
     String groupId,
     String artifactId,
     String version,
     String scope,
     String type,
     String classifier) {
   DefaultArtifact artifact =
       new DefaultArtifact(groupId, artifactId, version, scope, type, classifier, artifactHandler);
   artifact.setFile(file);
   artifact.setResolved(true);
   return artifact;
 }
예제 #2
0
 private static DefaultArtifact createP2Artifact(
     ArtifactFacade projectDefaultArtifact,
     String extension,
     String classifier,
     String p2ArtifactFileName,
     File targetDir) {
   DefaultArtifact p2Artifact =
       new DefaultArtifact(
           projectDefaultArtifact.getGroupId(),
           projectDefaultArtifact.getArtifactId(),
           projectDefaultArtifact.getVersion(),
           null,
           extension,
           classifier,
           null);
   p2Artifact.setFile(new File(targetDir, p2ArtifactFileName));
   return p2Artifact;
 }