|
37 | 37 |
|
38 | 38 | import com.google.inject.Module; |
39 | 39 | import org.apache.maven.artifact.Artifact; |
| 40 | +import org.apache.maven.artifact.DefaultArtifact; |
| 41 | +import org.apache.maven.artifact.handler.DefaultArtifactHandler; |
40 | 42 | import org.apache.maven.artifact.versioning.DefaultArtifactVersion; |
41 | 43 | import org.apache.maven.execution.DefaultMavenExecutionRequest; |
42 | 44 | import org.apache.maven.execution.DefaultMavenExecutionResult; |
|
53 | 55 | import org.apache.maven.plugin.descriptor.PluginDescriptor; |
54 | 56 | import org.apache.maven.plugin.descriptor.PluginDescriptorBuilder; |
55 | 57 | import org.apache.maven.project.MavenProject; |
56 | | -import org.apache.maven.repository.RepositorySystem; |
57 | 58 | import org.apache.maven.repository.internal.MavenRepositorySystemUtils; |
58 | 59 | import org.codehaus.plexus.ContainerConfiguration; |
59 | 60 | import org.codehaus.plexus.DefaultContainerConfiguration; |
@@ -140,12 +141,14 @@ protected void setUp() throws Exception { |
140 | 141 |
|
141 | 142 | PluginDescriptor pluginDescriptor = new PluginDescriptorBuilder().build(interpolationReader); |
142 | 143 |
|
143 | | - Artifact artifact = lookup(RepositorySystem.class) |
144 | | - .createArtifact( |
145 | | - pluginDescriptor.getGroupId(), |
146 | | - pluginDescriptor.getArtifactId(), |
147 | | - pluginDescriptor.getVersion(), |
148 | | - ".jar"); |
| 144 | + Artifact artifact = new DefaultArtifact( |
| 145 | + pluginDescriptor.getGroupId(), |
| 146 | + pluginDescriptor.getArtifactId(), |
| 147 | + pluginDescriptor.getVersion(), |
| 148 | + null, |
| 149 | + "jar", |
| 150 | + null, |
| 151 | + new DefaultArtifactHandler("jar")); |
149 | 152 |
|
150 | 153 | artifact.setFile(getPluginArtifactFile()); |
151 | 154 | pluginDescriptor.setPluginArtifact(artifact); |
|
0 commit comments