Search in sources :

Example 1 with AetherResult

use of io.fabric8.insight.maven.aether.AetherResult in project fabric8 by fabric8io.

the class ArchetypeTest method assertArchetypeCreated.

private void assertArchetypeCreated(String artifactId, String groupId, String version) throws Exception {
    AetherResult result = aether.resolve(groupId, artifactId, version);
    List<File> files = result.getResolvedFiles();
    assertTrue("No files resolved for " + artifactId + " version: " + version, files.size() > 0);
    File archetypejar = files.get(0);
    assertTrue("archetype jar does not exist", archetypejar.exists());
    assertArchetypeCreated(artifactId, groupId, version, archetypejar);
}
Also used : AetherResult(io.fabric8.insight.maven.aether.AetherResult) File(java.io.File)

Aggregations

AetherResult (io.fabric8.insight.maven.aether.AetherResult)1 File (java.io.File)1