Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-4236

Encountering MAVEN Error - Cannot compile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.7.1.RELEASE
    • Fix Version/s: 3.7.2.RELEASE
    • Component/s: MAVEN
    • Environment:

      Description

      When I use the MAVEN -> Update Project option, it results in an error at the following lines in the pom.xml file:
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>2.3.2</version>
      <configuration>
      <source>1.6</source>
      <target>1.6</target>
      </configuration>
      </plugin>
      the error report contains:Multiple annotations found at this line:

      • Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-
        plugin:2.3.2:compile (execution: default-compile, phase: compile)
      • Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-
        plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile)

      When I try to resolve the issue, I get the following:Operation details
      Your original request has been modified.
      "m2e-wtp - Maven Integration for WTP" is already installed, so an update will be performed instead.
      Cannot complete the install because one or more required items could not be found.
      Software being installed: m2e-wtp - Maven Integration for WTP 1.2.1.20150819-2220 (org.eclipse.m2e.wtp.feature.feature.group 1.2.1.20150819-2220)
      Missing requirement: Maven Integration for Eclipse WTP 1.2.1.20150819-2220 (org.eclipse.m2e.wtp 1.2.1.20150819-2220) requires 'bundle org.eclipse.m2e.maven.runtime [1.6.0,2.0.0)' but it could not be found
      Cannot satisfy dependency:
      From: m2e-wtp - Maven Integration for WTP 1.2.1.20150819-2220 (org.eclipse.m2e.wtp.feature.feature.group 1.2.1.20150819-2220)
      To: org.eclipse.m2e.wtp [1.2.1.20150819-2220]

        Attachments

          Activity

            People

            Assignee:
            mlippert Martin Lippert
            Reporter:
            GregMudd Greg Mudd
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: