Package org.apache.maven.index.artifact

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


  @Test
  public void deploywithPomUsingRest()
      throws Exception
  {

    Gav gav =
        new Gav(this.getTestId(), "uploadWithPom", "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());

    File pomFile =
        this.getTestFile("pom.xml");

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


  }

  @Before
  public void setUp() {
    repo1BarArtifact =
        new Gav(this.getTestId(), "repo1-bar-artifact", "1.0.0", null, "jar", 0, new Date().getTime(),
            "repo1-bar-artifact", false, null, false, null);
    repo1FooArtifact =
        new Gav(this.getTestId(), "repo1-foo-artifact", "1.0.0", null, "jar", 0, new Date().getTime(),
            "repo1-foo-artifact", false, null, false, null);
    repo2BarArtifact =
        new Gav(this.getTestId(), "repo2-bar-artifact", "1.0.0", null, "jar", 0, new Date().getTime(),
            "repo2-bar-artifact", false, null, false, null);
    repo2FooArtifact =
        new Gav(this.getTestId(), "repo2-foo-artifact", "1.0.0", null, "jar", 0, new Date().getTime(),
            "repo2-foo-artifact", false, null, false, null);

    repo1BarArtifactDelete =
        new Gav(this.getTestId(), "repo1-bar-artifact-delete", "1.0.0", null, "jar", 0, new Date().getTime(),
            "repo1-bar-artifact-delete", false, null, false, null);
    repo1FooArtifactDelete =
        new Gav(this.getTestId(), "repo1-foo-artifact-delete", "1.0.0", null, "jar", 0, new Date().getTime(),
            "repo1-foo-artifact-delete", false, null, false, null);
    repo2BarArtifactDelete =
        new Gav(this.getTestId(), "repo2-bar-artifact-delete", "1.0.0", null, "jar", 0, new Date().getTime(),
            "repo2-bar-artifact-delete", false, null, false, null);
    repo2FooArtifactDelete =
        new Gav(this.getTestId(), "repo2-foo-artifact-delete", "1.0.0", null, "jar", 0, new Date().getTime(),
            "repo2-foo-artifact-delete", false, null, false, null);
  }
View Full Code Here

  @Test
  public void deployUsingRest()
      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

  @Test
  public void deployWithPomUsingRest()
      throws Exception
  {

    Gav gav =
        new Gav(this.getTestId(), "uploadWithPom", "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());

    File pomFile =
        this.getTestFile("pom.xml");

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

  public void deploywithPomUsingRest()
      throws HttpException,
             Exception
  {

    Gav gav = new Gav(
        this.getTestId(),
        "uploadWithPom",
        "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());

    File pomFile = this.getTestFile("pom.xml");

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

  @Test
  public void wagonDeployTest()
      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());

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

    // the method we are calling
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 deploywithPomUsingRest()
      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());

    File pomFile = this.getTestFile("pom.xml");

    // the Restlet Client does not support multipart forms: http://restlet.tigris.org/issues/show_bug.cgi?id=71
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

  @Test
  public void deploywithPomUsingRest()
      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());

    File pomFile =
        this.getTestFile("pom.xml");

    // the Restlet Client does not support multipart forms: http://restlet.tigris.org/issues/show_bug.cgi?id=71
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.