Package org.apache.maven.plugin.logging

Examples of org.apache.maven.plugin.logging.Log.warn()


            }
          }
          if (r != null)
            reps.add(r);
          else
            log.warn("Could not find artifact repository '" + rid
                + "'");
        }

        if (reps.size() == 0) {
          log.warn("No artifact repositories provided, skipping.");
View Full Code Here


            log.warn("Could not find artifact repository '" + rid
                + "'");
        }

        if (reps.size() == 0) {
          log.warn("No artifact repositories provided, skipping.");
          return;
        }
      } else {
        @SuppressWarnings("unchecked")
        final LinkedList<ArtifactRepository> _tmp = new LinkedList<ArtifactRepository>(
View Full Code Here

      Set<Artifact> missingArtifacts = checkDepNode(rootNode, reps, 0, client, printer);

      printer.printFooter(reps);
     
      if (missingArtifacts.size() > 0) {
        log.warn("unresolved dependencies:");
        for (Artifact missing : missingArtifacts) {
          log.warn("  " + missing.getId());
        }
      }
    } catch (DependencyGraphBuilderException e) {
View Full Code Here

      printer.printFooter(reps);
     
      if (missingArtifacts.size() > 0) {
        log.warn("unresolved dependencies:");
        for (Artifact missing : missingArtifacts) {
          log.warn("  " + missing.getId());
        }
      }
    } catch (DependencyGraphBuilderException e) {
      throw new MojoExecutionException(
          "Cannot build project dependency graph", e);
View Full Code Here

        Log log = getLog();
       
        // Support for the old 'warFiles' mojo parameter.  Apparently
        // the alias for the 'archives' parameter doesn't work properly.
        if (! (warFiles == null || warFiles.isEmpty()) ) {
            log.warn( "'warFiles' parameter is deprecated.  Use 'archives' parameter instead." );
            if ( archives == null ) {
                archives = new ArrayList();
            }
            archives.addAll( warFiles );
        }
View Full Code Here

            archives.addAll( warFiles );
        }
       
        // Warn if the old 'warFilesDestination' mojo parameter is used
        if ( warFilesDestination != null ) {
            log.warn( "'warFilesDestination' parameter is deprecated.  Use 'assemblyOutputDirectory' instead." );
            assemblyOutputDirectory = warFilesDestination;
        }
       
        // If a list of war files are supplied:
        //   1) webXml, portletXml, and webXmlDestination parameters are ignored
View Full Code Here

           
            // verify each file can be found
            for (Iterator i = archives.iterator(); i.hasNext();) {
                File f = new File(i.next().toString());
                if (!f.exists()) {
                    log.warn("File " + f.getAbsolutePath() + " does not exist.");
                    i.remove();
                    continue;
                }
                if (!f.canRead()) {
                    log.warn("File " + f.getAbsolutePath() + " exists but cannot be read.");
View Full Code Here

                    log.warn("File " + f.getAbsolutePath() + " does not exist.");
                    i.remove();
                    continue;
                }
                if (!f.canRead()) {
                    log.warn("File " + f.getAbsolutePath() + " exists but cannot be read.");
                    i.remove();
                    continue;
                }
            }
           
View Full Code Here

                log.info("'dot -?' execution failed so DOT generation disabled.");
                return null;
            }
        }
        if (this.executable == null || this.executable.length() == 0) {
            log.warn("Parameter <executable/> was not set in the pom.xml.  Skipping conversion.");
            return null;
        }

        String generatedFileName = removeFileExtension(file.getAbsolutePath()) + "." + format;
        Commandline cl = new Commandline();
View Full Code Here

        if (output.length() > 0) {
            log.debug(output);
        }
        String errOutput = stderr.getOutput();
        if (errOutput.length() > 0) {
            log.warn(errOutput);
        }
        return generatedFileName;
    }

    private int dotHelpExitCode() throws CommandLineException {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.