mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-11 13:39:32 +00:00
Make sure our CachingProjectBuilder is used, fixes #218
This commit is contained in:
@@ -75,6 +75,7 @@ import org.eclipse.aether.repository.RemoteRepository;
|
|||||||
import org.eclipse.aether.repository.WorkspaceRepository;
|
import org.eclipse.aether.repository.WorkspaceRepository;
|
||||||
import org.eclipse.aether.resolution.ArtifactRequest;
|
import org.eclipse.aether.resolution.ArtifactRequest;
|
||||||
import org.eclipse.aether.resolution.ArtifactResult;
|
import org.eclipse.aether.resolution.ArtifactResult;
|
||||||
|
import org.eclipse.sisu.Priority;
|
||||||
import org.eclipse.sisu.Typed;
|
import org.eclipse.sisu.Typed;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -86,6 +87,7 @@ import org.eclipse.sisu.Typed;
|
|||||||
@Named
|
@Named
|
||||||
@Singleton
|
@Singleton
|
||||||
@Typed(ProjectBuilder.class)
|
@Typed(ProjectBuilder.class)
|
||||||
|
@Priority(10)
|
||||||
public class CachingProjectBuilder
|
public class CachingProjectBuilder
|
||||||
implements ProjectBuilder {
|
implements ProjectBuilder {
|
||||||
|
|
||||||
|
@@ -83,7 +83,7 @@ public class NewManagedModuleNativeIT {
|
|||||||
{
|
{
|
||||||
final TestClientOutput output = new TestClientOutput();
|
final TestClientOutput output = new TestClientOutput();
|
||||||
cl.execute(output, "clean", "install", "-e", "-B", "-ntp")
|
cl.execute(output, "clean", "install", "-e", "-B", "-ntp")
|
||||||
.assertFailure(); // Switch back to assertSuccess() once https://github.com/mvndaemon/mvnd/issues/218 is fixed
|
.assertSuccess();
|
||||||
}
|
}
|
||||||
Assertions.assertThat(registry.getAll().size()).isEqualTo(1);
|
Assertions.assertThat(registry.getAll().size()).isEqualTo(1);
|
||||||
|
|
||||||
|
@@ -77,7 +77,7 @@ public class UpgradesInBomNativeIT {
|
|||||||
{
|
{
|
||||||
final TestClientOutput output = new TestClientOutput();
|
final TestClientOutput output = new TestClientOutput();
|
||||||
cl.execute(output, "clean", "install", "-e")
|
cl.execute(output, "clean", "install", "-e")
|
||||||
.assertFailure(); // Switch back to assertSuccess() once https://github.com/mvndaemon/mvnd/issues/218 is fixed
|
.assertSuccess();
|
||||||
}
|
}
|
||||||
Assertions.assertThat(registry.getAll().size()).isEqualTo(1);
|
Assertions.assertThat(registry.getAll().size()).isEqualTo(1);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user