forked from pool/plexus-containers
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
--- plexus-containers-2.2.0/plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/ClassComponentDescriptorExtractor.java 2024-05-15 18:50:14.906335826 +0200
|
|
+++ plexus-containers-2.2.0/plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/ClassComponentDescriptorExtractor.java 2024-05-15 18:52:35.743977916 +0200
|
|
@@ -23,7 +23,6 @@
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
-import org.apache.maven.plugin.MojoExecutionException;
|
|
import org.codehaus.plexus.component.annotations.Component;
|
|
import org.codehaus.plexus.component.repository.ComponentDescriptor;
|
|
import org.codehaus.plexus.metadata.gleaner.AnnotationComponentGleaner;
|
|
@@ -81,11 +80,7 @@
|
|
|
|
// Add the projects dependencies
|
|
for (String filename : elements) {
|
|
- try {
|
|
list.add(new File(filename).toURI().toURL());
|
|
- } catch (MalformedURLException e) {
|
|
- throw new MojoExecutionException("Invalid classpath entry: " + filename, e);
|
|
- }
|
|
}
|
|
|
|
URL[] urls = list.toArray(new URL[list.size()]);
|