javaee / metro-jaxws-commons

Metro has been contributed to Eclipse Foundation. This repository is for legacy review only. Please refer to the Eclipse EE4J Metro project for the very latest
https://eclipse-ee4j.github.io/metro-wsit/
Other
10 stars 9 forks source link

Warning about file not found should not happen for test dependencies #115

Open glassfishrobot opened 10 years ago

glassfishrobot commented 10 years ago

List files = new ArrayList(); 528 @SuppressWarnings("unchecked") 529 Set dependencyArtifacts = project.getDependencyArtifacts(); 530 List urlCpath = new ArrayList(dependencyArtifacts.size()); 531 for (Artifact a: dependencyArtifacts) { // SHOULD CHECK IF a is a compiled or runtime dependency (skip test or provided etc) 532 try { 533 if (a.getFile() != null)

{ 534 @SuppressWarnings("deprecation") 535 URL u = new File(a.getFile().toURI()).toURL(); 536 urlCpath.add(u); 537 }

else

{ 538 getLog().warn("cannot find file for " + a.getGroupId() + ":" + a.getArtifactId()); 539 }

540 } catch (MalformedURLException ex)

{ 541 Logger.getLogger(WsImportMojo.class.getName()).log(Level.SEVERE, null, ex); 542 }

543 }

Affected Versions

[2.3]

glassfishrobot commented 10 years ago

Reported by atrajano

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAX_WS_COMMONS-115