@Test public void deployTest() throws Exception { File jar = createJar(); DistributionManagement distributionManagement = newDistributionManagement() .withRepository(newDeploymentRepository() .withId("server") .withUrl(localRepo.toURI().toURL().toString())).build(); aether(localRepo, mavenSettings).deploy(distributionManagement, jar, "testGroupId", "testArtifactId", "testVersion"); File artifactDirectory = directoryContains(localRepo, "testGroupId", "testArtifactId", "testVersion"); assertThat(artifactDirectory, DirectoryMatcher.contains("testArtifactId-testVersion.jar", "testArtifactId-testVersion.pom")); }
public void deploy(DistributionManagement distribution, File jar, String groupId, String artifactId, String version) throws AetherException { deploy(distribution, jar, groupId, artifactId, JAR, version); }
Aether { public void deploy(DistributionManagement distribution, File jar, String groupId, String artifactId, String version) throws AetherException { deploy(distribution, jar, groupId, artifactId, JAR, version); } }
Aether { public void deploy(DistributionManagement distribution, File jar, String groupId, String artifactId, String version) throws AetherException { deploy(distribution, jar, groupId, artifactId, JAR, version); } Aether(File localRepoDir, Settings settings);   Aether(RepositorySystem system, RepositorySystemSession session, List<RemoteRepository> repositories); }
Aether { public void deploy(DistributionManagement distribution, File jar, String groupId, String artifactId, String version) throws AetherException { deploy(distribution, jar, groupId, artifactId, JAR, version); } Aether(File localRepoDir, Settings settings);   Aether(RepositorySystem system, RepositorySystemSession session, List<RemoteRepository> repositories); static Aether aether(File localRepoDir); static Aether aether(File localRepoDir, Settings settings); static Aether aether(Settings settings); static Aether aether(RepositorySystem system, RepositorySystemSession session, List<RemoteRepository> repositories); Aether scope(String scope); AetherResult resolve(String artifactCoordinates); AetherResult resolve(Artifact artifact); AetherResult resolve(String artifactCoordinates, boolean withTransitives); AetherResult resolve(Artifact artifact, boolean withTransitives); AetherResult resolveAll(String... artifactsCoordinates); AetherResult resolveAll(Artifact... artifacts); List<Artifact> collect(String artifactCoordinates); List<Artifact> collect(Artifact artifact); void install(File jar, String groupId, String artifactId, String version); void install(File jar, String groupId, String artifactId, String extension, String version); void install(File jar, String groupId, String artifactId, String classifier, String extension, String version); void install(File jar, File pom, String groupId, String artifactId, String classifier, String extension, String version); void install(Artifact... artifacts); void deploy(DistributionManagement distribution, File jar, String groupId, String artifactId, String version); void deploy(DistributionManagement distribution, File jar, String groupId, String artifactId,
                       String extension, String version); void deploy(DistributionManagement distribution, File jar, String groupId, String artifactId,
                       String classifier, String extension, String version); void deploy(DistributionManagement distribution, File jar, File pom, String groupId, String artifactId,
                       String classifier, String extension, String version); void deploy(DistributionManagement distribution, Artifact... artifacts); }
Aether { public void deploy(DistributionManagement distribution, File jar, String groupId, String artifactId, String version) throws AetherException { deploy(distribution, jar, groupId, artifactId, JAR, version); } Aether(File localRepoDir, Settings settings);   Aether(RepositorySystem system, RepositorySystemSession session, List<RemoteRepository> repositories); static Aether aether(File localRepoDir); static Aether aether(File localRepoDir, Settings settings); static Aether aether(Settings settings); static Aether aether(RepositorySystem system, RepositorySystemSession session, List<RemoteRepository> repositories); Aether scope(String scope); AetherResult resolve(String artifactCoordinates); AetherResult resolve(Artifact artifact); AetherResult resolve(String artifactCoordinates, boolean withTransitives); AetherResult resolve(Artifact artifact, boolean withTransitives); AetherResult resolveAll(String... artifactsCoordinates); AetherResult resolveAll(Artifact... artifacts); List<Artifact> collect(String artifactCoordinates); List<Artifact> collect(Artifact artifact); void install(File jar, String groupId, String artifactId, String version); void install(File jar, String groupId, String artifactId, String extension, String version); void install(File jar, String groupId, String artifactId, String classifier, String extension, String version); void install(File jar, File pom, String groupId, String artifactId, String classifier, String extension, String version); void install(Artifact... artifacts); void deploy(DistributionManagement distribution, File jar, String groupId, String artifactId, String version); void deploy(DistributionManagement distribution, File jar, String groupId, String artifactId,
                       String extension, String version); void deploy(DistributionManagement distribution, File jar, String groupId, String artifactId,
                       String classifier, String extension, String version); void deploy(DistributionManagement distribution, File jar, File pom, String groupId, String artifactId,
                       String classifier, String extension, String version); void deploy(DistributionManagement distribution, Artifact... artifacts); static final String MAVEN_CENTRAL_URL; static final String POM_EXTENSION; static final String MODEL_VERSION; static final String JAR; static final String POM_XML; static final String AETHER_TEMP_FILE_PREFIX; }