org.apache.maven.plugin.testing.stubs.ArtifactStub#setArtifactId ( )源码实例Demo

下面列出了org.apache.maven.plugin.testing.stubs.ArtifactStub#setArtifactId ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: deadcode4j   文件: A_ModuleGenerator.java
private MavenProject givenMavenProject(String projectId) {
    MavenProject mavenProject = new MavenProject();
    mavenProject.setGroupId("de.is24.junit");
    mavenProject.setArtifactId(projectId);
    mavenProject.setVersion("42");
    mavenProject.getProperties().setProperty("project.build.sourceEncoding", "UTF-8");
    ArtifactStub projectArtifact = new ArtifactStub();
    projectArtifact.setGroupId("de.is24.junit");
    projectArtifact.setArtifactId(projectId);
    projectArtifact.setVersion("42");
    mavenProject.setArtifact(projectArtifact);
    Build build = new Build();
    build.setOutputDirectory(tempFileRule.getTempFile().getParent());
    mavenProject.setBuild(build);
    return mavenProject;
}
 
源代码2 项目: deadcode4j   文件: ProjectStub.java
public ProjectStub() {
    ArtifactStub artifact = new ArtifactStub();
    artifact.setGroupId("de.is24.junit");
    artifact.setArtifactId("project");
    artifact.setVersion("42");
    setArtifact(artifact);
    setGroupId(artifact.getGroupId());
    setArtifactId(artifact.getArtifactId());
    setVersion(artifact.getVersion());
    setPackaging("jar");

    setCompileSourceRoots(newArrayList("src/test/java/"));

    properties.setProperty("project.build.sourceEncoding", "UTF-8");
}