Package org.eclipse.m2e.core.internal.markers

Examples of org.eclipse.m2e.core.internal.markers.SourceLocation


        {
            List<MavenProblemInfo> errors = new ArrayList<MavenProblemInfo>();

            for ( MojoExecution mojoExecution : executions )
            {
                SourceLocation location = SourceLocationHelper.findLocation( mojoExecution.getPlugin(), "executions" );
                MavenProblemInfo problem =
                    new MavenProblemInfo( "Duplicate " + mojoExecution.getGoal()
                        + " executions found. Please remove any explicitly defined " + mojoExecution.getGoal()
                        + " executions in your pom.xml.", IMarker.SEVERITY_ERROR, location );
                errors.add( problem );
View Full Code Here


      // We might get bad pattern overlapping (**/* + **/*.html would return everything,
      // when maven would only package html files) .
      // So we arbitrary (kinda) keep the packaging patterns only. But this can lead to other funny discrepancies
      // things like **/pages/** + **/*.html should return only html files from the pages directory, but here, will return
      // every html files.
      SourceLocation sourceLocation = filter.getSourceLocation();
      if (sourceLocation != null) {
        mavenMarkerManager.addMarker(pomFile,
                                   MavenWtpConstants.WTP_MARKER_CONFIGURATION_ERROR_ID,
                                   NLS.bind(Messages.markers_inclusion_patterns_problem, filter.getSourceIncludeParameterName()),
                                   sourceLocation.getLineNumber(),
                                   IMarker.SEVERITY_WARNING);
      }
      warSourceIncludes = null;
    }
    String componentInclusions = joinAsString(warSourceIncludes, packagingIncludes);
View Full Code Here

        IMavenProjectFacade workspaceDependency = getWorkspaceProject(a);
        if(workspaceDependency != null) {
          Dependency dependency = getDependency(a, facade.getMavenProject().getDependencies());
          int lineNumber = -1;
          if(dependency != null) {
            SourceLocation location = SourceLocationHelper.findLocation(facade.getMavenProject(), dependency);
            lineNumber = location.getLineNumber();
          }
          addWarning(facade.getPom(), workspaceDependency, type, lineNumber);
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.m2e.core.internal.markers.SourceLocation

Copyright © 2018 www.massapicom. 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.