Package org.apache.maven.index.artifact

Examples of org.apache.maven.index.artifact.Gav


    createPrivs();

    resetTestUserPrivs(false);

    // create failure
    Gav gav = GavUtil.newGav("nxcm1985", "artifact", "1.0");
    int status =
        getDeployUtils().deployUsingGavWithRest(getTestRepositoryId(), gav, getTestFile("artifact.jar"));
    Assert.assertEquals("Status", status, 403);

    resetTestUserPrivs(true);
View Full Code Here


  @Category(PROXY.class)
  public void blockProxy()
      throws Exception
  {

    Gav gav =
        new Gav(this.getTestId(), "block-proxy-download-test", "1.1.a", null, "jar", 0, new Date().getTime(),
            "Simple Test Artifact", false, null, false, null);

    // download file
    File originalFile = this.downloadArtifact(getNexusTestRepoUrl(), gav, "target/downloads/original");
View Full Code Here

  @Before
  public void createGav1()
      throws Exception
  {
    this.gavArtifact1 =
        new Gav("nexus1560", "artifact", "1.0", null, "jar", null, null, null, false, null, false, null);
    this.gavArtifact2 =
        new Gav("nexus1560", "artifact", "2.0", null, "jar", null, null, null, false, null, false, null);
  }
View Full Code Here

  public void deployWithMaven()
      throws Exception
  {

    // GAV
    Gav gav =
        new Gav(this.getTestId(), "artifact", "1.0.0", null, "xml", 0, new Date().getTime(), "", false,
            null, false, null);

    // file to deploy
    File fileToDeploy = this.getTestFile(gav.getArtifactId() + "." + gav.getExtension());

    // we need to delete the files...
    this.deleteFromRepository(getTestRepositoryId(), this.getTestId() + "/");

    try {
View Full Code Here

  public void deployWithMaven()
      throws Exception
  {

    // GAV
    Gav gav =
        new Gav(this.getTestId(), "artifact", "1.0.0-SNAPSHOT", null, "xml", 0, new Date().getTime(), "",
            false, null, false, null);

    // file to deploy
    File fileToDeploy = this.getTestFile(gav.getArtifactId() + "." + gav.getExtension());

    // we need to delete the files...
    this.deleteFromRepository(getTestRepositoryId(), this.getTestId() + "/");

    try {
View Full Code Here

  @Test
  public void deployReleaseToSnapshot()
      throws Exception
  {
    Gav gav =
        new Gav(this.getTestId(), "simpleArtifact", "1.0.0-SNAPSHOT", null, "xml", 0,
            new Date().getTime(), "Simple Test Artifact", false, null, false, null);

    // file to deploy
    File fileToDeploy =
        this.getTestFile(gav.getArtifactId() + "." + gav.getExtension());

    try {
      // deploy it
      // this should fail
      getDeployUtils().deployWithWagon("http", this.getNexusTestRepoUrl(), fileToDeploy,
View Full Code Here

      model = reader.read(fis, true);
    }

    String deployUrl = model.getDistributionManagement().getRepository().getUrl();

    Gav gav =
        new Gav(model.getGroupId(), model.getArtifactId(), model.getVersion(), null, model.getPackaging(), 0,
            new Date().getTime(), model.getName(), false, null, false, null);

    // Multi repository deploy
    getDeployUtils().deployWithWagon("http", deployUrl, fileToDeploy, getRelitiveArtifactPath(gav));
    getDeployUtils().deployWithWagon("http",
View Full Code Here

  @Test
  public void deployUsingRest()
      throws Exception
  {

    Gav gav =
        new Gav(this.getTestId(), "uploadWithGav", "1.0.0-SNAPSHOT", null, "xml", 0,
            new Date().getTime(), "Simple Test Artifact", false, null, false, null);

    // file to deploy
    File fileToDeploy =
        this.getTestFile(gav.getArtifactId() + "." + gav.getExtension());

    // the Restlet Client does not support multipart forms: http://restlet.tigris.org/issues/show_bug.cgi?id=71

    // url to upload to
    String uploadURL = this.getBaseNexusUrl() + "service/local/artifact/maven/content";
View Full Code Here

  @Test
  public void deployReleaseToSnapshot()
      throws Exception
  {
    Gav gav = new Gav(
        this.getTestId(),
        "simpleArtifact",
        "1.0.0",
        null,
        "xml",
        0,
        new Date().getTime(),
        "Simple Test Artifact",
        false,
        null,
        false,
        null);

    // file to deploy
    File fileToDeploy = this.getTestFile(gav.getArtifactId() + "." + gav.getExtension());

    try {
      // deploy it
      // this should fail
      getDeployUtils().deployWithWagon("http", this.getNexusTestRepoUrl(), fileToDeploy,
View Full Code Here

  @Test
  public void deploywithGavUsingRest()
      throws Exception
  {

    Gav gav =
        new Gav(this.getTestId(), "uploadWithGav", "1.0.0", null, "xml", 0,
            new Date().getTime(), "Simple Test Artifact", false, null, false, null);

    // file to deploy
    File fileToDeploy =
        this.getTestFile(gav.getArtifactId() + "." + gav.getExtension());

    // the Restlet Client does not support multipart forms: http://restlet.tigris.org/issues/show_bug.cgi?id=71

    // url to upload to
    String uploadURL = this.getBaseNexusUrl() + "service/local/artifact/maven/content";
View Full Code Here

TOP

Related Classes of org.apache.maven.index.artifact.Gav

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.